forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

wujiazhi
2024-06-13 72def895431ad7a08e635b11f3da738e2b2c4618
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _UPPER_COMPUTER_IAP_API_H_
#define _UPPER_COMPUTER_IAP_API_H_
 
#include "define_all.h"
 
 
#define UC_RECV_IAP_TABLE_NUM (sizeof(uc_recv_iap_tab_func) / sizeof(UC_RECV_IAP_FUNC_TABLE_DRV_T))
 
typedef enum
{
    UIC_APP_RESET = 0x9600,
    UIC_APP_CONFIG,
    UIC_APP_DIFF_DATA,
    UIC_APP_CONFIG_CHECK,
    UIC_APP_DIFF_MAP,
}UC_IAP_CMD;
 
 
 
typedef ErrorStatus_STM32 (*pUc_Iap_FuncHandler)(uint8_t *pInputData);
 
typedef struct
{
  const uint16_t uc_data_table;
  pUc_Iap_FuncHandler UcIapFuncHandler;
} UC_RECV_IAP_FUNC_TABLE_DRV_T; // ÉÏλ»ú½ÓÊÕÈÕÖ¾Êý¾Ý±íÇý¶¯;
 
 
 
 
 
ErrorStatus_STM32 UC_IapResetHandler(uint8_t *pInputData);
ErrorStatus_STM32 UC_IapConfigSetHandler(uint8_t *pInputData);
ErrorStatus_STM32 UC_IapDiffDataHandler(uint8_t *pInputData);
ErrorStatus_STM32 UC_IapConfigCheckHandler(uint8_t *pInputData);
ErrorStatus_STM32 UC_IapDiffMapSetHandler(uint8_t *pInputData);
 
ErrorStatus_STM32 Upper_ComputerIapProcess(uint16_t table_id, uint8_t *pIapData);
 
 
 
#endif