From d2c8f71549298bead0c12e9899fecdeb948abd9f Mon Sep 17 00:00:00 2001 From: payton Date: Thu, 11 Jan 2024 19:31:11 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=93=9D=E7=89=99=E5=A4=B4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/source/sf_blue/src/sf_blue_app.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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