协议修改为小端规则,并添加新命令
This commit is contained in:
@@ -25,9 +25,11 @@ typedef enum
|
||||
{
|
||||
RESEND_CMD_DATA = 0x01,
|
||||
RESEND_CMD_ACK = 0x02,
|
||||
RESEND_CMD_STATUS = 0x03,
|
||||
RESEND_CMD_DATA_ACK = 0x04,
|
||||
RESEND_CMD_GET_STATUS = 0x03,
|
||||
RESEND_CMD_STATUS = 0x04,
|
||||
RESEND_CMD_SET_STATUS = 0x05,
|
||||
|
||||
RESEND_CMD_DATA_ACK = 0x06,
|
||||
|
||||
RESEND_CMD_OTA_START = 0x011,
|
||||
RESEND_CMD_OTA_DATA = 0x012,
|
||||
@@ -74,6 +76,8 @@ typedef struct
|
||||
resend_frame_t tx_frame; // 发送帧
|
||||
resend_status_t status; // 帧状态
|
||||
|
||||
uint8_t handle_flag; // 接收请求帧处理标志
|
||||
|
||||
int (*send)(void* data, uint16_t len, int timeout); // 发送数据
|
||||
int (*recv)(void* data, uint16_t len, int timeout); // 接收数据
|
||||
int (*get_length )(void); // 获取数据长度
|
||||
|
||||
Reference in New Issue
Block a user