Cordio Stack and Cordio Profiles  r2p3-02rel0
glps_main.h File Reference

Glucose profile sensor internal interfaces. More...

#include "app_hw.h"
Include dependency graph for glps_main.h:

Go to the source code of this file.

Data Structures

struct  glpsGlm_t
 Glucose measurement structure. More...
 
struct  glpsGlmc_t
 Glucose measurement context structure. More...
 
struct  glpsRec_t
 Glucose measurement record. More...
 

Macros

#define GLPS_RACP_MIN_WRITE_LEN   2
 Minimum RACP write length.
 
#define GLPS_RACP_RSP_LEN   4
 RACP response length.
 
#define GLPS_RACP_NUM_REC_RSP_LEN   4
 Glucose RACP number of stored records response length.
 
#define GLPS_OPERAND_MAX   ((CH_RACP_GLS_FILTER_TIME_LEN * 2) + 1)
 RACP operand maximum length.
 

Functions

void glpsDbInit (void)
 Initialize the glucose record database. More...
 
uint8_t glpsDbGetNextRecord (uint8_t oper, uint8_t *pFilter, glpsRec_t *pCurrRec, glpsRec_t **pRec)
 Get the next record that matches the given filter parameters that follows the given current record. More...
 
uint8_t glpsDbDeleteRecords (uint8_t oper, uint8_t *pFilter)
 Delete records that match the given filter parameters. More...
 
uint8_t glpsDbGetNumRecords (uint8_t oper, uint8_t *pFilter, uint8_t *pNumRec)
 Get the number of records matching the filter parameters. More...
 
void glpsDbGenerateRecord (void)
 Generate a new record. More...
 
void glpsDbToggleMedicationUnits (void)
 For conformance testing only. Toggle the sample data record number 2's medication quantity unit flag between Kilograms and Liters. Also modifies quantity. More...
 

Description

Glucose profile sensor internal interfaces.

Copyright (c) 2012-2018 Arm Ltd. All Rights Reserved. Arm Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact Arm Ltd. prior to any use, copying or further distribution of this software.

Definition in file glps_main.h.