Wiselib
Public Types | Public Member Functions
wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART > Class Template Reference

iSense Implementation of Serial Communication FacetiSense implementation of the Serial Communication Facet. More...

#include <isense_com_bufferuart.h>

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

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
typedef OsModel_P OsModel
typedef
iSenseSerialComBufferUartModel
< OsModel, UART > 
self_t
typedef self_tself_pointer_t
typedef uint8 block_data_t
typedef uint8 size_t
typedef uint8 uart_packet_length_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

 iSenseSerialComBufferUartModel (isense::Os &os)
int enable_serial_comm ()
int disable_serial_comm ()
int write (size_t len, block_data_t *buf)
void handle_uint8_data (uint8 data)
virtual void execute (void *userdata)
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, int UART = 0>
class wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >

iSense Implementation of Serial Communication Facet

iSense implementation of the Serial Communication Facet.

This implementation writes the buffer directly to the UART, without using packet types.

Alternatively, there is also a "packet UART" (isense_com_uart.h) that sends iShell-compliant packets.


Member Typedef Documentation

template<typename OsModel_P , int UART = 0>
typedef uint8 wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::block_data_t
typedef vector_static<OsModel, uart_delegate_t, UART_BASE_MAX_RECEIVERS > wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::CallbackVector [inherited]
typedef CallbackVector::iterator wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::CallbackVectorIterator [inherited]
template<typename OsModel_P , int UART = 0>
typedef OsModel_P wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::OsModel
template<typename OsModel_P , int UART = 0>
typedef self_t* wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::self_pointer_t
template<typename OsModel_P , int UART = 0>
typedef iSenseSerialComBufferUartModel<OsModel, UART> wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::self_t
template<typename OsModel_P , int UART = 0>
typedef uint8 wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::size_t
typedef delegate2<void, size_t, block_data_t*> wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::uart_delegate_t [inherited]
template<typename OsModel_P , int UART = 0>
typedef uint8 wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::uart_packet_length_t

Member Enumeration Documentation

template<typename OsModel_P , int UART = 0>
enum wiselib::iSenseSerialComBufferUartModel::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 

Constructor & Destructor Documentation

template<typename OsModel_P , int UART = 0>
wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::iSenseSerialComBufferUartModel ( isense::Os os) [inline]

Member Function Documentation

template<typename OsModel_P , int UART = 0>
int wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::disable_serial_comm ( ) [inline]
template<typename OsModel_P , int UART = 0>
int wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::enable_serial_comm ( ) [inline]
template<typename OsModel_P , int UART = 0>
virtual void wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::execute ( void *  userdata) [inline, virtual]
template<typename OsModel_P , int UART = 0>
void wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::handle_uint8_data ( uint8  data) [inline]
void wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::notify_receivers ( size_t  len,
block_data_t data 
) [inline, inherited]
int wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::reg_read_callback ( T *  obj_pnt) [inline, inherited]
int wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::unreg_read_callback ( int  idx) [inline, inherited]
template<typename OsModel_P , int UART = 0>
int wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::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