Fota.h 656 B

1234567891011121314151617181920212223
  1. /****************************************************************************
  2. *
  3. * Copy right: Qx.ChenJie
  4. * File name: Fota.h
  5. * Description: Fota函数
  6. * History: 2021-03-15
  7. *
  8. ****************************************************************************/
  9. #include "bsp_custom.h"
  10. #define Fota_Addres_Begin (0x2A0000)
  11. typedef struct _Fota_Type
  12. {
  13. bool Fota_update_flag ;
  14. bool Fota_update_error ;
  15. UINT32 Fota_All_Data_Len ;
  16. UINT32 Fota_Current_Addres ;
  17. UINT8 Fota_Recv_Data_Len ;
  18. UINT8 Fota_Recv_Data[100] ;
  19. UINT32 Fota_Flash_Addres;
  20. UINT8 Fota_CRC ;
  21. }Fota_Type;
  22. void Fota_Func(UINT8 *DataPtr,INT32 connectId);