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
cgm.h
Go to the documentation of this file.
1 
17 #ifndef CGM_H
18 #define CGM_H
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 /*********************************************************************
26  * INCLUDES
27  */
28 
29 /*********************************************************************
30  * CONSTANTS
31  */
32 
33 
34 // CGM application level constant
35 #define CGM_MEAS_DB_SIZE 10
36 // CGM Task Events
37 #define START_DEVICE_EVT 0x0001
38 #define NOTI_TIMEOUT_EVT 0x0002
39 #define RACP_IND_SEND_EVT 0x0004
40 // Message event
41 #define CTL_PNT_MSG 0xE0
42 #define RACP_MSG 0xE1
43 //RACP Search Function Response Code
44 #define RACP_SEARCH_RSP_SUCCESS 0x01
45 #define RACP_SEARCH_RSP_NO_RECORD 0x06
46 #define RACP_SEARCH_RSP_INVALID_OPERAND 0x05
47 #define RACP_SEARCH_RSP_NOT_COMPLETE 0x08
48 
49 /*********************************************************************
50  * MACROS
51  */
52 
53 /*********************************************************************
54  * FUNCTIONS
55  */
56 
57 /*********************************************************************
58  * GLOBAL VARIABLES
59  */
60 
64 extern void CGM_Init( uint8 task_id );
65 
70 extern uint16 CGM_ProcessEvent( uint8 task_id, uint16 events );
71 
72 /*********************************************************************
73 *********************************************************************/
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* CGM_H */
void CGM_Init(uint8 task_id)
The routine to iniialize the CGM simulator.
Definition: cgm.c:516
uint16 CGM_ProcessEvent(uint8 task_id, uint16 events)
The routine to enable CGM application to process the system event.
Definition: cgm.c:621