#include <volumemsg.h>
List of all members.
Public Types |
enum | message_types { VOLUME_MESSAGE = 201,
SINGLE_MESSAGE = 202
} |
enum | {
MSG_ID_POS = 0,
SEQ_NUM_POS = 1,
FRAGMENT_POS = 3,
TOTAL_FRAGMENTS_POS = 4,
PAYLOAD_POS = 5
} |
enum | { FRAGMENT_SIZE = Radio::MAX_MESSAGE_LENGTH-PAYLOAD_POS-1,
MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH,
MAX_MESSAGE_LENGTH = (FRAGMENT_SIZE)*256
} |
Public Member Functions |
| VolumeMsg () |
| VolumeMsg (node_id_t source, node_id_t destination, uint16_t seq_no, size_t payload_size, uint8_t *data) |
| ~VolumeMsg () |
message_id_t | msg_id () |
void | set_msg_id (message_id_t id) |
uint16_t | seq_number () |
void | set_seq_number (uint16_t seq_number) |
uint8_t | fragment_id () |
void | set_fragment_id (uint8_t frag_number) |
uint8_t | fragments () |
void | set_fragments (uint8_t fragments) |
uint8_t | payload_size () |
uint8_t * | payload () |
void | set_payload (uint8_t len, uint8_t *buf) |
size_t | buffer_size () |
template<typename OsModel_P, typename Radio_P>
class wiselib::VolumeMsg< OsModel_P, Radio_P >
Member Enumeration Documentation
template<typename OsModel_P , typename Radio_P >
- Enumerator:
MSG_ID_POS |
|
SEQ_NUM_POS |
|
FRAGMENT_POS |
|
TOTAL_FRAGMENTS_POS |
|
PAYLOAD_POS |
|
template<typename OsModel_P , typename Radio_P >
- Enumerator:
FRAGMENT_SIZE |
|
MESSAGE_LENGTH |
|
MAX_MESSAGE_LENGTH |
|
template<typename OsModel_P , typename Radio_P >
- Enumerator:
VOLUME_MESSAGE |
|
SINGLE_MESSAGE |
|
Constructor & Destructor Documentation
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
Member Function Documentation
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
template<typename OsModel_P , typename Radio_P >
The documentation for this class was generated from the following file: