C# Class Subaru.SSM2.Ssm2ReadBlockRequest

Read a block of data. Specific properties are starting address and data count. This packet type is usually created by the tester and sent to the car control unit. Always consists of 11 bytes: 5 header + 1 padding + 3 address + 1 count + 1 checksum byte.
Inheritance: Ssm2Packet
显示文件 Open project: src0x/LibSSM2 Class Usage Examples

Public Methods

Method Description
Check ( ) : bool
Ssm2ReadBlockRequest ( ) : System

Creates an empty block read packet. (Allocated optimal 11 bytes buffer.)

Ssm2ReadBlockRequest ( Ssm2Device destination, Ssm2Device source, int address, byte dataCount ) : System

Creates a complete packet. (Will have optimal buffer length.)

Ssm2ReadBlockRequest ( byte buffer ) : System

Takes given (empty or preset) buffer. Needs at least 11 bytes. For already preset packet data call FromBytes(buffer) afterwards to set correct state.

Protected Methods

Method Description
SetConstBytes ( ) : void

Create a complete packet out of supplied data.

Method Details

Check() public method

public Check ( ) : bool
return bool

SetConstBytes() protected method

Create a complete packet out of supplied data.
protected SetConstBytes ( ) : void
return void

Ssm2ReadBlockRequest() public method

Creates an empty block read packet. (Allocated optimal 11 bytes buffer.)
public Ssm2ReadBlockRequest ( ) : System
return System

Ssm2ReadBlockRequest() public method

Creates a complete packet. (Will have optimal buffer length.)
public Ssm2ReadBlockRequest ( Ssm2Device destination, Ssm2Device source, int address, byte dataCount ) : System
destination Ssm2Device
source Ssm2Device
address int
dataCount byte
return System

Ssm2ReadBlockRequest() public method

Takes given (empty or preset) buffer. Needs at least 11 bytes. For already preset packet data call FromBytes(buffer) afterwards to set correct state.
public Ssm2ReadBlockRequest ( byte buffer ) : System
buffer byte /// A ///
return System