DJI::OSDK::LinuxSerialDevice Class Reference
POSIX-Compatible Serial Driver for *NIX platforms. More...
#include <linux_serial_device.hpp>
Inherits HardDriver.
Public Member Functions | |
| LinuxSerialDevice (const char *device, uint32_t baudrate) | |
| void | init () |
| bool | getDeviceStatus () |
| void | setBaudrate (uint32_t baudrate) |
| void | setDevice (const char *device) |
| int | checkBaudRate (uint8_t(&buf)[BUFFER_SIZE]) |
| int | setSerialPureTimedRead () |
| int | unsetSerialPureTimedRead () |
| int | serialRead (uint8_t *buf, int len) |
| size_t | send (const uint8_t *buf, size_t len) |
| Start of DJI_HardDriver virtual function implementations. | |
| size_t | readall (uint8_t *buf, size_t maxlen) |
| DJI::OSDK::time_ms | getTimeStamp () |
| Implemented here because .. | |
| void | delay_nms (uint16_t time) |
Static Public Attributes | |
| static const int | BUFFER_SIZE = 2048 |
Detailed Description
POSIX-Compatible Serial Driver for *NIX platforms.
Constructor & Destructor Documentation
◆ LinuxSerialDevice()
| LinuxSerialDevice::LinuxSerialDevice | ( | const char * | device, |
| uint32_t | baudrate | ||
| ) |
Implementing inherited functions from abstract class DJI_HardDriver
Member Function Documentation
◆ checkBaudRate()
|
inline |
Public interfaces to private functions. Use these functions to validate your serial connection
◆ setBaudrate()
| void LinuxSerialDevice::setBaudrate | ( | uint32_t | baudrate | ) |
Implement functions specific to this hardware driver
The documentation for this class was generated from the following files:
- osdk-core/platform/linux/inc/linux_serial_device.hpp
- osdk-core/platform/linux/src/linux_serial_device.cpp