#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
|