SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

ble_bas_init_t Struct Reference

ble_bas_init_t Struct Reference
[Battery Service]

Battery Service init structure. More...

#include <ble_bas.h>

Data Fields

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_tp_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.

Detailed Description

Battery Service init structure.

This contains all options and data needed for initialization of the service.

Definition at line 68 of file ble_bas.h.


Field Documentation

Initial security level for battery characteristics attribute.

Definition at line 74 of file ble_bas.h.

Initial security level for battery report read attribute.

Definition at line 75 of file ble_bas.h.

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

Definition at line 70 of file ble_bas.h.

Initial battery level.

Definition at line 73 of file ble_bas.h.

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

Definition at line 72 of file ble_bas.h.

TRUE if notification of Battery Level measurement is supported.

Definition at line 71 of file ble_bas.h.