| Airoha M0 BLE API 1.0.5.4

service_device_firmware_update_OTA.h
1 /******************************************************************************
2 Copyright (c) Airoha 2016 - All rights reserved
3
4 FILE NAME
5 service_device_firmware_update_OTA.h
6 DESCRIPTION
7 NOTES
8 ********************************************************************************/
9 #ifndef __SERVICE_DFU_OTA_H__
10 #define __SERVICE_DFU_OTA_H__
11
23 typedef enum
24 {
25 OTA_STARTED,
26 OTA_FINISHED,
27 }OTA_STATUS_ENUM;
28
32 typedef enum
33 {
34 OTA_ENABLED,
35 OTA_DISABLED,
36 }OTA_PERMISSION_ENUM;
37
42 typedef void (* OTA_STATUS_CB)(OTA_STATUS_ENUM status);
43
49 void OTA_init(OTA_STATUS_CB cb);
50
57 void OTA_change_permission(OTA_PERMISSION_ENUM sel);
58
59
60
64 #endif
OTA_PERMISSION_ENUM
OTA_PERMISSION_ENUM
DFU OTA permission. SDK user may change the permission with API at any time.
Definition: service_device_firmware_update_OTA.h:32
OTA_init
void OTA_init(OTA_STATUS_CB cb)
Initialization function of DFU OTA service defined by AIROHA.
OTA_STATUS_CB
void(* OTA_STATUS_CB)(OTA_STATUS_ENUM status)
DFU OTA service status changing callback function.
Definition: service_device_firmware_update_OTA.h:42
OTA_change_permission
void OTA_change_permission(OTA_PERMISSION_ENUM sel)
Change OTA service permission immediately. SDK user may decide whether OTA is permitted under certai...
OTA_STATUS_ENUM
OTA_STATUS_ENUM
device firmware update status. SDK user may handle state changing event in callback function OTA_STAT...
Definition: service_device_firmware_update_OTA.h:23