1 #ifndef __MARNAV__IO__DEFAULT_NMEA_SERIAL__HPP__
2 #define __MARNAV__IO__DEFAULT_NMEA_SERIAL__HPP__
4 #include <marnav/io/serial.hpp>
5 #include <marnav/utils/unique.hpp>
10 /// Returns a serial device with the default configuration for reading NMEA.
12 /// @note The default parameters are not valid in every case, depending on the device.
14 /// @param [in] port The device name.
15 /// @return The serial device object, default configured.
16 inline std::unique_ptr
<serial
> make_default_nmea_serial(const std::string
& port
)
18 return utils::make_unique
<serial
>(port
, serial::baud::BAUD_4800
, serial::databits::BIT_8
,
19 serial::stopbits::BIT_1
, serial::parity::NONE
);