#include <mavlink_serial.h>
|
virtual void | do_async_read (const boost::asio::mutable_buffers_1 &buffer, boost::function< void(const boost::system::error_code &, size_t)> handler) |
| Initiate an asynchronous read operation. More...
|
|
virtual void | do_async_write (const boost::asio::const_buffers_1 &buffer, boost::function< void(const boost::system::error_code &, size_t)> handler) |
| Initialize an asynchronous write operation. More...
|
|
virtual void | do_close () |
|
virtual void | do_open () |
|
virtual bool | is_open () |
|
Definition at line 50 of file mavlink_serial.h.
mavrosflight::MavlinkSerial::MavlinkSerial |
( |
std::string |
port, |
|
|
int |
baud_rate |
|
) |
| |
Instantiates the class and begins communication on the specified serial port.
- Parameters
-
port | Name of the serial port (e.g. "/dev/ttyUSB0") |
baud_rate | Serial communication baud rate |
Definition at line 45 of file mavlink_serial.cpp.
mavrosflight::MavlinkSerial::~MavlinkSerial |
( |
| ) |
|
Stops communication and closes the serial port before the object is destroyed.
Definition at line 53 of file mavlink_serial.cpp.
void mavrosflight::MavlinkSerial::do_async_read |
( |
const boost::asio::mutable_buffers_1 & |
buffer, |
|
|
boost::function< void(const boost::system::error_code &, size_t)> |
handler |
|
) |
| |
|
privatevirtual |
void mavrosflight::MavlinkSerial::do_async_write |
( |
const boost::asio::const_buffers_1 & |
buffer, |
|
|
boost::function< void(const boost::system::error_code &, size_t)> |
handler |
|
) |
| |
|
privatevirtual |
Initialize an asynchronous write operation.
- Parameters
-
check_write_state | If true, only start another write operation if a write sequence is not already running |
Implements mavrosflight::MavlinkComm.
Definition at line 90 of file mavlink_serial.cpp.
void mavrosflight::MavlinkSerial::do_close |
( |
| ) |
|
|
privatevirtual |
void mavrosflight::MavlinkSerial::do_open |
( |
| ) |
|
|
privatevirtual |
bool mavrosflight::MavlinkSerial::is_open |
( |
| ) |
|
|
privatevirtual |
int mavrosflight::MavlinkSerial::baud_rate_ |
|
private |
std::string mavrosflight::MavlinkSerial::port_ |
|
private |
boost::asio::serial_port mavrosflight::MavlinkSerial::serial_port_ |
|
private |
The documentation for this class was generated from the following files: