Wiselib
Classes | Typedefs | Functions | Variables
wiselib::tinyos Namespace Reference

Classes

class  ExtendedData
struct  tinyos_timer_item

Typedefs

typedef delegate3< void,
uint16_t, uint8_t, uint8_t * > 
radio_delegate_t
typedef delegate4< void,
uint16_t, uint8_t, uint8_t
*, const ExtendedData & > 
extended_radio_delegate_t
typedef delegate1< void, void * > tinyos_timer_delegate_t

Functions

void tinyos_external_receive (uint16_t from, uint8_t len, uint8_t *data, uint8_t lqi)
int tinyos_radio_add_receiver (radio_delegate_t &d)
int tinyos_radio_add_extended_receiver (extended_radio_delegate_t &d)
bool tinyos_radio_del_receiver (int idx)
void tinyos_init_wiselib_radio (void)
void tinyos_timer_fired (int idx)
int tinyos_add_new_timer (tinyos_timer_delegate_t cb, void *data, uint32_t millis)
void tinyos_init_wiselib_timer (void)
void tinyos_glue_uart_rcv_byte (uint8_t data)

Variables

static const int MAX_REGISTERED_RECEIVERS = 10
static radio_delegate_t receivers [MAX_REGISTERED_RECEIVERS]
static extended_radio_delegate_t extended_receivers [MAX_REGISTERED_RECEIVERS]
static const int MAX_REGISTERED_TIMER = 5
static tinyos_timer_item timer_items [MAX_REGISTERED_TIMER]

Typedef Documentation

typedef delegate1<void, void*> wiselib::tinyos::tinyos_timer_delegate_t

Function Documentation

int wiselib::tinyos::tinyos_add_new_timer ( tinyos_timer_delegate_t  cb,
void *  data,
uint32_t  millis 
)
void wiselib::tinyos::tinyos_external_receive ( uint16_t  from,
uint8_t  len,
uint8_t *  data,
uint8_t  lqi 
)
void wiselib::tinyos::tinyos_glue_uart_rcv_byte ( uint8_t  data)
void wiselib::tinyos::tinyos_init_wiselib_radio ( void  )
void wiselib::tinyos::tinyos_init_wiselib_timer ( void  )
int wiselib::tinyos::tinyos_radio_add_extended_receiver ( extended_radio_delegate_t &  d)
int wiselib::tinyos::tinyos_radio_add_receiver ( radio_delegate_t d)
bool wiselib::tinyos::tinyos_radio_del_receiver ( int  idx)
void wiselib::tinyos::tinyos_timer_fired ( int  idx)

Variable Documentation

const int wiselib::tinyos::MAX_REGISTERED_TIMER = 5 [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines