NHS31xx msg - Message Handler Protocol
app_demo_dp_tadherence/inc/msghandler_protocol.h
1 /*
2  * Copyright 2016-2018,2020 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef MSGHANDLER_PROTOCOL_H
13 #define MSGHANDLER_PROTOCOL_H
14 
21 #include "msg/msg.h"
22 #include "therapy.h"
23 
27 typedef enum MSGHANDLER_MSG_ID {
37 
50 
59 
75  MSG_ID_START = 0x57,
76 
85 
97 
98 /* ------------------------------------------------------------------------- */
99 
100 #pragma pack(push, 1)
101 
107 typedef struct MSG_RHYTHM_S {
113  uint32_t period;
114 
129  uint32_t intakeOffset[16];
130 
147  uint32_t leniency;
148 } MSG_RHYTHM_T;
149 
152 
154 typedef struct MSG_CMD_START_S {
155  uint32_t current;
156  uint32_t updateInterval;
158 
159 /* ------------------------------------------------------------------------- */
160 
163 
165 typedef struct MSG_RESPONSE_GETSTART_S {
166  uint32_t current;
167  uint32_t start;
169 
171 typedef struct MSG_RESPONSE_GETPILLREMOVALS_S {
179  THERAPY_PILLREMOVAL_INFO_T removals[THERAPY_MAX_REMOVALS];
181 
182 #pragma pack(pop)
183 
184 #endif
MSG_RHYTHM_T MSG_CMD_SETRHYTHM_T
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:151
MSG_RHYTHM_T MSG_RESPONSE_GETRHYTHM_T
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:162
uint32_t leniency
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:147
uint32_t period
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:113
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:95
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:36
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:75
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:49
uint32_t current
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:155
uint32_t updateInterval
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:156
uint32_t start
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:167
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:58
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:84
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:107
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:154
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:165
MSGHANDLER_MSG_ID_T
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:27
Definition: app_demo_dp_tadherence/inc/msghandler_protocol.h:171