C# 클래스 Subaru.SSM2.Ssm2InitResponse

Init response packet. This packet type is usually created by control unit and sent to the tester. Packet consists of: 5 byte header + 3 SSMID + 5 ROMID + X capability bytes + 1 checksum. Capability bytes length is not constant, usually 32, 48 or 96 bytes seen so far.
상속: Ssm2Packet
파일 보기 프로젝트 열기: src0x/LibSSM2 1 사용 예제들

공개 메소드들

메소드 설명
Check ( ) : bool
GetCapabilities ( ) : byte[]

Returns a copy of the capability bytes. (Lengths of 32 = 0x20, 48 = 0x30 or 96 = 0x60 bytes seen so far.)

GetRomID ( ) : byte[]

Returns a copy of the 5 ROMID bytes.

GetSsmID ( ) : byte[]

Return a copy of the 3 SSMID bytes.

SetCapabilities ( byte capabilities ) : void

Set capability bytes.

SetRomID ( byte romID ) : void

Sets ROMID.

SetSsmID ( byte ssmID ) : void

Sets SSMID

Ssm2InitResponse ( ) : System
Ssm2InitResponse ( Ssm2Device destination, Ssm2Device source, byte ssmID, byte romID, byte capabilities ) : System

Creates a complete InitResponse packet.

Ssm2InitResponse ( byte buffer ) : System

보호된 메소드들

메소드 설명
SetConstBytes ( ) : void

비공개 메소드들

메소드 설명
CopyPart ( int index, int length ) : byte[]
TakePart ( byte bytes, int index, int length ) : void

메소드 상세

Check() 공개 메소드

public Check ( ) : bool
리턴 bool

GetCapabilities() 공개 메소드

Returns a copy of the capability bytes. (Lengths of 32 = 0x20, 48 = 0x30 or 96 = 0x60 bytes seen so far.)
public GetCapabilities ( ) : byte[]
리턴 byte[]

GetRomID() 공개 메소드

Returns a copy of the 5 ROMID bytes.
public GetRomID ( ) : byte[]
리턴 byte[]

GetSsmID() 공개 메소드

Return a copy of the 3 SSMID bytes.
public GetSsmID ( ) : byte[]
리턴 byte[]

SetCapabilities() 공개 메소드

Set capability bytes.
/// Length out of range. Must be greater than 1. ///
public SetCapabilities ( byte capabilities ) : void
capabilities byte /// Capabilities. ///
리턴 void

SetConstBytes() 보호된 메소드

protected SetConstBytes ( ) : void
리턴 void

SetRomID() 공개 메소드

Sets ROMID.
Array length must be 5.
public SetRomID ( byte romID ) : void
romID byte /// Always 5 bytes e.g. "{0x1B, 0x14, 0x40, 0x05, 0x05}". ///
리턴 void

SetSsmID() 공개 메소드

Sets SSMID
Array length must be 3.
public SetSsmID ( byte ssmID ) : void
ssmID byte /// Always 3 bytes e.g. "{0xA2, 0x10, 0x12}". ///
리턴 void

Ssm2InitResponse() 공개 메소드

public Ssm2InitResponse ( ) : System
리턴 System

Ssm2InitResponse() 공개 메소드

Creates a complete InitResponse packet.
public Ssm2InitResponse ( Ssm2Device destination, Ssm2Device source, byte ssmID, byte romID, byte capabilities ) : System
destination Ssm2Device
source Ssm2Device
ssmID byte
romID byte
capabilities byte
리턴 System

Ssm2InitResponse() 공개 메소드

public Ssm2InitResponse ( byte buffer ) : System
buffer byte
리턴 System