![]() |
RMVL
2.4.0-dev
Robotic Manipulation and Vision Library
|
提供跨平台的同步异步 串口 通信功能 更多...
类 | |
| class | rm::SerialPort |
| 同步模式串行接口通信库 更多... | |
| class | rm::async::SerialPort |
| 异步串行接口通信库,仅支持读写字符串 更多... | |
枚举 | |
| enum class | rm::BaudRate : uint8_t { rm::BaudRate::BR_1200 , rm::BaudRate::BR_2400 , rm::BaudRate::BR_4800 , rm::BaudRate::BR_9600 , rm::BaudRate::BR_19200 , rm::BaudRate::BR_38400 , rm::BaudRate::BR_57600 , rm::BaudRate::BR_115200 } |
| 波特率 更多... | |
| enum class | rm::SerialReadMode : uint8_t { rm::SerialReadMode::BLOCK , rm::SerialReadMode::NONBLOCK } |
| 同步模式串口数据读取模式 更多... | |
提供跨平台的同步异步 串口 通信功能
|
strong |
#include <rmvl/io/serial.hpp>
波特率
|
strong |
#include <rmvl/io/serial.hpp>
同步模式串口数据读取模式
| 枚举值 | |
|---|---|
| BLOCK Python: rm.SerialReadMode.BLOCK | 同步阻塞模式,即读取数据时会一直等待直到有数据到来 |
| NONBLOCK Python: rm.SerialReadMode.NONBLOCK | 同步非阻塞模式,即读取数据时不会等待,如果没有数据到来则立即返回 -1 |