Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
DFUService Class Reference
Device Firmware Update Service. More...
#include <DFUService.h>
Public Types | |
typedef void(* | ResetPrepare_t )(void) |
Signature for the handover callback. | |
Public Member Functions | |
DFUService (BLEDevice &_ble, ResetPrepare_t _handoverCallback=NULL) | |
Adds Device Firmware Update service to an existing ble object. | |
uint16_t | getControlHandle (void) const |
get the handle for the value attribute of the control characteristic. | |
virtual void | onDataWritten (const GattCharacteristicWriteCBParams *params) |
This callback allows the DFU service to receive the initial trigger to handover control to the bootloader; but first the application is given a chance to clean up. |
Detailed Description
Device Firmware Update Service.
Definition at line 37 of file DFUService.h.
Member Typedef Documentation
typedef void(* ResetPrepare_t)(void) |
Signature for the handover callback.
The application may provide such a callback when setting up the DFU service, in which case it will be invoked before handing control over to the bootloader.
Definition at line 44 of file DFUService.h.
Constructor & Destructor Documentation
DFUService | ( | BLEDevice & | _ble, |
ResetPrepare_t | _handoverCallback = NULL |
||
) |
Adds Device Firmware Update service to an existing ble object.
- Parameters:
-
ref] _ble BLEDevice object for the underlying controller. [in] _handoverCallback Application specific handover callback.
Definition at line 55 of file DFUService.h.
Member Function Documentation
uint16_t getControlHandle | ( | void | ) | const |
get the handle for the value attribute of the control characteristic.
Definition at line 85 of file DFUService.h.
virtual void onDataWritten | ( | const GattCharacteristicWriteCBParams * | params ) | [virtual] |
This callback allows the DFU service to receive the initial trigger to handover control to the bootloader; but first the application is given a chance to clean up.
- Parameters:
-
[in] params Information about the characterisitc being updated.
Definition at line 97 of file DFUService.h.
Generated on Tue Jul 12 2022 18:47:13 by
