Functions | |
ret_code_t | nrf_ble_cgms_update_status (nrf_ble_cgms_t *p_cgms, nrf_ble_cgm_status_t *p_status) |
Function for updating the status. More... | |
ret_code_t | nrf_ble_cgms_init (nrf_ble_cgms_t *p_cgms, const nrf_ble_cgms_init_t *p_cgms_init) |
Function for initializing the CGM Service. More... | |
void | nrf_ble_cgms_on_ble_evt (nrf_ble_cgms_t *p_cgms, ble_evt_t *p_ble_evt) |
Function for handling the application's BLE stack events. More... | |
ret_code_t | nrf_ble_cgms_meas_create (nrf_ble_cgms_t *p_cgms, ble_cgms_rec_t *p_rec) |
Function for reporting a new glucose measurement to the CGM Service module. More... | |
ret_code_t | nrf_ble_cgms_conn_handle_assign (nrf_ble_cgms_t *p_cgms, uint16_t conn_handle) |
Function for assigning a connection handle to a CGM Service instance. More... | |
ret_code_t | nrf_ble_cgms_srt_set (nrf_ble_cgms_t *p_cgms, uint16_t run_time) |
Function for setting the Session Run Time attribute value. More... | |
ret_code_t nrf_ble_cgms_conn_handle_assign | ( | nrf_ble_cgms_t * | p_cgms, |
uint16_t | conn_handle | ||
) |
Function for assigning a connection handle to a CGM Service instance.
[in] | p_cgms | Instance of the CGM Service. |
[in] | conn_handle | Connection Handle to use for this instance of the CGM Service. |
NRF_SUCCESS | If the connection handle was successfully stored in the CGM Service instance. |
NRF_ERROR_NULL | If any of the input parameters are NULL. |
ret_code_t nrf_ble_cgms_init | ( | nrf_ble_cgms_t * | p_cgms, |
const nrf_ble_cgms_init_t * | p_cgms_init | ||
) |
Function for initializing the CGM Service.
[out] | p_cgms | CGM Service structure. This structure must be supplied by the application. It is initialized by this function and will later be used to identify this particular service instance. |
[in] | p_cgms_init | Information needed to initialize the service. |
NRF_SUCCESS | If the service was initialized successfully. |
NRF_ERROR_NULL | If any of the input parameters are NULL. |
ret_code_t nrf_ble_cgms_meas_create | ( | nrf_ble_cgms_t * | p_cgms, |
ble_cgms_rec_t * | p_rec | ||
) |
Function for reporting a new glucose measurement to the CGM Service module.
The application calls this function after having performed a new glucose measurement. The new measurement is recorded in the RACP database.
[in] | p_cgms | Instance of the CGM Service. |
[in] | p_rec | Pointer to the glucose record (measurement plus context). |
NRF_SUCCESS | If a measurement was successfully created. |
void nrf_ble_cgms_on_ble_evt | ( | nrf_ble_cgms_t * | p_cgms, |
ble_evt_t * | p_ble_evt | ||
) |
Function for handling the application's BLE stack events.
Handles all events from the BLE stack that are of interest to the CGM Service.
[in] | p_cgms | Instance of the CGM Service. |
[in] | p_ble_evt | Event received from the BLE stack. |
ret_code_t nrf_ble_cgms_srt_set | ( | nrf_ble_cgms_t * | p_cgms, |
uint16_t | run_time | ||
) |
Function for setting the Session Run Time attribute value.
[in] | p_cgms | Instance of the CGM Service. |
[in] | run_time | Run Time that will be displayed in the Session Run Time attribute value. |
NRF_SUCCESS | If the Session Run Time attribute value was set successfully. |
ret_code_t nrf_ble_cgms_update_status | ( | nrf_ble_cgms_t * | p_cgms, |
nrf_ble_cgm_status_t * | p_status | ||
) |
Function for updating the status.
[in] | p_cgms | Instance of the CGM Service. |
[in] | p_status | New status. |
NRF_SUCCESS | If the status was updated successfully. |