| Airoha M0 BLE API 1.0.5.4

Typedefs | Enumerations | Functions
service_device_firmware_update_OTA.h

## Typedefs
typedef void(* | OTA_STATUS_CB) (OTA_STATUS_ENUM status)
| DFU OTA service status changing callback function.

## Enumerations
enum | OTA_STATUS_ENUM
| device firmware update status. SDK user may handle state changing event in callback function OTA_STATUS_CB.
enum | OTA_PERMISSION_ENUM
| DFU OTA permission. SDK user may change the permission with API at any time.

## Functions
void | OTA_init (OTA_STATUS_CB cb)
| Initialization function of DFU OTA service defined by AIROHA. More...
void | OTA_change_permission (OTA_PERMISSION_ENUM sel)
| Change OTA service permission immediately. SDK user may decide whether OTA is permitted under certain circumstances such as low battery level or connecting with particular host. More...

## Detailed Description

### service_device_firmware_update_OTA.h

service_device_firmware_update_OTA.h provides an easy way to implement device firmware update over the air (DFU OTA) service.

## Function Documentation

## ◆ OTA_init()

void OTA_init | ( | OTA_STATUS_CB | cb | ) |

Initialization function of DFU OTA service defined by AIROHA.

Parameters

  cb | OTA_STATUS_CB.

Returns
  None.

## ◆ 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 certain circumstances such as low battery level or connecting with particular host.

Parameters

  sel | OTA_PERMISSION_ENUM.

Returns
  None.