nRF5 SDK v16.0.0
Data Fields
ble_bas_init_t Struct Reference

Battery Service init structure. This contains all options and data needed for initialization of the service. More...

#include <ble_bas.h>

Data Fields

ble_bas_evt_handler_t evt_handler
 
bool support_notification
 
ble_srv_report_ref_tp_report_ref
 
uint8_t initial_batt_level
 
security_req_t bl_rd_sec
 
security_req_t bl_cccd_wr_sec
 
security_req_t bl_report_rd_sec
 

Detailed Description

Battery Service init structure. This contains all options and data needed for initialization of the service.

Field Documentation

security_req_t ble_bas_init_t::bl_cccd_wr_sec

Security requirement for writing the BL characteristic CCCD.

security_req_t ble_bas_init_t::bl_rd_sec

Security requirement for reading the BL characteristic value.

security_req_t ble_bas_init_t::bl_report_rd_sec

Security requirement for reading the BL characteristic descriptor.

ble_bas_evt_handler_t ble_bas_init_t::evt_handler

Event handler to be called for handling events in the Battery Service.

uint8_t ble_bas_init_t::initial_batt_level

Initial battery level

ble_srv_report_ref_t* ble_bas_init_t::p_report_ref

If not NULL, a Report Reference descriptor with the specified value will be added to the Battery Level characteristic

bool ble_bas_init_t::support_notification

TRUE if notification of Battery Level measurement is supported.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated