X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fserial_private.h;fp=source%2Fio%2Fserial_private.h;h=1b497be50b2342ca744880ef59e0c5cd0df3f9b0;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hp=0000000000000000000000000000000000000000;hpb=b4806214e905752617691f851717033fd3f266c2;p=libs%2Fcore.git diff --git a/source/io/serial_private.h b/source/io/serial_private.h new file mode 100644 index 0000000..1b497be --- /dev/null +++ b/source/io/serial_private.h @@ -0,0 +1,25 @@ +#ifndef MSP_IO_SERIAL_PRIVATE_H_ +#define MSP_IO_SERIAL_PRIVATE_H_ + +#include "serial.h" +#include "serial_platform.h" + +namespace Msp { +namespace IO { + +struct Serial::DeviceState +{ + PlatformSerialDeviceState state; + + void get_from(const Handle &); + void apply_to(const Handle &); + void set_baud_rate(unsigned); + void set_data_bits(unsigned); + void set_parity(Serial::Parity); + void set_stop_bits(unsigned); +}; + +} // namespace IO +} // namespace Msp + +#endif