Nordic stack and drivers for the mbed BLE API

Dependents:   idd_hw5_bleFanProto

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

ble_bas_s Struct Reference

ble_bas_s Struct Reference
[Battery Service]

Battery Service 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.
uint16_t service_handle
 Handle of Battery Service (as provided by the BLE stack).
ble_gatts_char_handles_t battery_level_handles
 Handles related to the Battery Level characteristic.
uint16_t report_ref_handle
 Handle of the Report Reference descriptor.
uint8_t battery_level_last
 Last Battery Level measurement passed to the Battery Service.
uint16_t conn_handle
 Handle of the current connection (as provided by the BLE stack, is BLE_CONN_HANDLE_INVALID if not in a connection).
bool is_notification_supported
 TRUE if notification of Battery Level is supported.

Detailed Description

Battery Service structure.

This contains various status information for the service.

Definition at line 79 of file ble_bas.h.


Field Documentation

Handles related to the Battery Level characteristic.

Definition at line 83 of file ble_bas.h.

Last Battery Level measurement passed to the Battery Service.

Definition at line 85 of file ble_bas.h.

uint16_t conn_handle

Handle of the current connection (as provided by the BLE stack, is BLE_CONN_HANDLE_INVALID if not in a connection).

Definition at line 86 of file ble_bas.h.

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

Definition at line 81 of file ble_bas.h.

TRUE if notification of Battery Level is supported.

Definition at line 87 of file ble_bas.h.

Handle of the Report Reference descriptor.

Definition at line 84 of file ble_bas.h.

uint16_t service_handle

Handle of Battery Service (as provided by the BLE stack).

Definition at line 82 of file ble_bas.h.