RMVL  2.4.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::async::SerialPort::SerialReadAwaiter类 参考

串口读等待器 更多...

#include <rmvl/io/serial.hpp>

类 rm::async::SerialPort::SerialReadAwaiter 继承关系图:
rm::async::SerialPort::SerialReadAwaiter 的协作图:

Public 成员函数

 SerialReadAwaiter (IOContext &ctx, FileDescriptor fd)
 创建串口读等待器
Public 成员函数 继承自 rm::async::AsyncReadAwaiter
 AsyncReadAwaiter (IOContext &ctx, FileDescriptor fd)
 创建异步读等待器
Public 成员函数 继承自 rm::async::AsyncIOAwaiter
 AsyncIOAwaiter (IOContext &context, FileDescriptor fd)
 创建异步 IO 等待器

额外继承的成员函数

Protected 属性 继承自 rm::async::AsyncIOAwaiter
FileDescriptor _aioh {INVALID_FD}
 异步 I/O 文件描述符(Windows 下为 IOCP,Linux 下为 epoll)
FileDescriptor _fd {INVALID_FD}
 文件句柄

详细描述

串口读等待器

构造及析构函数说明

◆ SerialReadAwaiter()

rm::async::SerialPort::SerialReadAwaiter::SerialReadAwaiter ( IOContext & ctx,
FileDescriptor fd )
inline

创建串口读等待器

参数
[in]ctx异步 I/O 执行上下文
[in]fd需要监听的文件描述符(文件句柄)
函数调用图:

该类的文档由以下文件生成: