Build: enhance docker use, reducing build options, cleanup
[marnav.git] / src / marnav / io / default_seatalk_serial.hpp
blob328ad84c0c2b04c4f2da4ea2f82f5237b70f5b8b
1 #ifndef MARNAV__IO__DEFAULT_SEATALK_SERIAL__HPP
2 #define MARNAV__IO__DEFAULT_SEATALK_SERIAL__HPP
4 #include <marnav/io/serial.hpp>
5 #include <marnav/utils/unique.hpp>
7 namespace marnav
9 namespace io
11 /// Returns a serial device with the default configuration for reading SeaTalk.
12 ///
13 /// @note The default parameters are not valid in every case, depending on the device.
14 ///
15 /// @param [in] port The device name.
16 /// @return The serial device object, default configured.
17 inline std::unique_ptr<serial> make_default_seatalk_serial(const std::string & port)
19 return utils::make_unique<serial>(port, serial::baud::baud_4800, serial::databits::bit_8,
20 serial::stopbits::bit_1, serial::parity::mark);
25 #endif