Continuous Glucose Monitoring Service Measurement module.
More...
Continuous Glucose Monitoring Service Measurement module.
This module implements parts of the Continuous Glucose Monitoring that relate to the Measurement characteristic. Events are propagated to this module from Continuous Glucose Monitoring Service using cgms_meas_on_write.
Function for adding a characteristic for the Continuous Glucose Monitoring Measurement.
- Parameters
-
[in] | p_cgms | Instance of the CGM Service. |
- Return values
-
NRF_SUCCESS | If the characteristic was successfully added. |
- Returns
- If functions from other modules return errors to this function, the SoftDevice Global Error Codes are propagated.
Function for handling the BLE_GATTS_EVT_WRITE event from the BLE stack.
- Parameters
-
[in] | p_cgms | Instance of the CGM Service. |
[in] | p_evt_write | Event received from the BLE stack. |
Function for sending a CGM Measurement.
- Parameters
-
[in] | p_cgms | Instance of the CGM Service. |
[in] | p_rec | Measurement to be sent. |
[in] | count | Number of measurements to encode. |
- Return values
-
NRF_SUCCESS | If the measurement was successfully sent. |
- Returns
- If functions from other modules return errors to this function, the SoftDevice Global Error Codes are propagated.