Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
app_profile.h File Reference
#include <stdint.h>
#include "ble.h"

Go to the source code of this file.

Functions

void app_profile_init (void)
 Initialize profile. Is only called once.
 
void app_profile_on_ble_evt (ble_evt_t *p_ble_evt)
 Handle BLE event. More...
 
void app_profile_on_sys_evt (uint32_t sys_evt)
 Handle system event. More...
 
void app_profile_start (void)
 Start profile. Is called every time profile is activated.
 
void app_profile_stop (void)
 Stop profile. Note: Needs to set the softdevice in a state where it is ok to initialize PRU profile.
 

Function Documentation

void app_profile_on_ble_evt ( ble_evt_t *  p_ble_evt)

Handle BLE event.

Parameters
[in]p_ble_evtBLE event to handle.

Definition at line 726 of file ble_app_hrs.c.

727 {
728  ble_evt_dispatch(p_ble_evt);
729 }
static void ble_evt_dispatch(ble_evt_t *p_ble_evt)
Function for dispatching a BLE stack event to all modules with a BLE stack event handler.
Definition: ble_app_hrs.c:573
void app_profile_on_sys_evt ( uint32_t  sys_evt)

Handle system event.

Parameters
sys_evtSystem event to handle.

Definition at line 731 of file ble_app_hrs.c.

732 {
733  sys_evt_dispatch(sys_evt);
734 }
static void sys_evt_dispatch(uint32_t sys_evt)
Function for dispatching a system event to interested modules.
Definition: ble_app_hrs.c:592