Fota.h 631 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. typedef struct _Fota_Type
  11. {
  12. bool Fota_update_error ;
  13. UINT32 Fota_All_Data_Len ;
  14. UINT32 Fota_Current_Addres ;
  15. UINT8 Fota_Recv_Data_Len ;
  16. UINT8 Fota_Recv_Data[100] ;
  17. UINT32 Fota_Flash_Addres;
  18. UINT8 Fota_CRC ;
  19. }Fota_Type;
  20. extern volatile bool Fota_update_flag;
  21. void Fota_Func(UINT8 *DataPtr,INT32 connectId);