添加app对接接口已经修改灯显示
This commit is contained in:
@@ -68,8 +68,12 @@ typedef struct
|
||||
{
|
||||
uint8_t embedded_device_type;
|
||||
uint8_t pc_device_type;
|
||||
uint8_t app_device_type;
|
||||
|
||||
sb_data_port_t* embedded_device;
|
||||
sb_data_port_t* pc_device;
|
||||
sb_data_port_t* app_device;
|
||||
|
||||
init_device_t init_device;
|
||||
|
||||
uint8_t connect_embedded;
|
||||
@@ -186,4 +190,9 @@ int pc_device_write(device_t *port, void *buffer, uint32_t length);
|
||||
* @param size 写入数据长度
|
||||
* @retval 缓存中可读取的字节数
|
||||
*/
|
||||
uint32_t pc_device_get_rx_length(device_t *port);
|
||||
uint32_t pc_device_get_rx_length(device_t *port);
|
||||
|
||||
uint8_t app_device_choice(device_t *port, uint8_t type);
|
||||
int app_device_read(device_t *port, void *buffer, uint32_t length, uint32_t timeout);
|
||||
int app_device_write(device_t *port, void *buffer, uint32_t length);
|
||||
uint32_t app_device_get_rx_length(device_t *port);
|
||||
Reference in New Issue
Block a user