Continuous Glucose Monitoring Service database module.
More...
|
#define | CGMS_DB_MAX_RECORDS 100 |
|
Continuous Glucose Monitoring Service database module.
This module implements a database of stored glucose measurement values. This database is meant as an example of a database that the Continuous Glucose Monitoring Service can use. Replace this module if this implementation does not suit your application. Any replacement implementation should follow the API below to ensure that the qualification of the Continuous Glucose Monitoring Service is not compromised.
Function for initializing the glucose record database.
- Return values
-
NRF_SUCCESS | If the database was successfully initialized. |
uint16_t cgms_db_num_records_get |
( |
void |
| ) |
|
Function for getting the number of records in the database.
- Returns
- The number of records in the database.
Function for adding a record at the end of the database.
- Parameters
-
[in] | p_rec | Pointer to the record to add to the database. |
- Return values
-
NRF_SUCCESS | If the record was successfully added to the database. |
ret_code_t cgms_db_record_delete |
( |
uint8_t |
record_num | ) |
|
Function for deleting a database entry.
This call deletes an record from the database.
- Parameters
-
[in] | record_num | Index of the record to delete. |
- Return values
-
NRF_SUCCESS | If the record was successfully deleted from the database. |
Function for getting a specific record from the database.
- Parameters
-
[in] | record_num | Index of the record to retrieve. |
[out] | p_rec | Pointer to the record structure to which the retrieved record is copied. |
- Return values
-
NRF_SUCCESS | If the record was successfully retrieved. |