SeaTalk: message 54 added.
[marnav.git] / src / marnav / io / default_nmea_serial.hpp
blob9802f0d238ccd555d408a232c4359939ccc2c129
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>
7 namespace marnav {
8 namespace io {
10 /// Returns a serial device with the default configuration for reading NMEA.
11 ///
12 /// @note The default parameters are not valid in every case, depending on the device.
13 ///
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);
24 #endif