![]() |
用于监听SD卡插拔事件
#include "SDCardClient.hpp"
Public 类型 | |
| using | SDCardInfoCallback = std::function< void(int chn, SDCard::Info &info)> |
| SD卡插拔事件回调函数 更多... | |
Public 成员函数 | |
| SDCardClientEvent (EuvLoop &loop, char *buffer, int size, SDCardInfoCallback cb) | |
| 构造函数 更多... | |
| void | Create () |
| 创建监听 创建成功之后,会收到异步的SDCardInfoCallback回调 方便使用者知道SD卡当前的状态 更多... | |
| void | Destroy () |
| 销毁监听 更多... | |
| using Emx::SDCardClientEvent::SDCardInfoCallback = std::function<void(int chn, SDCard::Info &info)> |
| chn | [in] 发生时间的通道号 |
| info | [in] SD卡信息 |
|
inline |
| loop | [in] 需要绑定的loop |
| buffer | [in] 提供用于缓存的buffer |
| size | [in] 用于缓存buffer的大小 |
| cb | [in] SD卡插拔事件回调函数 |
| void Emx::SDCardClientEvent::Create | ( | ) |
| void Emx::SDCardClientEvent::Destroy | ( | ) |