53 virtual bool bind(
const char* portname,
_u32 baudrate,
_u32 flags = 0);
59 size_t data_count,
_u32 timeout = -1,
size_t* returned_size =
nullptr);
64 virtual int waitforsent(
_u32 timeout = -1,
size_t* returned_size =
nullptr);
65 virtual int waitforrecv(
_u32 timeout = -1,
size_t* returned_size =
nullptr);
73 bool open(
const char* portname,
_u32 baudrate,
_u32 flags);
virtual void flush(_u32 flags)
virtual size_t rxqueue_count()
virtual bool bind(const char *portname, uint32_t baudrate, uint32_t flags=0)
virtual int senddata(const unsigned char *data, size_t size)
virtual int waitfordata(size_t data_count, _u32 timeout=-1, size_t *returned_size=nullptr)
virtual int recvdata(unsigned char *data, size_t size)
virtual int waitforsent(_u32 timeout=-1, size_t *returned_size=nullptr)
volatile HANDLE _serial_handle
virtual int waitforrecv(_u32 timeout=-1, size_t *returned_size=nullptr)
unsigned __int32 uint32_t
GLsizei GLsizei GLenum GLenum const GLvoid * data