File indexing completed on 2025-01-18 09:28:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_ASIO_IMPL_SERIAL_PORT_BASE_HPP
0013 #define BOOST_ASIO_IMPL_SERIAL_PORT_BASE_HPP
0014
0015 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0016 # pragma once
0017 #endif
0018
0019 #include <boost/asio/detail/push_options.hpp>
0020
0021 namespace boost {
0022 namespace asio {
0023
0024 inline serial_port_base::baud_rate::baud_rate(unsigned int rate)
0025 : value_(rate)
0026 {
0027 }
0028
0029 inline unsigned int serial_port_base::baud_rate::value() const
0030 {
0031 return value_;
0032 }
0033
0034 inline serial_port_base::flow_control::type
0035 serial_port_base::flow_control::value() const
0036 {
0037 return value_;
0038 }
0039
0040 inline serial_port_base::parity::type serial_port_base::parity::value() const
0041 {
0042 return value_;
0043 }
0044
0045 inline serial_port_base::stop_bits::type
0046 serial_port_base::stop_bits::value() const
0047 {
0048 return value_;
0049 }
0050
0051 inline unsigned int serial_port_base::character_size::value() const
0052 {
0053 return value_;
0054 }
0055
0056 }
0057 }
0058
0059 #include <boost/asio/detail/pop_options.hpp>
0060
0061 #endif