List of all members |
Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes
mote::Packet Struct Reference
Data packet as described in the TinyOS serial protocol specifications. More...
#include <MoteProtocol.h>
Inheritance diagram for mote::Packet:

Collaboration diagram for mote::Packet:

Detailed Description
Data packet as described in the TinyOS serial protocol specifications.
The packets can be sent or received by the MoteIF class. Two payload types are currently suported, TinyOSMessages and the ACKMessage for packets requiring low-level acknownledgement.
Public Member Functions | |
void | compose (uint8_t type, TOSMessage &message) |
uint8_t * | dump (uint8_t *dst, int os=1) |
uint8_t * | undump (uint8_t *src, int os=1) |
![]() |
Public Attributes | |
uint8_t | type |
Dumpable * | payload |
Protected Member Functions | |
void | composeAck () |
void | getTOSMessage (TOSMessage &message) |
uint16_t | computeCRCByte (uint16_t crc, uint8_t b) |
uint16_t | computeCRC (uint8_t *packet, int index, int count) |
Protected Attributes | |
TOSMessage | payloadTOSMessage |
ACKMessage | payloadACK |
uint16_t | crc |
Member Function Documentation
◆ dump()
|
virtual |
Implements mote::Dumpable.
◆ undump()
|
virtual |
Implements mote::Dumpable.
The documentation for this struct was generated from the following files:
- MoteProtocol.h
- MoteProtocol.cpp