C# Class Subaru.SSM2.Ssm2ReadAddressesRequest

Packet to retrieve values for individual addresses. This packet type is usually created by the tester and sent to the car control unit. (Consists of 5 byte header + 1 padding + 3 * X addresses + 1 checksum = 7 + 3 * X. Minimum size is 10 for 1 address.)
Inheritance: Ssm2Packet
Show file Open project: src0x/LibSSM2 Class Usage Examples

Public Methods

Method Description
Check ( ) : bool
Ssm2ReadAddressesRequest ( ) : System
Ssm2ReadAddressesRequest ( Ssm2Device destination, Ssm2Device source, IList addresses ) : System

Constructs a complete packet. (Uses optimal buffer size)

Ssm2ReadAddressesRequest ( byte buffer ) : System

Protected Methods

Method Description
SetConstBytes ( ) : void

Sets specific packet bytes.

Private Methods

Method Description
PacketSize ( int addressesCount ) : int

Calculates packet size for this packet type.

Method Details

Check() public method

public Check ( ) : bool
return bool

SetConstBytes() protected method

Sets specific packet bytes.
protected SetConstBytes ( ) : void
return void

Ssm2ReadAddressesRequest() public method

public Ssm2ReadAddressesRequest ( ) : System
return System

Ssm2ReadAddressesRequest() public method

Constructs a complete packet. (Uses optimal buffer size)
public Ssm2ReadAddressesRequest ( Ssm2Device destination, Ssm2Device source, IList addresses ) : System
destination Ssm2Device /// A ///
source Ssm2Device /// A ///
addresses IList /// An ///
return System

Ssm2ReadAddressesRequest() public method

public Ssm2ReadAddressesRequest ( byte buffer ) : System
buffer byte
return System