![]() |
Bio Radio SDK - Xamarin Android
|
Device data packet Class. More...
Public Types | |
enum | DeviceCommand { DeviceCommand.NegativeAck = 0x00, DeviceCommand.SetMode = 0x20, DeviceCommand.GetMode = 0x30, DeviceCommand.SetParam = 0x40, DeviceCommand.GetParam = 0x50, DeviceCommand.SetState = 0x60, DeviceCommand.PacketLength = 0x70, DeviceCommand.WriteEEProm = 0x80, DeviceCommand.ReadEEProm = 0x90, DeviceCommand.TransmitData = 0xA0, DeviceCommand.ReceiveData = 0xB0, DeviceCommand.MiscData = 0xC0, DeviceCommand.PassThroughCommand = 0xD0, DeviceCommand.GetGlobal = 0xF0 } |
Device Command options. More... | |
Public Member Functions | |
DeviceDataPacket (DeviceCommand command, byte[] data) | |
Device data packet constructor. param: device command and data. More... | |
DeviceDataPacket (DeviceCommand command, byte[] data, bool isResponse) | |
Device data packet constructor - param: device command, data and isResponce. More... | |
DeviceDataPacket (DeviceDataPacket otherPacket) | |
Device data packet constructor - param: device data packet. More... | |
DeviceDataPacket () | |
Device data packet constructor - no parameters. More... | |
Static Public Member Functions | |
static DeviceDataPacket | CreateResponsePacket (DeviceDataPacket packet, int responseLength) |
Create response packet. More... | |
Static Public Attributes | |
static DeviceDataPacket | Nack |
Properties | |
int | Length [get] |
Length property. More... | |
byte [] | Data [get, set] |
Data property. More... | |
DeviceCommand | Command [get, set] |
Command property. More... | |
bool | IsResponsePacket [get, set] |
Is response packet property. More... | |
Device data packet Class.
GLNeuroTech.Devices.Common.TransportLayer.DeviceDataPacket.DeviceDataPacket | ( | DeviceCommand | command, |
byte [] | data | ||
) |
Device data packet constructor. param: device command and data.
command | Device command. |
data | Data a byte array. |
GLNeuroTech.Devices.Common.TransportLayer.DeviceDataPacket.DeviceDataPacket | ( | DeviceCommand | command, |
byte [] | data, | ||
bool | isResponse | ||
) |
Device data packet constructor - param: device command, data and isResponce.
command | Device command. |
data | Data a byte array. |
isResponse | Is response as boolean. |
GLNeuroTech.Devices.Common.TransportLayer.DeviceDataPacket.DeviceDataPacket | ( | DeviceDataPacket | otherPacket | ) |
Device data packet constructor - param: device data packet.
otherPacket | Device data packet. |
GLNeuroTech.Devices.Common.TransportLayer.DeviceDataPacket.DeviceDataPacket | ( | ) |
Device data packet constructor - no parameters.
|
static |
Create response packet.
packet | Device data packet. |
responseLength | Response length. |
|
static |
|
getset |
Command property.
|
getset |
Data property.
|
getset |
Is response packet property.
|
get |
Length property.