C# Class imBMW.iBus.Message

ファイルを表示 Open project: toxsedyshev/imBMW Class Usage Examples

Protected Properties

Property Type Description
destinationDevice DeviceAddress
sourceDevice DeviceAddress

Public Methods

Method Description
CanStartWith ( byte packet, int length = -1 ) : bool
Compare ( Message message ) : bool
Compare ( byte packet ) : bool
IsValid ( byte packet, int length = -1 ) : bool
Message ( DeviceAddress source, DeviceAddress destination ) : System
Message ( DeviceAddress source, DeviceAddress destination, string description ) : System
Message ( byte source, byte destination ) : System
Message ( byte source, byte destination, string description ) : System
ToString ( ) : string
TryCreate ( byte packet, int length = -1 ) : Message
init ( byte source, byte destination, byte data, string description = null ) : void

Protected Methods

Method Description
CanStartWith ( byte packet, IntFromByteArray packetLengthCallback, int length = -1 ) : bool
IsValid ( byte packet, IntFromByteArray packetLengthCallback, int length = -1 ) : bool
ParseDataLength ( byte packet ) : int
ParsePacketLength ( byte packet ) : int
init ( byte source, byte destination, byte data, int packetLength, byte check, string description = null ) : void

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 ( Message message ) : bool
message Message
return bool

Compare() public method

public Compare ( byte packet ) : bool
packet byte
return bool

IsValid() protected static method

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

IsValid() public static method

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

Message() public method

public Message ( DeviceAddress source, DeviceAddress destination ) : System
source DeviceAddress
destination DeviceAddress
return System

Message() public method

public Message ( DeviceAddress source, DeviceAddress destination, string description ) : System
source DeviceAddress
destination DeviceAddress
description string
return System

Message() public method

public Message ( byte source, byte destination ) : System
source byte
destination byte
return System

Message() public method

public Message ( byte source, byte destination, string description ) : System
source byte
destination byte
description string
return System

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

ToString() public method

public ToString ( ) : string
return string

TryCreate() public static method

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

init() protected method

protected init ( byte source, byte destination, byte data, int packetLength, byte check, string description = null ) : void
source byte
destination byte
data byte
packetLength int
check byte
description string
return void

init() public method

public init ( byte source, byte destination, byte data, string description = null ) : void
source byte
destination byte
data byte
description string
return void

Property Details

destinationDevice protected_oe property

protected DeviceAddress destinationDevice
return DeviceAddress

sourceDevice protected_oe property

protected DeviceAddress sourceDevice
return DeviceAddress