Changeset 12 for trunk/shared_serial/include/shared_serial/LxSerial.h
- Timestamp:
- 08/29/12 16:52:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/shared_serial/include/shared_serial/LxSerial.h
r8 r12 86 86 87 87 public: 88 89 virtual~LxSerial();90 virtualbool port_open(const std::string& portname, LxSerial::PortType port_type); // open serial port. If overridden, make sure you set s_port_name!!91 virtualbool is_port_open();88 LxSerial(); 89 ~LxSerial(); 90 bool port_open(const std::string& portname, LxSerial::PortType port_type); // open serial port. If overridden, make sure you set s_port_name!! 91 bool is_port_open(); 92 92 std::string& get_port_name(); 93 virtualbool set_speed(LxSerial::PortSpeed baudrate ); // enumerated94 virtualbool set_speed_int(const int baudrate); // Set speed by integer value directly - UNPROTECTED!95 void 96 virtualbool port_close();97 virtual intport_read(unsigned char* buffer, int numBytes) const;98 virtualint port_read(unsigned char* buffer, int numBytes, int seconds, int microseconds);99 virtual intport_write(unsigned char* buffer, int numBytes);100 v irtual void flush_buffer(); // flush input and output buffers93 bool set_speed(LxSerial::PortSpeed baudrate ); // enumerated 94 bool set_speed_int(const int baudrate); // Set speed by integer value directly - UNPROTECTED! 95 void set_clear_echo(bool clear); // clear echoed charackters from input and detect collisions on write 96 bool port_close(); 97 int port_read(unsigned char* buffer, int numBytes) const; 98 int port_read(unsigned char* buffer, int numBytes, int seconds, int microseconds); 99 int port_write(unsigned char* buffer, int numBytes); 100 void flush_buffer(); // flush input and output buffers 101 101 102 102 };
Note: See TracChangeset
for help on using the changeset viewer.