#include <SerialPortThreaded.hh>
Inherits SerialPort.
This module implements serial port access functionality under QNX and Linux using seperate threads and blocking device driver calls. The initialization and configuration of the serial ports are done by this base class, SerialPort.
Public Member Functions | |
SerialPortThreaded (comm_t port, baud_t brate) | |
void | init (void) |
void | uninit (void) |
void | activate (void) |
void | deactivate (void) |
int | getData (char buf[], float time[], int size) |
int | getData (char buf[], int size) |
int | sendData (char buf[], int size) |
bool | isGetFull (void) |
int | getGetCount (void) |
bool | isSendFull (void) |
void | flushGet (void) |
void | flushSend (void) |
bool | isChildActive (void) |
void | activateChild (void) |
void | deactivateChild (void) |
bool | canThreadCycle (void) |
void | stopThreadCycle (void) |
void | startThreadCycle (void) |
Public Attributes | |
char | sendBuf [SERIALPORT_BUF_SIZE] |
char | getBuf [SERIALPORT_BUF_SIZE] |
float | getTime [SERIALPORT_BUF_SIZE] |
int | sendCount |
int | getCount |
pthread_mutex_t * | sendMutex |
pthread_mutex_t * | getMutex |
pthread_cond_t * | sendEnableCond |