59 virtual bool bind(
const char* portname,
_u32 baudrate,
_u32 flags = 0) = 0;
60 virtual bool open() = 0;
61 virtual void close() = 0;
64 size_t data_count,
_u32 timeout = -1,
65 size_t* returned_size =
nullptr) = 0;
71 _u32 timeout = -1,
size_t* returned_size =
nullptr) = 0;
73 _u32 timeout = -1,
size_t* returned_size =
nullptr) = 0;
virtual int recvdata(unsigned char *data, size_t size)=0
virtual bool bind(const char *portname, _u32 baudrate, _u32 flags=0)=0
virtual int waitforrecv(_u32 timeout=-1, size_t *returned_size=nullptr)=0
virtual int waitforsent(_u32 timeout=-1, size_t *returned_size=nullptr)=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 void clearDTR()=0
virtual void flush(_u32 flags)=0
GLsizei GLsizei GLenum GLenum const GLvoid * data
virtual int waitfordata(size_t data_count, _u32 timeout=-1, size_t *returned_size=nullptr)=0
virtual size_t rxqueue_count()=0