CGM Simulator
0.1.3
A CGM simulator to demonstrate the BLE CGM profile v1.1
|
This file contains the CGM simulator function, variable and constant declaration. More...
Go to the source code of this file.
Macros | |
#define | CGM_MEAS_DB_SIZE 10 |
The size for the RACP history database. More... | |
#define | START_DEVICE_EVT 0x0001 |
The task to be carried out by the application layer: Start device event. More... | |
#define | NOTI_TIMEOUT_EVT 0x0002 |
The task to be carried out by the application layer: timeout event for the next glucose notification. More... | |
#define | RACP_IND_SEND_EVT 0x0004 |
The task to be carried out by the application layer: send RACP indication. More... | |
#define | CTL_PNT_MSG 0xE0 |
The event message past by the OS: OPCP message. More... | |
#define | RACP_MSG 0xE1 |
The event message past by the OS: RACP message. More... | |
#define | RACP_SEARCH_RSP_SUCCESS 0x01 |
The search is successful. More... | |
#define | RACP_SEARCH_RSP_NO_RECORD 0x06 |
There is no record matching the criteria. More... | |
#define | RACP_SEARCH_RSP_INVALID_OPERAND 0x05 |
The operand is not valid. More... | |
#define | RACP_SEARCH_RSP_NOT_COMPLETE 0x08 |
The procedure is not completed for a reason. More... | |
Functions | |
void | CGM_Init (uint8 task_id) |
The routine to iniialize the CGM simulator. More... | |
uint16 | CGM_ProcessEvent (uint8 task_id, uint16 events) |
The routine to enable CGM application to process the system event. More... | |
This file contains the CGM simulator function, variable and constant declaration.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define CGM_MEAS_DB_SIZE 10 |
The size for the RACP history database.
#define CTL_PNT_MSG 0xE0 |
The event message past by the OS: OPCP message.
#define NOTI_TIMEOUT_EVT 0x0002 |
The task to be carried out by the application layer: timeout event for the next glucose notification.
#define RACP_IND_SEND_EVT 0x0004 |
The task to be carried out by the application layer: send RACP indication.
#define RACP_MSG 0xE1 |
The event message past by the OS: RACP message.
#define RACP_SEARCH_RSP_INVALID_OPERAND 0x05 |
The operand is not valid.
#define RACP_SEARCH_RSP_NO_RECORD 0x06 |
There is no record matching the criteria.
#define RACP_SEARCH_RSP_NOT_COMPLETE 0x08 |
The procedure is not completed for a reason.
#define RACP_SEARCH_RSP_SUCCESS 0x01 |
The search is successful.
#define START_DEVICE_EVT 0x0001 |
The task to be carried out by the application layer: Start device event.