Wiselib
|
Parameters address_ -> UART Device address e.g. More...
#include <pc_com_uart_file.h>
Inherits wiselib::UartBase< OsModel_P, OsModel_P::size_t, OsModel_P::block_data_t >.
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC } |
typedef OsModel_P | OsModel |
typedef Timer_P | Timer |
typedef OsModel::size_t | size_t |
typedef OsModel::block_data_t | block_data_t |
typedef PCComUartModel < OsModel_P, address_, isense_reset_, Timer_P > | self_type |
typedef self_type * | self_pointer_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 | |
PCComUartModel () | |
PCComUartModel (PCOs &os) | |
void | set_baudrate (uint32_t baudrate) |
int | enable_serial_comm () |
int | disable_serial_comm () |
int | write (size_t len, char *buf) |
void | try_read (void *userdata) |
const char * | address () |
int | reg_read_callback (T *obj_pnt) |
int | unreg_read_callback (int idx) |
void | notify_receivers (size_t len, block_data_t *data) |
Parameters address_ -> UART Device address e.g.
"/dev/ttyUSB0" (hint: allocate char[] in order to be able to pass string template parameter) isense_reset -> If true, toggle RTS/DTR lines at beginning of communication so an attached iSense node will reboot. Might confuse other UART devices so only use for iSense.
typedef OsModel::block_data_t wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::block_data_t |
Reimplemented from wiselib::UartBase< OsModel_P, OsModel_P::size_t, OsModel_P::block_data_t >.
typedef vector_static<OsModel, uart_delegate_t, UART_BASE_MAX_RECEIVERS > wiselib::UartBase< OsModel_P, OsModel_P::size_t , OsModel_P::block_data_t , UART_BASE_MAX_RECEIVERS >::CallbackVector [inherited] |
typedef CallbackVector::iterator wiselib::UartBase< OsModel_P, OsModel_P::size_t , OsModel_P::block_data_t , UART_BASE_MAX_RECEIVERS >::CallbackVectorIterator [inherited] |
typedef OsModel_P wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::OsModel |
Reimplemented from wiselib::UartBase< OsModel_P, OsModel_P::size_t, OsModel_P::block_data_t >.
typedef self_type* wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::self_pointer_t |
typedef PCComUartModel<OsModel_P, address_, isense_reset_, Timer_P> wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::self_type |
typedef OsModel::size_t wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::size_t |
Reimplemented from wiselib::UartBase< OsModel_P, OsModel_P::size_t, OsModel_P::block_data_t >.
typedef Timer_P wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::Timer |
typedef delegate2<void, size_t, block_data_t*> wiselib::UartBase< OsModel_P, OsModel_P::size_t , OsModel_P::block_data_t , UART_BASE_MAX_RECEIVERS >::uart_delegate_t [inherited] |
enum wiselib::PCComUartModel::ErrorCodes |
enum wiselib::UartBase::ReturnValues [inherited] |
wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::PCComUartModel | ( | ) |
wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::PCComUartModel | ( | PCOs & | os | ) |
const char* wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::address | ( | ) | [inline] |
int wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::disable_serial_comm | ( | ) |
int wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::enable_serial_comm | ( | ) |
void wiselib::UartBase< OsModel_P, OsModel_P::size_t , OsModel_P::block_data_t , UART_BASE_MAX_RECEIVERS >::notify_receivers | ( | size_t | len, |
block_data_t * | data | ||
) | [inline, inherited] |
int wiselib::UartBase< OsModel_P, OsModel_P::size_t , OsModel_P::block_data_t , UART_BASE_MAX_RECEIVERS >::reg_read_callback | ( | T * | obj_pnt | ) | [inline, inherited] |
void wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::set_baudrate | ( | uint32_t | baudrate | ) | [inline] |
void wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::try_read | ( | void * | userdata | ) |
int wiselib::UartBase< OsModel_P, OsModel_P::size_t , OsModel_P::block_data_t , UART_BASE_MAX_RECEIVERS >::unreg_read_callback | ( | int | idx | ) | [inline, inherited] |
int wiselib::PCComUartModel< OsModel_P, address_, isense_reset_, Timer_P >::write | ( | size_t | len, |
char * | buf | ||
) |