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
30 Serial(const std::string &);
33 virtual void set_block(bool);
35 void set_baud_rate(unsigned);
36 void set_data_bits(unsigned);
37 void set_parity(Parity);
38 void set_stop_bits(unsigned);
39 void set_parameters(const std::string &);
41 virtual Handle get_event_handle();
45 virtual unsigned do_write(const char *, unsigned);
46 virtual unsigned do_read(char *, unsigned);