Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
Blood Pressure Service Server

This service exposes blood pressure and other data from a blood pressure monitor intended for healthcare applications. More...

Detailed Description

This service exposes blood pressure and other data from a blood pressure monitor intended for healthcare applications.

Data Structures

struct  st_ble_bls_meas_flags_t
 Blood Pressure Measurement Flags value structure. More...
 
struct  st_ble_bls_meas_measurement_status_t
 Blood Pressure Measurement Measurement Status value structure. More...
 
struct  st_ble_bls_meas_t
 Blood Pressure Measurement value structure. More...
 
struct  st_ble_bls_feat_t
 Blood Pressure Feature value structure. More...
 

Enumerations

enum  e_ble_bls_meas_user_id_t { BLE_BLS_MEAS_USER_ID_UNKNOWN_USER = 255 }
 Blood Pressure Measurement User ID enumeration. More...
 
enum  e_ble_bls_meas_pulse_rate_range_t {
  BLE_BLS_MEAS_PULSE_RATE_RANGE_PULSE_RATE_IS_WITHIN_THE_RANGE = 0,
  BLE_BLS_MEAS_PULSE_RATE_RANGE_PULSE_RATE_EXCEEDS_UPPER_LIMIT = 1,
  BLE_BLS_MEAS_PULSE_RATE_RANGE_PULSE_RATE_IS_LESS_THAN_LOWER_LIMIT = 2
}
 Blood Pressure Measurement Pulse Rate Range enumeration. More...
 
enum  e_ble_bls_char_idx_t {
  BLE_BLS_MEAS_IDX,
  BLE_BLS_MEAS_CLI_CNFG_IDX,
  BLE_BLS_INTERMEDIATE_CUFF_PRESSURE_IDX,
  BLE_BLS_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_IDX,
  BLE_BLS_FEAT_IDX
}
 Blood Pressure characteristic Index. More...
 
enum  e_ble_bls_event_t {
  BLE_BLS_EVENT_MEAS_HDL_VAL_CNF = BLE_SERVS_ATTR_EVENT(BLE_BLS_MEAS_IDX, BLE_SERVS_HDL_VAL_CNF),
  BLE_BLS_EVENT_MEAS_CLI_CNFG_WRITE_REQ = BLE_SERVS_ATTR_EVENT(BLE_BLS_MEAS_CLI_CNFG_IDX, BLE_SERVS_WRITE_REQ),
  BLE_BLS_EVENT_MEAS_CLI_CNFG_WRITE_COMP = BLE_SERVS_ATTR_EVENT(BLE_BLS_MEAS_CLI_CNFG_IDX, BLE_SERVS_WRITE_COMP),
  BLE_BLS_EVENT_MEAS_CLI_CNFG_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_BLS_MEAS_CLI_CNFG_IDX, BLE_SERVS_READ_REQ),
  BLE_BLS_EVENT_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_WRITE_REQ = BLE_SERVS_ATTR_EVENT(BLE_BLS_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_IDX, BLE_SERVS_WRITE_REQ),
  BLE_BLS_EVENT_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_WRITE_COMP = BLE_SERVS_ATTR_EVENT(BLE_BLS_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_IDX, BLE_SERVS_WRITE_COMP),
  BLE_BLS_EVENT_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_BLS_INTERMEDIATE_CUFF_PRESSURE_CLI_CNFG_IDX, BLE_SERVS_READ_REQ),
  BLE_BLS_EVENT_FEAT_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_BLS_FEAT_IDX, BLE_SERVS_READ_REQ)
}
 Blood Pressure event type. More...
 

Functions

ble_status_t R_BLE_BLS_IndicateMeas (uint16_t conn_hdl, const st_ble_bls_meas_t *p_value)
 Send indication of Blood Pressure Measurement characteristic value to the remote device. More...
 
ble_status_t R_BLE_BLS_SetMeasCliCnfg (uint16_t conn_hdl, const uint16_t *p_value)
 Set Blood Pressure Measurement cli cnfg descriptor value to the local GATT database. More...
 
ble_status_t R_BLE_BLS_GetMeasCliCnfg (uint16_t conn_hdl, uint16_t *p_value)
 Get Blood Pressure Measurement cli cnfg descriptor value from the local GATT database. More...
 
ble_status_t R_BLE_BLS_NotifyIntermediateCuffPressure (uint16_t conn_hdl, const st_ble_bls_meas_t *p_value)
 Send notification of Intermediate Cuff Pressure characteristic value to the remote device. More...
 
ble_status_t R_BLE_BLS_SetIntermediateCuffPressureCliCnfg (uint16_t conn_hdl, const uint16_t *p_value)
 Set Intermediate Cuff Pressure cli cnfg descriptor value to the local GATT database. More...
 
