diff --git a/code/application/source/sf_app/code/source/sf_blue/src/sf_blue_app.h b/code/application/source/sf_app/code/source/sf_blue/src/sf_blue_app.h index b642d05c0..0bd3a67ee 100644 --- a/code/application/source/sf_app/code/source/sf_blue/src/sf_blue_app.h +++ b/code/application/source/sf_app/code/source/sf_blue/src/sf_blue_app.h @@ -74,6 +74,7 @@ typedef enum BLE_CONTROL_CAMERA_Debug = 0x3a, //debug模式 BLE_CONTROL_CAMERA_Network_Scan = 0x3b, //Network scan BLE_CONTROL_CAMERA_Network_Select = 0x3c,//Network select + BLE_CONTROL_CAMERA_FormatEmmcCard = 0x3d,//格式化emmc BLE_CMD_MAX = 0x40, } BLE_CMD_E; @@ -407,6 +408,18 @@ typedef struct UINT16 suffix; /* 0xFFEE */ } __attribute__((packed)) MSG_DEV_BLE_FormatSDCard_Ctrl_RSP_T; +typedef struct +{ + UINT8 format; /* 1:format immediately */ + UINT16 sufix; /* 0xFFEE */ +} __attribute__((packed)) MSG_DEV_BLE_FormatEmmcCard_Ctrl_T; + +typedef struct +{ + UINT8 cmdRet; /* 0: mean cmd OK other:mean cmd error */ + UINT16 suffix; /* 0xFFEE */ +} __attribute__((packed)) MSG_DEV_BLE_FormatEmmcCard_Ctrl_RSP_T; + typedef struct { UINT8 reboot; /* 1: Reboot */ @@ -575,6 +588,10 @@ typedef struct /*Network select*/ MSG_DEV_NetworkSelect_Ctrl_T ctrlNetworkSelect; MSG_DEV_NetworkSelect_Ctrl_Rsp_T rctrlNetworkSelect; + + /*格式化Emmc卡*/ + MSG_DEV_BLE_FormatEmmcCard_Ctrl_T ctrlFormatEmmc; + MSG_DEV_BLE_FormatEmmcCard_Ctrl_RSP_T rctrlFormatEmmc; }; } __attribute__((packed)) BLE_APP_MSG_T; typedef struct