C# Class imBMW.iBus.Message

Afficher le fichier Open project: toxsedyshev/imBMW Class Usage Examples

Protected Properties

Свойство Type Description
destinationDevice DeviceAddress
sourceDevice DeviceAddress

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

CanStartWith() public static méthode

public static CanStartWith ( byte packet, int length = -1 ) : bool
packet byte
length int
Résultat bool

Compare() public méthode

public Compare ( Message message ) : bool
message Message
Résultat bool

Compare() public méthode

public Compare ( byte packet ) : bool
packet byte
Résultat bool

IsValid() protected static méthode

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

IsValid() public static méthode

public static IsValid ( byte packet, int length = -1 ) : bool
packet byte
length int
Résultat bool

Message() public méthode

public Message ( DeviceAddress source, DeviceAddress destination ) : System
source DeviceAddress
destination DeviceAddress
Résultat System

Message() public méthode

public Message ( DeviceAddress source, DeviceAddress destination, string description ) : System
source DeviceAddress
destination DeviceAddress
description string
Résultat System

Message() public méthode

public Message ( byte source, byte destination ) : System
source byte
destination byte
Résultat System

Message() public méthode

public Message ( byte source, byte destination, string description ) : System
source byte
destination byte
description string
Résultat System

ParseDataLength() protected static méthode

protected static ParseDataLength ( byte packet ) : int
packet byte
Résultat int

ParsePacketLength() protected static méthode

protected static ParsePacketLength ( byte packet ) : int
packet byte
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

TryCreate() public static méthode

public static TryCreate ( byte packet, int length = -1 ) : Message
packet byte
length int
Résultat Message

init() protected méthode

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
Résultat void

init() public méthode

public init ( byte source, byte destination, byte data, string description = null ) : void
source byte
destination byte
data byte
description string
Résultat void

Property Details

destinationDevice protected_oe property

protected DeviceAddress destinationDevice
Résultat DeviceAddress

sourceDevice protected_oe property

protected DeviceAddress sourceDevice
Résultat DeviceAddress