Wiselib
Public Types | Public Member Functions
RoombaMovementMessage< OsModel_P, Radio_P > Class Template Reference

#include <roomba_movement_message.h>

List of all members.

Public Types

enum  RoombaMovementSpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS }
enum  RoombaMovementMessageType { STOP_MOVEMENT = 0x00, START_MOVEMENT }
enum  MessageIds { ROOMBA_MOVEMENT_MESSAGE_ID = 0x17 }
enum  { MAX_MESSAGE_LENGTH = sizeof(message_id_t) + sizeof( message_type_t ) }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Radio::node_id_t node_id_t
typedef Radio::block_data_t block_data_t
typedef Radio::message_id_t message_id_t
typedef RoombaMovementMessage
< OsModel, Radio
self_type
typedef RoombaMovementMessage
< OsModel, Radio > * 
self_pointer_t
typedef uint8_t message_type_t

Public Member Functions

 RoombaMovementMessage ()
uint8_t msg_id ()
void set_msg_id (uint8_t id)
uint8_t set_msg_type (RoombaMovementMessageType mt)
uint8_t msg_type ()
block_data_tpayload ()
size_t payload_size ()
void set_payload (size_t len, block_data_t *data)
size_t buffer_size ()

template<typename OsModel_P, typename Radio_P>
class RoombaMovementMessage< OsModel_P, Radio_P >


Member Typedef Documentation

template<typename OsModel_P, typename Radio_P>
typedef Radio::block_data_t RoombaMovementMessage< OsModel_P, Radio_P >::block_data_t
template<typename OsModel_P, typename Radio_P>
typedef Radio::message_id_t RoombaMovementMessage< OsModel_P, Radio_P >::message_id_t
template<typename OsModel_P, typename Radio_P>
typedef uint8_t RoombaMovementMessage< OsModel_P, Radio_P >::message_type_t
template<typename OsModel_P, typename Radio_P>
typedef Radio::node_id_t RoombaMovementMessage< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P, typename Radio_P>
typedef OsModel_P RoombaMovementMessage< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P, typename Radio_P>
typedef Radio_P RoombaMovementMessage< OsModel_P, Radio_P >::Radio
template<typename OsModel_P, typename Radio_P>
typedef RoombaMovementMessage<OsModel, Radio>* RoombaMovementMessage< OsModel_P, Radio_P >::self_pointer_t
template<typename OsModel_P, typename Radio_P>
typedef RoombaMovementMessage<OsModel, Radio> RoombaMovementMessage< OsModel_P, Radio_P >::self_type

Member Enumeration Documentation

template<typename OsModel_P, typename Radio_P>
anonymous enum
Enumerator:
MAX_MESSAGE_LENGTH 
template<typename OsModel_P, typename Radio_P>
enum RoombaMovementMessage::MessageIds
Enumerator:
ROOMBA_MOVEMENT_MESSAGE_ID 
template<typename OsModel_P, typename Radio_P>
enum RoombaMovementMessage::RoombaMovementMessageType
Enumerator:
STOP_MOVEMENT 
START_MOVEMENT 
template<typename OsModel_P, typename Radio_P>
enum RoombaMovementMessage::RoombaMovementSpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P >
RoombaMovementMessage< OsModel_P, Radio_P >::RoombaMovementMessage ( )

Member Function Documentation

template<typename OsModel_P, typename Radio_P>
size_t RoombaMovementMessage< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
uint8_t RoombaMovementMessage< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P, typename Radio_P>
uint8_t RoombaMovementMessage< OsModel_P, Radio_P >::msg_type ( ) [inline]
template<typename OsModel_P, typename Radio_P>
block_data_t* RoombaMovementMessage< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
size_t RoombaMovementMessage< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void RoombaMovementMessage< OsModel_P, Radio_P >::set_msg_id ( uint8_t  id) [inline]
template<typename OsModel_P, typename Radio_P>
uint8_t RoombaMovementMessage< OsModel_P, Radio_P >::set_msg_type ( RoombaMovementMessageType  mt) [inline]
template<typename OsModel_P, typename Radio_P>
void RoombaMovementMessage< OsModel_P, Radio_P >::set_payload ( size_t  len,
block_data_t data 
) [inline]

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