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 |
protected void init(byte source, byte destination, byte[] data, int packetLength, byte check, string description = null)
{
if (source.IsInternal() || destination.IsInternal())
{
throw new Exception("iBus messages are not for internal devices.");
}
this.source = source;
this.destination = destination;
Data = data;
ReceiverDescription = description;
PacketLength = packetLength;
CRC = check;
}
Message::init ( byte source, byte destination, byte data, string description = null ) : void |