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>
11 /// Returns a serial device with the default configuration for reading SeaTalk.
13 /// @note The default parameters are not valid in every case, depending on the device.
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
);