Wiselib
Public Types | Public Member Functions
wiselib::ReliableMsg< OsModel_P, Radio_P > Class Template Reference

#include <reliablemsg.h>

List of all members.

Public Types

enum  message_types { RELIABLE_MESSAGE = 101, ACK_MESSAGE = 102, BROADCAST_MESSAGE = 103 }
enum  data_positions { MSG_ID_POS = 0, SEQ_NUM_POS = 1, PAYLOAD_POS = 3 }
enum  Restrictions { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH - PAYLOAD_POS }

Public Member Functions

 ReliableMsg ()
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 payload_size ()
uint8_tpayload ()
void set_payload (uint8_t len, uint8_t *buf)
size_t buffer_size ()

template<typename OsModel_P, typename Radio_P>
class wiselib::ReliableMsg< OsModel_P, Radio_P >


Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P >
enum wiselib::ReliableMsg::data_positions
Enumerator:
MSG_ID_POS 
SEQ_NUM_POS 
PAYLOAD_POS 
template<typename OsModel_P , typename Radio_P >
enum wiselib::ReliableMsg::message_types
Enumerator:
RELIABLE_MESSAGE 
ACK_MESSAGE 
BROADCAST_MESSAGE 
template<typename OsModel_P , typename Radio_P >
enum wiselib::ReliableMsg::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 

Maximal number of bytes in payload.


Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P >
wiselib::ReliableMsg< OsModel_P, Radio_P >::ReliableMsg ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P >
size_t wiselib::ReliableMsg< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
message_id_t wiselib::ReliableMsg< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t* wiselib::ReliableMsg< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::ReliableMsg< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint16_t wiselib::ReliableMsg< OsModel_P, Radio_P >::seq_number ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::ReliableMsg< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::ReliableMsg< OsModel_P, Radio_P >::set_payload ( uint8_t  len,
uint8_t buf 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::ReliableMsg< OsModel_P, Radio_P >::set_seq_number ( uint16_t  seq_number) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines