Warning: This is old documentation, and should only be used for historic reference. Please go here to find the latest.
nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Glucose Database Service

Glucose Service module. More...

Macros

#define BLE_GLS_DB_MAX_RECORDS   20
 

Functions

uint32_t ble_gls_db_init (void)
 Initialize the glucose record database. More...
 
uint16_t ble_gls_db_num_records_get (void)
 Get the number of records in the database. More...
 
uint32_t ble_gls_db_record_get (uint8_t record_num, ble_gls_rec_t *p_rec)
 Get a record from the database. More...
 
uint32_t ble_gls_db_record_add (ble_gls_rec_t *p_rec)
 Add a record at the end of the database. More...
 
uint32_t ble_gls_db_record_delete (uint8_t record_num)
 Delete a database entry. More...
 

Detailed Description

This module implements at database of stored glucose measurement values.

Function Documentation

uint32_t ble_gls_db_init ( void  )

This call initializes the database holding glucose records.

Returns
NRF_SUCCESS on success.
uint16_t ble_gls_db_num_records_get ( void  )

This call returns the number of records in the database.

Returns
Number of records in the database.
uint32_t ble_gls_db_record_get ( uint8_t  record_num,
ble_gls_rec_t p_rec 
)

This call returns a specified record from the database.

Parameters
[in]record_numIndex of the record to retrieve.
[out]p_recPointer to record structure where retrieved record is copied to.
Returns
NRF_SUCCESS on success.
uint32_t ble_gls_db_record_add ( ble_gls_rec_t p_rec)

This call adds a record as the last record in the database.

Parameters
[in]p_recPointer to record to add to database.
Returns
NRF_SUCCESS on success.
uint32_t ble_gls_db_record_delete ( uint8_t  record_num)

This call deletes an record from the database.

Parameters
[in]record_numIndex of record to delete.
Returns
NRF_SUCCESS on success.