#include <net_serial.h>
Public Types | |
enum | { SERIAL_RX_BUFFER_SIZE = 512, SERIAL_TX_BUFFER_SIZE = 128 } |
enum | { SERIAL_RX_BUFFER_SIZE = 512, SERIAL_TX_BUFFER_SIZE = 128 } |
enum | { SERIAL_RX_BUFFER_SIZE = 512, SERIAL_TX_BUFFER_SIZE = 128, SERIAL_RX_TIMEOUT = 2000, SERIAL_TX_TIMEOUT = 2000 } |
Public Types inherited from rp::hal::serial_rxtx | |
enum | { ANS_OK = 0, ANS_TIMEOUT = -1, ANS_DEV_ERR = -2 } |
Public Member Functions | |
virtual bool | bind (const char *portname, uint32_t baudrate, uint32_t flags=0) |
virtual bool | bind (const char *portname, uint32_t baudrate, uint32_t flags=0) |
virtual bool | bind (const char *portname, _u32 baudrate, _u32 flags=0) |
virtual void | cancelOperation () |
virtual void | clearDTR () |
virtual void | clearDTR () |
virtual void | clearDTR () |
virtual void | close () |
virtual void | close () |
virtual void | close () |
virtual void | flush (_u32 flags) |
virtual void | flush (_u32 flags) |
virtual void | flush (_u32 flags) |
_u32 | getTermBaudBitmap (_u32 baud) |
_u32 | getTermBaudBitmap (_u32 baud) |
virtual bool | open () |
virtual bool | open () |
virtual bool | open () |
raw_serial () | |
raw_serial () | |
raw_serial () | |
virtual int | recvdata (unsigned char *data, size_t size) |
virtual int | recvdata (unsigned char *data, _word_size_t size) |
virtual int | recvdata (unsigned char *data, size_t size) |
virtual size_t | rxqueue_count () |
virtual size_t | rxqueue_count () |
virtual size_t | rxqueue_count () |
virtual int | senddata (const unsigned char *data, size_t size) |
virtual int | senddata (const unsigned char *data, _word_size_t size) |
virtual int | senddata (const unsigned char *data, size_t size) |
virtual void | setDTR () |
virtual void | setDTR () |
virtual void | setDTR () |
virtual int | waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL) |
virtual int | waitfordata (_word_size_t data_count, _u32 timeout=-1, _word_size_t *returned_size=NULL) |
virtual int | waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL) |
virtual int | waitforrecv (_u32 timeout=-1, size_t *returned_size=NULL) |
virtual int | waitforrecv (_u32 timeout=-1, _word_size_t *returned_size=NULL) |
virtual int | waitforrecv (_u32 timeout=-1, size_t *returned_size=NULL) |
virtual int | waitforsent (_u32 timeout=-1, _word_size_t *returned_size=NULL) |
virtual int | waitforsent (_u32 timeout=-1, size_t *returned_size=NULL) |
virtual int | waitforsent (_u32 timeout=-1, size_t *returned_size=NULL) |
virtual | ~raw_serial () |
virtual | ~raw_serial () |
virtual | ~raw_serial () |
Public Member Functions inherited from rp::hal::serial_rxtx | |
virtual bool | isOpened () |
serial_rxtx () | |
virtual | ~serial_rxtx () |
Protected Member Functions | |
void | _init () |
void | _init () |
void | _init () |
bool | open (const char *portname, uint32_t baudrate, uint32_t flags=0) |
bool | open (const char *portname, _u32 baudrate, _u32 flags) |
bool | open (const char *portname, uint32_t baudrate, uint32_t flags=0) |
Protected Attributes | |
uint32_t | _baudrate |
COMMTIMEOUTS | _co |
DCB | _dcb |
uint32_t | _flags |
bool | _operation_aborted |
char | _portName [200] |
OVERLAPPED | _ro |
int | _selfpipe [2] |
volatile HANDLE | _serial_handle |
OVERLAPPED | _wait_o |
OVERLAPPED | _wo |
size_t | required_rx_cnt |
size_t | required_tx_cnt |
int | serial_fd |
Protected Attributes inherited from rp::hal::serial_rxtx | |
volatile bool | _is_serial_opened |
Additional Inherited Members | |
Static Public Member Functions inherited from rp::hal::serial_rxtx | |
static serial_rxtx * | CreateRxTx () |
static void | ReleaseRxTx (serial_rxtx *) |
Definition at line 41 of file linux/net_serial.h.
anonymous enum |
Enumerator | |
---|---|
SERIAL_RX_BUFFER_SIZE | |
SERIAL_TX_BUFFER_SIZE |
Definition at line 44 of file linux/net_serial.h.
anonymous enum |
Enumerator | |
---|---|
SERIAL_RX_BUFFER_SIZE | |
SERIAL_TX_BUFFER_SIZE |
Definition at line 44 of file macOS/net_serial.h.
anonymous enum |
Enumerator | |
---|---|
SERIAL_RX_BUFFER_SIZE | |
SERIAL_TX_BUFFER_SIZE | |
SERIAL_RX_TIMEOUT | |
SERIAL_TX_TIMEOUT |
Definition at line 44 of file win32/net_serial.h.
rp::arch::net::raw_serial::raw_serial | ( | ) |
Definition at line 69 of file linux/net_serial.cpp.
|
virtual |
Definition at line 78 of file linux/net_serial.cpp.
rp::arch::net::raw_serial::raw_serial | ( | ) |
|
virtual |
rp::arch::net::raw_serial::raw_serial | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
Definition at line 414 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 89 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Reimplemented from rp::hal::serial_rxtx.
Definition at line 423 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 406 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 228 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 281 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 431 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 84 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
|
protected |
|
protected |
Definition at line 97 of file linux/net_serial.cpp.
|
virtual |
Definition at line 165 of file macOS/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 269 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 389 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Definition at line 141 of file macOS/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 246 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 398 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Definition at line 196 of file macOS/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 300 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 292 of file linux/net_serial.cpp.
|
virtual |
Definition at line 188 of file macOS/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
virtual |
Definition at line 182 of file macOS/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
Definition at line 286 of file linux/net_serial.cpp.
|
virtual |
Implements rp::hal::serial_rxtx.
|
protected |
Definition at line 78 of file linux/net_serial.h.
|
protected |
Definition at line 83 of file win32/net_serial.h.
|
protected |
Definition at line 82 of file win32/net_serial.h.
|
protected |
Definition at line 79 of file linux/net_serial.h.
|
protected |
Definition at line 87 of file linux/net_serial.h.
|
protected |
Definition at line 77 of file linux/net_serial.h.
|
protected |
Definition at line 79 of file win32/net_serial.h.
|
protected |
Definition at line 86 of file linux/net_serial.h.
|
protected |
Definition at line 81 of file win32/net_serial.h.
|
protected |
Definition at line 80 of file win32/net_serial.h.
|
protected |
Definition at line 79 of file win32/net_serial.h.
|
protected |
Definition at line 84 of file linux/net_serial.h.
|
protected |
Definition at line 83 of file linux/net_serial.h.
|
protected |
Definition at line 81 of file linux/net_serial.h.