Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:57

0001 //
0002 // impl/serial_port_base.hpp
0003 // ~~~~~~~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 // Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0009 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
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 // defined(_MSC_VER) && (_MSC_VER >= 1200)
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 } // namespace asio
0057 } // namespace boost
0058 
0059 #include <boost/asio/detail/pop_options.hpp>
0060 
0061 #endif // BOOST_ASIO_IMPL_SERIAL_PORT_BASE_HPP