Wiselib
|
Base Uart classBasic uart class that provides helpful methods like registration of callbacks. More...
#include <uart_base.h>
Public Types | |
enum | ReturnValues { SUCCESS = OsModel::SUCCESS } |
typedef OsModel_P | OsModel |
typedef Size_P | size_t |
typedef BlockData_P | block_data_t |
typedef delegate2< void, size_t, block_data_t * > | uart_delegate_t |
typedef vector_static< OsModel, uart_delegate_t, MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions | |
template<class T , void(T::*)(size_t, block_data_t *) TMethod> | |
int | reg_read_callback (T *obj_pnt) |
int | unreg_read_callback (int idx) |
void | notify_receivers (size_t len, block_data_t *data) |
Base Uart class
Basic uart class that provides helpful methods like registration of callbacks.
typedef BlockData_P wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::block_data_t |
Reimplemented in wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >, wiselib::iSenseSerialComUartModel< OsModel_P, MESSAGE_TYPE_IN, MESSAGE_TYPE_OUT, UART >, wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >, wiselib::ShawnStringTagUartModel< OsModel_P >, wiselib::TinyOsComUartModel< OsModel_P >, and wiselib::RemoteUartModel< OsModel_P, Radio_P, Flooding_Radio_P, Uart_P, Debug_P, Timer_P, Rand_P, Clock_P >.
typedef vector_static<OsModel, uart_delegate_t, MAX_RECEIVERS> wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::CallbackVector |
typedef CallbackVector::iterator wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::CallbackVectorIterator |
typedef OsModel_P wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::OsModel |
Reimplemented in wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >, wiselib::iSenseSerialComUartModel< OsModel_P, MESSAGE_TYPE_IN, MESSAGE_TYPE_OUT, UART >, wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >, wiselib::ShawnStringTagUartModel< OsModel_P >, wiselib::TinyOsComUartModel< OsModel_P >, and wiselib::RemoteUartModel< OsModel_P, Radio_P, Flooding_Radio_P, Uart_P, Debug_P, Timer_P, Rand_P, Clock_P >.
typedef Size_P wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::size_t |
Reimplemented in wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >, wiselib::iSenseSerialComUartModel< OsModel_P, MESSAGE_TYPE_IN, MESSAGE_TYPE_OUT, UART >, wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >, wiselib::ShawnStringTagUartModel< OsModel_P >, wiselib::TinyOsComUartModel< OsModel_P >, and wiselib::RemoteUartModel< OsModel_P, Radio_P, Flooding_Radio_P, Uart_P, Debug_P, Timer_P, Rand_P, Clock_P >.
typedef delegate2<void, size_t, block_data_t*> wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::uart_delegate_t |
enum wiselib::UartBase::ReturnValues |
void wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::notify_receivers | ( | size_t | len, |
block_data_t * | data | ||
) | [inline] |
int wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::reg_read_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::unreg_read_callback | ( | int | idx | ) | [inline] |