|
Wiselib
|
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 >.
Public Types | |
| enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC } |
| typedef OsModel_P | OsModel |
| typedef iSenseSerialComBufferUartModel < OsModel, UART > | self_t |
| typedef self_t * | self_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) |
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.
| typedef uint8 wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::block_data_t |
Reimplemented from wiselib::UartBase< OsModel_P, uint8, uint8 >.
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] |
| typedef OsModel_P wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::OsModel |
Reimplemented from wiselib::UartBase< OsModel_P, uint8, uint8 >.
| typedef self_t* wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::self_pointer_t |
| typedef iSenseSerialComBufferUartModel<OsModel, UART> wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::self_t |
| typedef uint8 wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::size_t |
Reimplemented from wiselib::UartBase< OsModel_P, uint8, uint8 >.
typedef delegate2<void, size_t, block_data_t*> wiselib::UartBase< OsModel_P, uint8 , uint8 , UART_BASE_MAX_RECEIVERS >::uart_delegate_t [inherited] |
| typedef uint8 wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::uart_packet_length_t |
| enum wiselib::iSenseSerialComBufferUartModel::ErrorCodes |
enum wiselib::UartBase::ReturnValues [inherited] |
| wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::iSenseSerialComBufferUartModel | ( | isense::Os & | os | ) | [inline] |
| int wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::disable_serial_comm | ( | ) | [inline] |
| int wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::enable_serial_comm | ( | ) | [inline] |
| virtual void wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::execute | ( | void * | userdata | ) | [inline, virtual] |
| 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] |
| int wiselib::iSenseSerialComBufferUartModel< OsModel_P, UART >::write | ( | size_t | len, |
| block_data_t * | buf | ||
| ) | [inline] |
1.7.4