The Packet type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Packet | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Send |
Send the packet to a stream.
| |
| ToByteArray |
Convert the packet to a byte array.
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| MAX_DATA_BYTES |
Maximum number of bytes that can be transmitted in the data portion of a packet.
| |
| mCommandCode |
The command being referenced by the packet.
| |
| mData |
The data stored in the packet.
| |
| mDirection |
The direction of the packet.
| |
| mIicAddress |
The address of the IIC module referenced by the packet.
|
Properties
| Name | Description | |
|---|---|---|
| CommandCode |
Gets the command being referenced by the packet.
| |
| Data |
Gets the data stored in the packet.
| |
| Direction |
Gets the direction of the packet.
| |
| IicAddress |
Gets the address of the IIC module referenced by the packet.
| |
| Length |
Gets the length of the data stored in the packet + 1 byte for the command.
|