![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Continuous Glucose Monitoring Service (CGMS) module. More...
Topics | |
| Enumerations | |
| Functions | |
| Structures | |
| Types | |
Macros | |
| #define | BLE_CGMS_DEF(_name) |
| Macro for defining a ble_cgms instance. | |
| #define | BLE_CGMS_CONFIG_SEC_MODE_DEFAULT |
| Default security configuration. | |
| #define | BLE_CGMS_DATA_MAX_LEN_CALC(mtu_size) |
| Macro for calculating maximum length of data (in bytes) that can be transmitted to the peer in one ATT write or notification packet, given the ATT MTU size. | |
Continuous Glucose Monitoring type | |
| #define | BLE_CGMS_MEAS_TYPE_CAP_BLOOD 0x01 |
| #define | BLE_CGMS_MEAS_TYPE_CAP_PLASMA 0x02 |
| #define | BLE_CGMS_MEAS_TYPE_VEN_BLOOD 0x03 |
| #define | BLE_CGMS_MEAS_TYPE_VEN_PLASMA 0x04 |
| #define | BLE_CGMS_MEAS_TYPE_ART_BLOOD 0x05 |
| #define | BLE_CGMS_MEAS_TYPE_ART_PLASMA 0x06 |
| #define | BLE_CGMS_MEAS_TYPE_UNDET_BLOOD 0x07 |
| #define | BLE_CGMS_MEAS_TYPE_UNDET_PLASMA 0x08 |
| #define | BLE_CGMS_MEAS_TYPE_FLUID 0x09 |
| #define | BLE_CGMS_MEAS_TYPE_CONTROL 0x0A |
CGM sample location | |
| #define | BLE_CGMS_MEAS_LOC_FINGER 0x01 |
| #define | BLE_CGMS_MEAS_LOC_AST 0x02 |
| #define | BLE_CGMS_MEAS_LOC_EAR 0x03 |
| #define | BLE_CGMS_MEAS_LOC_CONTROL 0x04 |
| #define | BLE_CGMS_MEAS_LOC_SUB_TISSUE 0x05 |
| #define | BLE_CGMS_MEAS_LOC_NOT_AVAIL 0x0F |
CGM Measurement Sensor Status Annunciation | |
| #define | BLE_CGMS_STATUS_SESSION_STOPPED BIT(0) |
| #define | BLE_CGMS_STATUS_DEVICE_BATTERY_LOW BIT(1) |
| #define | BLE_CGMS_STATUS_SENSOR_TYPE_INCORRECT_FOR_DEVICE BIT(2) |
| #define | BLE_CGMS_STATUS_SENSOR_MALFUNCTION BIT(3) |
| #define | BLE_CGMS_STATUS_DEVICE_SPECIFIC_ALERT BIT(4) |
| #define | BLE_CGMS_STATUS_GENERAL_DEVICE_FAULT BIT(5) |
CGM Measurement flags | |
| #define | BLE_CGMS_FLAG_TREND_INFO_PRESENT BIT(0) |
| #define | BLE_CGMS_FLAGS_QUALITY_PRESENT BIT(1) |
| #define | BLE_CGMS_STATUS_FLAGS_WARNING_OCT_PRESENT BIT(5) |
| #define | BLE_CGMS_STATUS_FLAGS_CALTEMP_OCT_PRESENT BIT(6) |
| #define | BLE_CGMS_STATUS_FLAGS_STATUS_OCT_PRESENT BIT(7) |
Byte length of various commands (used for validating, encoding, and decoding data). | |
| #define | BLE_CGMS_CRC_LEN 2 |
| #define | BLE_CGMS_MEAS_LEN_MAX BLE_CGMS_DATA_MAX_LEN_CALC(CONFIG_NRF_SDH_BLE_GATT_MAX_MTU_SIZE) |
| #define | BLE_CGMS_MEAS_REC_LEN_MAX 15 |
| #define | BLE_CGMS_MEAS_REC_LEN_MIN 6 |
| #define | BLE_CGMS_MEAS_REC_PER_NOTIF_MAX (BLE_CGMS_MEAS_LEN_MAX / BLE_CGMS_MEAS_REC_LEN_MIN) |
| #define | BLE_CGMS_FEATURE_LEN 6 |
| #define | BLE_CGMS_STATUS_LEN 7 |
| #define | BLE_CGMS_SST_LEN 11 |
| #define | BLE_CGMS_SRT_LEN 4 |
| #define | BLE_CGMS_SOCP_OPERAND_MAX 17 |
| #define | BLE_CGMS_SOCP_LEN 20 |
| #define | BLE_CGMS_MAX_CALIB_LEN 10 |
| #define | BLE_CGMS_CALIBS_NB_MAX 5 |
| #define | BLE_CGMS_RACP_PENDING_OPERANDS_MAX 2 |
Continuous Glucose Monitoring Service (CGMS) module.
This module implements a sensor for the Continuous Glucose Monitoring Service. The sensor is a GATT Server that sends CGM measurements to a connected CGMS Collector. The CGMS sensor stores records that can be accessed with the Record Access Control Point (RACP). The collector can access the features and status of the sensor. Session Run Time and Session Start Time can be used to convey timing information between the sensor and the collector. The Specific Ops Control Point is used to stop and start monitoring sessions, among other things.