Blood Pressure Service API. More...
#include "gr_includes.h"
#include "ble_prf_utils.h"
#include "custom_config.h"
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | bps_ieee_float16_t |
SFLOAT format (IEEE-11073 16-bit FLOAT, defined as a 16-bit value with 12-bit mantissa and 4-bit exponent. More... | |
struct | bps_meas_t |
Blood Pressure measurement structure. More... | |
struct | bps_init_t |
Blood Pressure Service init stucture. More... | |
Macros | |
#define | BPS_CONNECTION_MAX 10 |
Maximum number of BPS connections. More... | |
#define | BPS_BP_MEAS_MAX_LEN 20 |
Maximum notification length. More... | |
#define | BPS_CHAR_MANDATORY 0x018F |
Bit mask of the mandatory characteristics in BPS. More... | |
#define | BPS_CHAR_INTM_CUFF_PRESS_SUP 0x0070 |
Bit mask of the Intermediate Cuff Pressure descriptor. More... | |
#define | BPS_CHAR_FULL 0x01ff |
Bit mask of the full characteristic. More... | |
Typedefs | |
typedef void(* | bps_evt_handler_t) (uint8_t conn_idx, bps_evt_type_t event) |
Blood Pressure Service event handler type. More... | |
Enumerations | |
enum | bps_evt_type_t { BPS_EVT_INVALID, BPS_EVT_BP_MEAS_INDICATION_ENABLED, BPS_EVT_BP_MEAS_INDICATION_DISABLED, BPS_EVT_INTM_CUFF_PRESS_NTF_ENABLED, BPS_EVT_INTM_CUFF_PRESS_NTF_DISABLED, BPS_EVT_READ_BL_PRESSURE_FEATURE } |
Blood Pressure Service event type. More... | |
enum | bp_feature_bit { BP_FEATURE_BODY_MOVEMENT_BIT = (0x01 << 0), BP_FEATURE_CUFF_FIT_BIT = (0x01 << 1), BP_FEATURE_IRREGULAR_PULSE_BIT = (0x01 << 2), BP_FEATURE_PULSE_RATE_RANGE_BIT = (0x01 << 3), BP_FEATURE_MEASUREMENT_POSITION_BIT = (0x01 << 4), BP_FEATURE_MULTIPLE_BOND_BIT = (0x01 << 5) } |
Blood Pressure Feature bits. More... | |
Functions | |
sdk_err_t | bps_service_init (bps_init_t *p_bps_init) |
Initialize a Blood Pressure Service instance and add in the DB. More... | |
sdk_err_t | bps_measurement_send (uint8_t conn_idx, bps_meas_t *p_meas) |
Send Blood Pressure Measurement indication. More... | |
Blood Pressure Service API.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file bps.h.