39 namespace rp{
namespace hal{
58 virtual bool bind(
const char * portname,
_u32 baudrate,
_u32 flags = 0) = 0;
59 virtual bool open() = 0;
60 virtual void close() = 0;
62 virtual int waitfordata(
size_t data_count,
_u32 timeout = -1,
size_t * returned_size = NULL) = 0;
65 virtual int recvdata(
unsigned char * data,
size_t size) = 0;
67 virtual int waitforsent(
_u32 timeout = -1,
size_t * returned_size = NULL) = 0;
68 virtual int waitforrecv(
_u32 timeout = -1,
size_t * returned_size = NULL) = 0;
virtual int recvdata(unsigned char *data, size_t size)=0
virtual void cancelOperation()
virtual bool bind(const char *portname, _u32 baudrate, _u32 flags=0)=0
virtual int senddata(const unsigned char *data, size_t size)=0
static serial_rxtx * CreateRxTx()
static void ReleaseRxTx(serial_rxtx *)
volatile bool _is_serial_opened
virtual int waitforsent(_u32 timeout=-1, size_t *returned_size=NULL)=0
virtual void clearDTR()=0
virtual int waitfordata(size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL)=0
virtual void flush(_u32 flags)=0
virtual int waitforrecv(_u32 timeout=-1, size_t *returned_size=NULL)=0
virtual size_t rxqueue_count()=0