ble_status_t R_BLE_BLS_GetIntermediateCuffPressureCliCnfg (uint16_t conn_hdl, uint16_t *p_value)
 Get Intermediate Cuff Pressure cli cnfg descriptor value from the local GATT database. More...
 
ble_status_t R_BLE_BLS_SetFeat (const st_ble_bls_feat_t *p_value)
 Set Blood Pressure Feature characteristic value to the local GATT database. More...
 
ble_status_t R_BLE_BLS_GetFeat (st_ble_bls_feat_t *p_value)
 Get Blood Pressure Feature characteristic value from the local GATT database. More...
 
ble_status_t R_BLE_BLS_Init (ble_servs_app_cb_t cb)
 Initialize Blood Pressure service. More...
 

Enumeration Type Documentation

◆ e_ble_bls_meas_user_id_t

Blood Pressure Measurement User ID enumeration.

Enumerator
BLE_BLS_MEAS_USER_ID_UNKNOWN_USER 

Unknown User

◆ e_ble_bls_meas_pulse_rate_range_t

Blood Pressure Measurement Pulse Rate Range enumeration.

Enumerator
BLE_BLS_MEAS_PULSE_RATE_RANGE_PULSE_RATE_IS_WITHIN_THE_RANGE 

Pulse rate is within the range

BLE_BLS_MEAS_PULSE_RATE_RANGE_PULSE_RATE_EXCEEDS_UPPER_LIMIT 

Pulse rate exceeds upper limit

BLE_BLS_MEAS_PULSE_RATE_RANGE_PULSE_RATE_IS_LESS_THAN_LOWER_LIMIT 

Pulse rate is less than lower limit

◆ e_ble_bls_char_idx_t

Blood Pressure characteristic Index.

◆ e_ble_bls_event_t

Blood Pressure event type.

Function Documentation

◆ R_BLE_BLS_IndicateMeas()

ble_status_t R_BLE_BLS_IndicateMeas ( uint16_t  conn_hdl,
const st_ble_bls_meas_t p_value 
)

Send indication of Blood Pressure Measurement characteristic value to the remote device.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueCharacteristic value to send.
Returns
ble_status_t

◆ R_BLE_BLS_SetMeasCliCnfg()

ble_status_t R_BLE_BLS_SetMeasCliCnfg ( uint16_t  conn_hdl,
const uint16_t *  p_value 
)

Set Blood Pressure Measurement cli cnfg descriptor value to the local GATT database.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueDescriptor value to set.
Returns
ble_status_t

◆ R_BLE_BLS_GetMeasCliCnfg()

ble_status_t R_BLE_BLS_GetMeasCliCnfg ( uint16_t  conn_hdl,
uint16_t *  p_value 
)

Get Blood Pressure Measurement cli cnfg descriptor value from the local GATT database.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueOutput location for the acquired descriptor value.
Returns
ble_status_t

◆ R_BLE_BLS_NotifyIntermediateCuffPressure()

ble_status_t R_BLE_BLS_NotifyIntermediateCuffPressure ( uint16_t  conn_hdl,
const st_ble_bls_meas_t p_value 
)

Send notification of Intermediate Cuff Pressure characteristic value to the remote device.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueCharacteristic value to send.
Returns
ble_status_t

◆ R_BLE_BLS_SetIntermediateCuffPressureCliCnfg()

ble_status_t R_BLE_BLS_SetIntermediateCuffPressureCliCnfg ( uint16_t  conn_hdl,
const uint16_t *  p_value 
)

Set Intermediate Cuff Pressure cli cnfg descriptor value to the local GATT database.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueDescriptor value to set.
Returns
ble_status_t

◆ R_BLE_BLS_GetIntermediateCuffPressureCliCnfg()

ble_status_t R_BLE_BLS_GetIntermediateCuffPressureCliCnfg ( uint16_t  conn_hdl,
uint16_t *  p_value 
)

Get Intermediate Cuff Pressure cli cnfg descriptor value from the local GATT database.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueOutput location for the acquired descriptor value.
Returns
ble_status_t

◆ R_BLE_BLS_SetFeat()

ble_status_t R_BLE_BLS_SetFeat ( const st_ble_bls_feat_t p_value)

Set Blood Pressure Feature characteristic value to the local GATT database.

Parameters
[in]p_valueCharacteristic value to set.
Returns
ble_status_t

◆ R_BLE_BLS_GetFeat()

ble_status_t R_BLE_BLS_GetFeat ( st_ble_bls_feat_t p_value)

Get Blood Pressure Feature characteristic value from the local GATT database.

Parameters
[in]p_valueOutput location for the acquired descriptor value.
Returns
ble_status_t

◆ R_BLE_BLS_Init()

ble_status_t R_BLE_BLS_Init ( ble_servs_app_cb_t  cb)

Initialize Blood Pressure service.

Parameters
[in]cbService callback.
Returns
ble_status_t