libcw/cwSerialPortSrv.h
kpl d6e0f5e675 Many changes and additions.
Added serial port, websocket, midi and initial audio functionality.
2019-12-24 10:05:24 -05:00

29 lines
614 B
C++

#ifndef cwSerialPortSrv_H
#define cwSerialPortSrv_H
namespace cw
{
namespace serialPortSrv
{
typedef handle<struct this_str> handle_t;
rc_t create( handle_t& h, const char* device, unsigned baudRate, unsigned cfgFlags, serialPort::callbackFunc_t cbFunc, void* cbArg, unsigned pollPeriodMs );
rc_t destroy(handle_t& h );
serialPort::handle_t portHandle( handle_t h );
thread::handle_t threadHandle( handle_t h );
rc_t start( handle_t h );
rc_t pause( handle_t h );
rc_t send( handle_t h, const void* byteA, unsigned byteN );
}
rc_t serialPortSrvTest();
}
#endif