nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ble_bas_init_t Struct Reference

Data Fields

ble_bas_evt_handler_t evt_handler
 
bool support_notification
 
ble_srv_report_ref_tp_report_ref
 
uint8_t initial_batt_level
 
ble_srv_cccd_security_mode_t battery_level_char_attr_md
 
ble_gap_conn_sec_mode_t battery_level_report_read_perm
 

Field Documentation

ble_bas_evt_handler_t evt_handler

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

bool support_notification

TRUE if notification of Battery Level measurement is supported.

ble_srv_report_ref_t* p_report_ref

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

uint8_t initial_batt_level

Initial battery level

ble_srv_cccd_security_mode_t battery_level_char_attr_md

Initial security level for battery characteristics attribute

ble_gap_conn_sec_mode_t battery_level_report_read_perm

Initial security level for battery report read attribute