C# Class imBMW.Diagnostics.DBusMessage

BMW DS2 Diagnostic Bus (DBus) message packet
Inheritance: imBMW.iBus.Message
ファイルを表示 Open project: toxsedyshev/imBMW Class Usage Examples

Public Methods

Method Description
CanStartWith ( byte packet, int length = -1 ) : bool
Compare ( DBusMessage message ) : bool
DBusMessage ( DeviceAddress device ) : System
DBusMessage ( DeviceAddress device, string description ) : System
IsValid ( byte packet ) : bool
IsValid ( byte packet, int length ) : bool
ToIBusMessage ( ) : Message
TryCreate ( byte packet, int length = -1 ) : Message

Protected Methods

Method Description
CanStartWith ( byte packet, IntFromByteArray packetLengthCallback, int length = -1 ) : bool
ParseDataLength ( byte packet ) : int
ParsePacketLength ( byte packet ) : int

Method Details

CanStartWith() protected static method

protected static CanStartWith ( byte packet, IntFromByteArray packetLengthCallback, int length = -1 ) : bool
packet byte
packetLengthCallback IntFromByteArray
length int
return bool

CanStartWith() public static method

public static CanStartWith ( byte packet, int length = -1 ) : bool
packet byte
length int
return bool

Compare() public method

public Compare ( DBusMessage message ) : bool
message DBusMessage
return bool

DBusMessage() public method

public DBusMessage ( DeviceAddress device ) : System
device DeviceAddress
return System

DBusMessage() public method

public DBusMessage ( DeviceAddress device, string description ) : System
device DeviceAddress
description string
return System

IsValid() public static method

public static IsValid ( byte packet ) : bool
packet byte
return bool

IsValid() public static method

public static IsValid ( byte packet, int length ) : bool
packet byte
length int
return bool

ParseDataLength() protected static method

protected static ParseDataLength ( byte packet ) : int
packet byte
return int

ParsePacketLength() protected static method

protected static ParsePacketLength ( byte packet ) : int
packet byte
return int

ToIBusMessage() public method

public ToIBusMessage ( ) : Message
return imBMW.iBus.Message

TryCreate() public static method

public static TryCreate ( byte packet, int length = -1 ) : Message
packet byte
length int
return imBMW.iBus.Message