Wiselib
|
iSense Implementation of Radio concept. More...
#include <isense_radio.h>
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC } |
enum | { MAX_INTERNAL_RECEIVERS = 10 } |
enum | SpecialNodeIds { BROADCAST_ADDRESS = 0xffff, NULL_NODE_ID = 0 } |
enum | Restrictions { MAX_MESSAGE_LENGTH = 116 } |
typedef OsModel_P | OsModel |
typedef iSenseRadioModel< OsModel > | self_type |
typedef self_type * | self_pointer_t |
typedef uint16 | node_id_t |
typedef uint8 | block_data_t |
typedef uint8 | size_t |
typedef uint8 | message_id_t |
typedef delegate3< void, node_id_t, size_t, block_data_t * > | isense_radio_delegate_t |
typedef isense_radio_delegate_t | radio_delegate_t |
Public Member Functions | |
iSenseRadioModel (isense::Os &os) | |
virtual | ~iSenseRadioModel () |
int | send (node_id_t id, size_t len, block_data_t *data) |
int | enable_radio () |
int | disable_radio () |
node_id_t | id () |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod> | |
int | reg_recv_callback (T *obj_pnt) |
void | unreg_recv_callback (int idx) |
virtual void | receive (uint8 len, const uint8 *buf, uint16 src_addr, uint16 dest_addr, uint16 lqi, uint8 seq_no, uint8 interface) |
iSense Implementation of Radio concept.
iSense implementation of the Radio concept ...
OsModel_P | Has to implement Os concept. |
typedef uint8 wiselib::iSenseRadioModel< OsModel_P >::block_data_t |
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::iSenseRadioModel< OsModel_P >::isense_radio_delegate_t |
typedef uint8 wiselib::iSenseRadioModel< OsModel_P >::message_id_t |
typedef uint16 wiselib::iSenseRadioModel< OsModel_P >::node_id_t |
typedef OsModel_P wiselib::iSenseRadioModel< OsModel_P >::OsModel |
typedef isense_radio_delegate_t wiselib::iSenseRadioModel< OsModel_P >::radio_delegate_t |
typedef self_type* wiselib::iSenseRadioModel< OsModel_P >::self_pointer_t |
typedef iSenseRadioModel<OsModel> wiselib::iSenseRadioModel< OsModel_P >::self_type |
typedef uint8 wiselib::iSenseRadioModel< OsModel_P >::size_t |
enum wiselib::iSenseRadioModel::ErrorCodes |
enum wiselib::iSenseRadioModel::Restrictions |
enum wiselib::iSenseRadioModel::SpecialNodeIds |
wiselib::iSenseRadioModel< OsModel_P >::iSenseRadioModel | ( | isense::Os & | os | ) | [inline] |
virtual wiselib::iSenseRadioModel< OsModel_P >::~iSenseRadioModel | ( | ) | [inline, virtual] |
int wiselib::iSenseRadioModel< OsModel_P >::disable_radio | ( | void | ) | [inline] |
int wiselib::iSenseRadioModel< OsModel_P >::enable_radio | ( | void | ) | [inline] |
node_id_t wiselib::iSenseRadioModel< OsModel_P >::id | ( | ) | [inline] |
virtual void wiselib::iSenseRadioModel< OsModel_P >::receive | ( | uint8 | len, |
const uint8 * | buf, | ||
uint16 | src_addr, | ||
uint16 | dest_addr, | ||
uint16 | lqi, | ||
uint8 | seq_no, | ||
uint8 | interface | ||
) | [inline, virtual] |
int wiselib::iSenseRadioModel< OsModel_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::iSenseRadioModel< OsModel_P >::send | ( | node_id_t | id, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
void wiselib::iSenseRadioModel< OsModel_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |