![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
This service exposes glucose and other data from a glucose sensor for use in consumer and professional healthcare applications. More...
This service exposes glucose and other data from a glucose sensor for use in consumer and professional healthcare applications.
This file provides APIs to interface Glucose Service Records.
Data Structures | |
struct | st_ble_gls_meas_flags_t |
Glucose Measurement Flags value structure. More... | |
struct | st_ble_gls_meas_sensor_status_annunciation_t |
Glucose Measurement Sensor Status Annunciation value structure. More... | |
struct | st_ble_gls_meas_t |
Glucose Measurement value structure. More... | |
struct | st_ble_gls_meas_context_flags_t |
Glucose Measurement Context Flags value structure. More... | |
struct | st_ble_gls_meas_context_t |
Glucose Measurement Context value structure. More... | |
struct | st_ble_gls_feat_t |
Glucose Feature value structure. More... | |
struct | st_ble_gls_ra_ctrl_pt_t |
Record Access Control Point value structure. More... | |
struct | st_ble_gls_record_t |
struct | st_ble_uds_record_t |
Macros | |
#define | BLE_GLS_PROCEDURE_ALREADY_IN_PROGRESS_ERROR (BLE_ERR_GROUP_GATT | 0x80) |
A Record Access Control Point request cannot be serviced because a previously triggered RACP operation is still in progress. More... | |
#define | BLE_GLS_CLI_CNFG_IMPROPERLY_CONFIGURED_ERROR (BLE_ERR_GROUP_GATT | 0x81) |
The Client Characteristic Configuration descriptor is not configured according to the requirements of the service. More... | |
#define | BLE_GLS_DB_MAX_NUM_OF_RECORDS (10) |
#define | BLE_GLS_DB_INVALID_INDEX (0xFFFF) |
#define | BLE_UDS_DB_MAX_NUM_OF_RECORDS (10) |
#define | BLE_UDS_DB_INVALID_INDEX (0xFFFF) |
Functions | |
ble_status_t | R_BLE_GLS_SetMeasCliCnfg (uint16_t conn_hdl, const uint16_t *p_value) |
Set Glucose Measurement cli cnfg descriptor value to the local GATT database. More... | |
ble_status_t | R_BLE_GLS_GetMeasCliCnfg (uint16_t conn_hdl, uint16_t *p_value) |
Get Glucose Measurement cli cnfg descriptor value from the local GATT database. More... | |
ble_status_t | R_BLE_GLS_SetMeasContextCliCnfg (uint16_t conn_hdl, const uint16_t *p_value) |
Set Glucose Measurement Context cli cnfg descriptor value to the local GATT database. More... | |
ble_status_t | R_BLE_GLS_GetMeasContextCliCnfg (uint16_t conn_hdl, uint16_t *p_value) |
Get Glucose Measurement Context cli cnfg descriptor value from the local GATT database. More... | |
ble_status_t | R_BLE_GLS_SetFeat (const st_ble_gls_feat_t *p_value) |
Set Glucose Feature characteristic value to the local GATT database. More... | |
ble_status_t | R_BLE_GLS_GetFeat (st_ble_gls_feat_t *p_value) |
Get Glucose Feature characteristic value from the local GATT database. More... | |
ble_status_t | R_BLE_GLS_SetRaCtrlPtCliCnfg (uint16_t conn_hdl, const uint16_t *p_value) |
Set Record Access Control Point cli cnfg descriptor value to the local GATT database. More... | |
ble_status_t | R_BLE_GLS_GetRaCtrlPtCliCnfg (uint16_t conn_hdl, uint16_t *p_value) |
Get Record Access Control Point cli cnfg descriptor value from the local GATT database. More... | |
ble_status_t | R_BLE_GLS_Init (ble_servs_app_cb_t cb) |
Initialize Glucose service. More... | |
ble_status_t | R_BLE_GLS_AddNewRecord (const st_ble_gls_meas_t *p_meas, const st_ble_gls_meas_context_t *p_context) |
Adds a new record to the record database. More... | |
ble_status_t | R_BLE_GLS_IndicateRaCtrlPt (uint16_t conn_hdl, const st_ble_gls_ra_ctrl_pt_t *p_value) |
Send indication of Record Access Control Point value to the remote device. More... | |
ble_status_t | R_BLE_GLS_NotifyMeas (uint16_t conn_hdl, const st_ble_gls_meas_t *p_value) |
Send notification of Glucose Measurement value to the remote device. More... | |
ble_status_t | R_BLE_GLS_NotifyMeasContext (uint16_t conn_hdl, const st_ble_gls_meas_context_t *p_value) |
Send notification of Glucose Measurement Context value to the remote device. More... | |
void | gls_db_init (void) |
uint16_t | gls_db_get_oldest_index (void) |
uint16_t | gls_db_get_newest_index (void) |
uint16_t | gls_db_get_next_index (uint16_t index) |
st_ble_gls_record_t * | gls_db_get_record (uint16_t index) |
void | gls_db_store_record (const st_ble_gls_meas_t *p_meas, const st_ble_gls_meas_context_t *p_context) |
void | gls_db_mark_delete_record (uint16_t index) |
void | gls_db_delete_records (void) |
void | uds_db_init (void) |
st_ble_uds_record_t * | uds_db_get_record (uint8_t index) |
uint8_t | uds_db_add_user (uint16_t consent_code) |
ble_status_t | uds_db_delete_user (uint8_t user_index) |
ble_status_t | uds_db_set_current_user (uint8_t user_index, uint16_t consent_code) |
void | uds_db_populate_current_user_data (uint8_t user_index) |
void | uds_db_update_current_user_data (uint8_t user_index, st_ble_uds_record_t *p_app_user_data) |
void | uds_db_unlock_user (uint8_t user_index) |
#define BLE_GLS_PROCEDURE_ALREADY_IN_PROGRESS_ERROR (BLE_ERR_GROUP_GATT | 0x80) |
A Record Access Control Point request cannot be serviced because a previously triggered RACP operation is still in progress.
#define BLE_GLS_CLI_CNFG_IMPROPERLY_CONFIGURED_ERROR (BLE_ERR_GROUP_GATT | 0x81) |
The Client Characteristic Configuration descriptor is not configured according to the requirements of the service.
Glucose Measurement Type enumeration.
Glucose Measurement Sample Location enumeration.
Glucose Measurement Context Carbohydrate ID enumeration.
Glucose Measurement Context Meal enumeration.
Glucose Measurement Context Tester enumeration.
Glucose Measurement Context Health enumeration.
Glucose Measurement Context Medication ID enumeration.
Record Access Control Point Op Code enumeration.
Record Access Control Point Operator enumeration.
Record Access Control Point Operand enumeration.
Record Access Control Point Filtrer Type enumeration.
Glucose characteristic Index.
enum e_ble_gls_event_t |
Glucose event type.
ble_status_t R_BLE_GLS_SetMeasCliCnfg | ( | uint16_t | conn_hdl, |
const uint16_t * | p_value | ||
) |
Set Glucose Measurement cli cnfg descriptor value to the local GATT database.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Descriptor value to set. |
ble_status_t R_BLE_GLS_GetMeasCliCnfg | ( | uint16_t | conn_hdl, |
uint16_t * | p_value | ||
) |
Get Glucose Measurement cli cnfg descriptor value from the local GATT database.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Output location for the acquired descriptor value. |
ble_status_t R_BLE_GLS_SetMeasContextCliCnfg | ( | uint16_t | conn_hdl, |
const uint16_t * | p_value | ||
) |
Set Glucose Measurement Context cli cnfg descriptor value to the local GATT database.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Descriptor value to set. |
ble_status_t R_BLE_GLS_GetMeasContextCliCnfg | ( | uint16_t | conn_hdl, |
uint16_t * | p_value | ||
) |
Get Glucose Measurement Context cli cnfg descriptor value from the local GATT database.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Output location for the acquired descriptor value. |
ble_status_t R_BLE_GLS_SetFeat | ( | const st_ble_gls_feat_t * | p_value | ) |
Set Glucose Feature characteristic value to the local GATT database.
[in] | p_value | Characteristic value to set. |
ble_status_t R_BLE_GLS_GetFeat | ( | st_ble_gls_feat_t * | p_value | ) |
Get Glucose Feature characteristic value from the local GATT database.
[in] | p_value | Output location for the acquired descriptor value. |
ble_status_t R_BLE_GLS_SetRaCtrlPtCliCnfg | ( | uint16_t | conn_hdl, |
const uint16_t * | p_value | ||
) |
Set Record Access Control Point cli cnfg descriptor value to the local GATT database.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Descriptor value to set. |
ble_status_t R_BLE_GLS_GetRaCtrlPtCliCnfg | ( | uint16_t | conn_hdl, |
uint16_t * | p_value | ||
) |
Get Record Access Control Point cli cnfg descriptor value from the local GATT database.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Output location for the acquired descriptor value. |
ble_status_t R_BLE_GLS_Init | ( | ble_servs_app_cb_t | cb | ) |
ble_status_t R_BLE_GLS_AddNewRecord | ( | const st_ble_gls_meas_t * | p_meas, |
const st_ble_gls_meas_context_t * | p_context | ||
) |
Adds a new record to the record database.
[in] | p_measurement | Glucose Measurement characteristic value |
[in] | p_context | Glucose Measurement context characteristic value |
ble_status_t R_BLE_GLS_IndicateRaCtrlPt | ( | uint16_t | conn_hdl, |
const st_ble_gls_ra_ctrl_pt_t * | p_value | ||
) |
Send indication of Record Access Control Point value to the remote device.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Characteristic value to send. |
ble_status_t R_BLE_GLS_NotifyMeas | ( | uint16_t | conn_hdl, |
const st_ble_gls_meas_t * | p_value | ||
) |
Send notification of Glucose Measurement value to the remote device.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Characteristic value to send. |
ble_status_t R_BLE_GLS_NotifyMeasContext | ( | uint16_t | conn_hdl, |
const st_ble_gls_meas_context_t * | p_value | ||
) |
Send notification of Glucose Measurement Context value to the remote device.
[in] | conn_hdl | Connection handle. |
[in] | p_value | Characteristic value to send. |