1 #ifndef MSP_IO_SERIAL_H_
2 #define MSP_IO_SERIAL_H_
10 class Serial: public Base
24 Serial(const std::string &);
31 virtual void set_block(bool);
33 void set_baud_rate(unsigned);
34 void set_data_bits(unsigned);
35 void set_parity(Parity);
36 void set_stop_bits(unsigned);
37 void set_parameters(const std::string &);
40 virtual unsigned do_write(const char *, unsigned);
41 virtual unsigned do_read(char *, unsigned);
44 virtual const Handle &get_event_handle();