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

#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_tpayload ()
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 >
anonymous enum
Enumerator:
MSG_ID_POS 
SEQ_NUM_POS 
FRAGMENT_POS 
TOTAL_FRAGMENTS_POS 
PAYLOAD_POS 
template<typename OsModel_P , typename Radio_P >
anonymous enum
Enumerator:
FRAGMENT_SIZE 
MESSAGE_LENGTH 
MAX_MESSAGE_LENGTH 
template<typename OsModel_P , typename Radio_P >
enum wiselib::VolumeMsg::message_types
Enumerator:
VOLUME_MESSAGE 
SINGLE_MESSAGE 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P >
wiselib::VolumeMsg< OsModel_P, Radio_P >::VolumeMsg ( ) [inline]
template<typename OsModel_P , typename Radio_P >
wiselib::VolumeMsg< OsModel_P, Radio_P >::VolumeMsg ( node_id_t  source,
node_id_t  destination,
uint16_t  seq_no,
size_t  payload_size,
uint8_t data 
) [inline]
template<typename OsModel_P , typename Radio_P >
wiselib::VolumeMsg< OsModel_P, Radio_P >::~VolumeMsg ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P >
size_t wiselib::VolumeMsg< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::VolumeMsg< OsModel_P, Radio_P >::fragment_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::VolumeMsg< OsModel_P, Radio_P >::fragments ( ) [inline]
template<typename OsModel_P , typename Radio_P >
message_id_t wiselib::VolumeMsg< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t* wiselib::VolumeMsg< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::VolumeMsg< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint16_t wiselib::VolumeMsg< OsModel_P, Radio_P >::seq_number ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::VolumeMsg< OsModel_P, Radio_P >::set_fragment_id ( uint8_t  frag_number) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::VolumeMsg< OsModel_P, Radio_P >::set_fragments ( uint8_t  fragments) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::VolumeMsg< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::VolumeMsg< OsModel_P, Radio_P >::set_payload ( uint8_t  len,
uint8_t buf 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::VolumeMsg< 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