#include <ArAMPTU.h>
Inheritance diagram for ArAMPTUPacket::
Public Methods | |
ArAMPTUPacket (ArTypes::UByte2 bufferSize=30) | |
Constructor. | |
virtual | ~ArAMPTUPacket (void) |
Destructor. | |
unsigned char | getUnitNumber (void) |
Gets the unit number this packet is for. More... | |
bool | setUnitNumber (unsigned char unitNumber) |
Sets the unit number htis packet is for. More... | |
virtual void | byteToBuf (ArTypes::Byte val) |
Puts ArTypes::Byte into packets buffer. | |
virtual void | byte2ToBuf (ArTypes::Byte2 val) |
Puts ArTypes::Byte2 into packets buffer. | |
virtual void | finalize (void) |
Finalizes the packet in preparation for sending, must be done. |
There are only a few functioning ways to put things into this packet, you MUST use thse, if you use anything else your commands won't work. You must use byteToBuf and byte2ToBuf.
|
Gets the unit number this packet is for. Each AMPTU has a unit number, so that you can daisy chain multiple ones together. This number is incorporated into the packet header, thus the packet has to know what the number is.
|
|
Sets the unit number htis packet is for. Each AMPTU has a unit number, so that you can daisy chain multiple ones together. This number is incorporated into the packet header, thus the packet has to know what the number is.
|