添加与app对接协议

This commit is contained in:
OPTOC
2025-09-09 18:16:48 +08:00
parent fb05542e80
commit f081dc891c
8 changed files with 523 additions and 7 deletions

View File

@@ -134,10 +134,11 @@ uint8_t pc_device_choice(device_t *port, uint8_t type);
* @param port 由对应的驱动提供的绑定接口获得的句柄
* @param buffer 读取数据缓存
* @param length 读取数据长度
* @param timeout 超时时间
* @retval < 0 操作失败或在指定的时间内未满足指定的操作长度
* @retval >= 0 实际已缓存的长度
*/
int embedded_device_read(device_t *port, void *buffer, uint32_t length);
int embedded_device_read(device_t *port, void *buffer, uint32_t length, uint32_t timeout);
/**
* @brief 嵌入式设备数据接口写操作
*