Go to the documentation of this file.
75 #include "custom_config.h"
83 #define BPS_CONNECTION_MAX 10
84 #define BPS_BP_MEAS_MAX_LEN 20
91 #define BPS_CHAR_MANDATORY 0x018F
92 #define BPS_CHAR_INTM_CUFF_PRESS_SUP 0x0070
93 #define BPS_CHAR_FULL 0x01ff
uint16_t bp_feature
Value of Blood Pressure Feature characteristic.
uint8_t pulse_rate_present
Pulse Rate Flag, 0=not present, 1=present.
bps_evt_handler_t evt_handler
Blood Pressure Service event handler.
@ BP_FEATURE_MULTIPLE_BOND_BIT
Multiple Bond Support bit.
bps_evt_type_t
Blood Pressure Service event type.
uint8_t bl_unit_in_kpa
Blood Pressure Units Flag, 0=mmHg, 1=kPa.
bp_feature_bit
Blood Pressure Feature bits.
bps_ieee_float16_t systolic
Blood Pressure Measurement Compound Value - Systolic.
void(* bps_evt_handler_t)(uint8_t conn_idx, bps_evt_type_t event)
Blood Pressure Service event handler type.
prf_date_time_t time_stamp
Time Stamp.
uint8_t time_stamp_present
Time Stamp Flag, 0=not present, 1=present.
@ BPS_EVT_READ_BL_PRESSURE_FEATURE
The peer reads Blood Pressure Feature characteristic.
SFLOAT format (IEEE-11073 16-bit FLOAT, defined as a 16-bit value with 12-bit mantissa and 4-bit expo...
@ BPS_EVT_INVALID
Invalid event.
bps_ieee_float16_t mean_arterial_pr
Blood Pressure Measurement Compound Value - Mean Arterial Pressure.
bps_ieee_float16_t pulse_rate
Pulse Rate.
Blood Pressure measurement structure.
int16_t mantissa
Mantissa, only 12 bits.
@ BP_FEATURE_PULSE_RATE_RANGE_BIT
Pulse Rate Range Detection Support bit.
uint16_t char_mask
Mask of Supported characteristics, and configured with Characteristics Mask.
@ BP_FEATURE_BODY_MOVEMENT_BIT
Body Movement Detection Support bit.
uint16_t sdk_err_t
SDK API result type.
The date and time structure.
int8_t exponent
Base 10 exponent, only 4 bits.
sdk_err_t bps_service_init(bps_init_t *p_bps_init)
Initialize a Blood Pressure Service instance and add in the DB.
@ BPS_EVT_BP_MEAS_INDICATION_ENABLED
The measurement indication has been enabled.
@ BPS_EVT_INTM_CUFF_PRESS_NTF_ENABLED
The Intermediate Cuff Pressure notification has been enabled.
@ BPS_EVT_INTM_CUFF_PRESS_NTF_DISABLED
The Intermediate Cuff Pressure notification has been disabled.
bps_ieee_float16_t diastolic
Blood Pressure Measurement Compound Value - Diastolic .
@ BPS_EVT_BP_MEAS_INDICATION_DISABLED
The measurement indication has been disabled.
Profile/Service Utilities API.
@ BP_FEATURE_CUFF_FIT_BIT
Cuff Fit Detection Support bit.
Blood Pressure Service init stucture.
sdk_err_t bps_measurement_send(uint8_t conn_idx, bps_meas_t *p_meas)
Send Blood Pressure Measurement indication.
uint8_t meas_status_present
Measurement Status Flag, 0=not present, 1=present.
@ BP_FEATURE_IRREGULAR_PULSE_BIT
Irregular Pulse Detection Support bit.
uint16_t meas_status
Measurement Status.
uint8_t user_id_present
User ID Flag, 0=not present, 1=present.
@ BP_FEATURE_MEASUREMENT_POSITION_BIT
Measurement Position Detection Support bit.