Wiselib
Public Types | Public Member Functions
wiselib::ShawnStringTagUartModel< OsModel_P > Class Template Reference

Shawn UART implementation using String Tags. More...

#include <shawn_stringtag_uart.h>

Inherits wiselib::UartBase< OsModel_P, uint8_t, uint8_t >.

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
typedef OsModel_P OsModel
typedef
ShawnStringTagUartModel
< OsModel
self_type
typedef self_typeself_pointer_t
typedef uint8_t block_data_t
typedef uint8_t size_t
enum  ReturnValues
typedef delegate2< void,
size_t, block_data_t * > 
uart_delegate_t
typedef vector_static< OsModel,
uart_delegate_t,
UART_BASE_MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

 ShawnStringTagUartModel (ShawnOs &os)
int enable_serial_comm ()
int disable_serial_comm ()
int write (size_t len, block_data_t *buf)
void receive (size_t len, block_data_t *buf)
void set_tagname (std::string tagname)
std::string tagname ()
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>
class wiselib::ShawnStringTagUartModel< OsModel_P >

Shawn UART implementation using String Tags.

Uart implementation for Shawn that writes each buffer received via "write" to a string tag.


Member Typedef Documentation

template<typename OsModel_P >
typedef uint8_t wiselib::ShawnStringTagUartModel< OsModel_P >::block_data_t
typedef vector_static<OsModel, uart_delegate_t, UART_BASE_MAX_RECEIVERS > wiselib::UartBase< OsModel_P, uint8_t , uint8_t , UART_BASE_MAX_RECEIVERS >::CallbackVector [inherited]
typedef CallbackVector::iterator wiselib::UartBase< OsModel_P, uint8_t , uint8_t , UART_BASE_MAX_RECEIVERS >::CallbackVectorIterator [inherited]
template<typename OsModel_P >
typedef OsModel_P wiselib::ShawnStringTagUartModel< OsModel_P >::OsModel
template<typename OsModel_P >
typedef self_type* wiselib::ShawnStringTagUartModel< OsModel_P >::self_pointer_t
template<typename OsModel_P >
typedef ShawnStringTagUartModel<OsModel> wiselib::ShawnStringTagUartModel< OsModel_P >::self_type
template<typename OsModel_P >
typedef uint8_t wiselib::ShawnStringTagUartModel< OsModel_P >::size_t
typedef delegate2<void, size_t, block_data_t*> wiselib::UartBase< OsModel_P, uint8_t , uint8_t , UART_BASE_MAX_RECEIVERS >::uart_delegate_t [inherited]

Member Enumeration Documentation

template<typename OsModel_P >
enum wiselib::ShawnStringTagUartModel::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 

Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::ShawnStringTagUartModel< OsModel_P >::ShawnStringTagUartModel ( ShawnOs os) [inline]

Member Function Documentation

template<typename OsModel_P >
int wiselib::ShawnStringTagUartModel< OsModel_P >::disable_serial_comm ( ) [inline]
template<typename OsModel_P >
int wiselib::ShawnStringTagUartModel< OsModel_P >::enable_serial_comm ( ) [inline]
void wiselib::UartBase< OsModel_P, uint8_t , uint8_t , UART_BASE_MAX_RECEIVERS >::notify_receivers ( size_t  len,
block_data_t data 
) [inline, inherited]
template<typename OsModel_P >
void wiselib::ShawnStringTagUartModel< OsModel_P >::receive ( size_t  len,
block_data_t buf 
) [inline]
int wiselib::UartBase< OsModel_P, uint8_t , uint8_t , UART_BASE_MAX_RECEIVERS >::reg_read_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P >
void wiselib::ShawnStringTagUartModel< OsModel_P >::set_tagname ( std::string  tagname) [inline]
template<typename OsModel_P >
std::string wiselib::ShawnStringTagUartModel< OsModel_P >::tagname ( ) [inline]
int wiselib::UartBase< OsModel_P, uint8_t , uint8_t , UART_BASE_MAX_RECEIVERS >::unreg_read_callback ( int  idx) [inline, inherited]
template<typename OsModel_P >
int wiselib::ShawnStringTagUartModel< OsModel_P >::write ( size_t  len,
block_data_t buf 
) [inline]

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