External Interface¶
The external interfaces include APIs and callbacks. Only the uGAP APIs are exposed to the application. They are listed in the following sections.
APIs¶
For Micro BLE Stack APIs, see Micro BLE Stack API Reference
Callbacks¶
App_bcast_stateChangeCB():
This callback is to notify the application of the Broadcaster’s state change. This callback is optional.
Type Definition | Typedef void (*bcast_stateChangeCB_t)(ugbState_t state); |
|
Parameter | state | A new Broadcaster state |
Return | None |
App_bcast_advPrepareCB():
This callback is to notify the application of the Broadcaster’s being about to send an advertising event. Inside this callback, the application can make the ADV payload up-to-date if necessary. This callback is optional.
Type Definition | Typedef void (*bcast_advPrepareCB_t)(void); |
Parameter | None |
Return | None |
App_bcast_advDoneCB():
This callback is to notify the application of how the last advertising event has been completed. This callback is optional.
Type Definition | Typedef void (*bcast_advDoneCB_t)(bStatus_t status); |
|
Parameter | status | Error code |
Return | None |