Wiselib
Public Types | Public Member Functions
wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS > Class Template Reference

Base Uart classBasic uart class that provides helpful methods like registration of callbacks. More...

#include <uart_base.h>

List of all members.

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)

Detailed Description

template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
class wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >

Base Uart class

Basic uart class that provides helpful methods like registration of callbacks.


Member Typedef Documentation

template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
typedef BlockData_P wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::block_data_t
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
typedef vector_static<OsModel, uart_delegate_t, MAX_RECEIVERS> wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::CallbackVector
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
typedef CallbackVector::iterator wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::CallbackVectorIterator
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
typedef OsModel_P wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::OsModel
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
typedef Size_P wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::size_t
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
typedef delegate2<void, size_t, block_data_t*> wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::uart_delegate_t

Member Enumeration Documentation

template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
enum wiselib::UartBase::ReturnValues
Enumerator:
SUCCESS 

Member Function Documentation

template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
void wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::notify_receivers ( size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
template<class T , void(T::*)(size_t, block_data_t *) TMethod>
int wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::reg_read_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = UART_BASE_MAX_RECEIVERS>
int wiselib::UartBase< OsModel_P, Size_P, BlockData_P, MAX_RECEIVERS >::unreg_read_callback ( int  idx) [inline]

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