CGM Simulator  0.1.3
A CGM simulator to demonstrate the BLE CGM profile v1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Glucose Measurement Characteristic

This group contains modules falling into glucose measurement preparation and reporting. More...

Collaboration diagram for Glucose Measurement Characteristic:

Modules

 The Measurement Quality Indication Feature
 This is a group of constants, variables, functions related to the glucose measurement quality estimation.
 

Data Structures

struct  cgmMeasC_t
 Container for CGM measurement result data. More...
 

Macros

#define DEFAULT_NOTI_PERIOD   1000
 

Functions

static void cgmMeasSend (void)
 Send the most current record stored in cgmCurrentMeas as a GATT notification to the CGM measurement characteristic. More...
 
static void cgmNewGlucoseMeas (cgmMeasC_t *pMeas)
 Update with the lastest reading while updating the internal database. More...
 
bStatus_t CGM_MeasSend (uint16 connHandle, attHandleValueNoti_t *pNoti, uint8 taskId)
 Send a CGM measurement via the CGM measurement notification. More...
 

Variables

static attHandleValueNoti_t CGMMeas
 
static uint16 cgmCommInterval =1000
 
static UTCTime cgmCurrentTime_UTC
 The UTC format of the current system time. Appear as the number of seconds from 2000-01-01-00:00:00. More...
 
static uint16 cgmTimeOffset
 The time offset from the session start time. More...
 

Detailed Description

This group contains modules falling into glucose measurement preparation and reporting.

Macro Definition Documentation

#define DEFAULT_NOTI_PERIOD   1000

Notification period in ms

Function Documentation

bStatus_t CGM_MeasSend ( uint16  connHandle,
attHandleValueNoti_t *  pNoti,
uint8  taskId 
)

Send a CGM measurement via the CGM measurement notification.

Parameters
connHandle- connection handle
pNoti- pointer to notification structure
taskId- the task id of the CGM application
Returns
Success or Failure

Here is the caller graph for this function:

static void cgmMeasSend ( void  )
static

Send the most current record stored in cgmCurrentMeas as a GATT notification to the CGM measurement characteristic.

Returns
none

Here is the call graph for this function:

Here is the caller graph for this function:

static void cgmNewGlucoseMeas ( cgmMeasC_t pMeas)
static

Update with the lastest reading while updating the internal database.

Parameters
pMeas- address to store the generated cgm measurement.
Returns
none

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

uint16 cgmCommInterval =1000
static

The glucose measurement update interval in ms

UTCTime cgmCurrentTime_UTC
static

The UTC format of the current system time. Appear as the number of seconds from 2000-01-01-00:00:00.

attHandleValueNoti_t CGMMeas
static

Container for holding CGM measurement notification message, which would be passed down to the GATT service layer

uint16 cgmTimeOffset
static

The time offset from the session start time.