3 This file is part of libmspio
4 Copyright © 2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_IO_SERIAL_H_
9 #define MSP_IO_SERIAL_H_
16 class Serial: public Base
33 Serial(const std::string &);
36 virtual void set_block(bool);
38 void set_baud_rate(unsigned);
39 void set_data_bits(unsigned);
40 void set_parity(Parity);
41 void set_stop_bits(unsigned);
42 void set_parameters(const std::string &);
44 virtual Handle get_event_handle() { return handle; }
48 virtual unsigned do_write(const char *, unsigned);
49 virtual unsigned do_read(char *, unsigned);