12 #ifndef ASIO_SERIAL_PORT_BASE_HPP 13 #define ASIO_SERIAL_PORT_BASE_HPP 15 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 17 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 21 #if defined(ASIO_HAS_SERIAL_PORT) \ 22 || defined(GENERATING_DOCUMENTATION) 24 #if !defined(ASIO_WINDOWS) && !defined(__CYGWIN__) 26 #endif // !defined(ASIO_WINDOWS) && !defined(__CYGWIN__) 31 #if defined(GENERATING_DOCUMENTATION) 32 # define ASIO_OPTION_STORAGE implementation_defined 33 #elif defined(ASIO_WINDOWS) || defined(__CYGWIN__) 34 # define ASIO_OPTION_STORAGE DCB 36 # define ASIO_OPTION_STORAGE termios 45 class serial_port_base
55 explicit baud_rate(
unsigned int rate = 0);
56 unsigned int value()
const;
58 ASIO_OPTION_STORAGE& storage,
61 const ASIO_OPTION_STORAGE& storage,
74 enum type { none, software, hardware };
75 ASIO_DECL explicit flow_control(type t = none);
78 ASIO_OPTION_STORAGE& storage,
81 const ASIO_OPTION_STORAGE& storage,
94 enum type { none, odd, even };
98 ASIO_OPTION_STORAGE& storage,
101 const ASIO_OPTION_STORAGE& storage,
114 enum type { one, onepointfive, two };
115 ASIO_DECL explicit stop_bits(type t = one);
118 ASIO_OPTION_STORAGE& storage,
121 const ASIO_OPTION_STORAGE& storage,
134 ASIO_DECL explicit character_size(
unsigned int t = 8);
135 unsigned int value()
const;
137 ASIO_OPTION_STORAGE& storage,
140 const ASIO_OPTION_STORAGE& storage,
157 #undef ASIO_OPTION_STORAGE 160 #if defined(ASIO_HEADER_ONLY) 162 #endif // defined(ASIO_HEADER_ONLY) 164 #endif // defined(ASIO_HAS_SERIAL_PORT) 167 #endif // ASIO_SERIAL_PORT_BASE_HPP
Class to represent an error code value.