10 #ifndef GarminPacket_H 11 #define GarminPacket_H 34 uint8 * aPayloadData = NULL,
35 uint8 aPayloadSize = 0,
#define MAX_PACKET_SIZE
Maximum packet size that can be transmitted.
ApplicationLayer * mSender
The ApplicationLayer that originated this packet (for ACK callback)
uint8 mFrame[MAX_PACKET_SIZE]
The packet as transmitted on the serial link (with DLE stuffing)
GarminPacket()
Construct an empty Garmin RS232 packet.
uint8 id_type
Garmin packet ID.
uint8 mChecksum
Twos-complement checksum of this packet.
virtual uint32 getRawSize()
Get the raw size of the frame, in bytes.
virtual const uint8 * getRawBytes()
Get the bytes in the raw frame.
uint8 mPayload[MAX_PAYLOAD_SIZE]
The payload, before DLE stuffing.
unsigned short int uint16
16-bit unsigned integer
virtual ~GarminPacket()
Destructor.
id_type mPacketId
A complete serial packet.
Abstract base class for a packet of data.
uint16 mFrameSize
Number of bytes in the packet, with header, footer, and DLE stuffing.
unsigned char uint8
8-bit unsigned integer
uint8 mPayloadSize
Size of the payload, before DLE stuffing.
Abstract base class for the application layer in the OSI model.
time_t mTxTime
Time when the packet was last sent.
unsigned long int uint32
32-bit unsigned integer
#define MAX_PAYLOAD_SIZE
Maximum payload size, before DLE stuffing.