NHS31xx msg - Message Handler Protocol
app_demo_label_signedurl/inc/msghandler_protocol.h
1 /*
2  * Copyright 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 
23 #include "msg/msg.h"
24 
25 /* -------------------------------------------------------------------------------- */
26 
30 typedef enum APP_MSG_ID {
41 
52 
62 
72 
82 
102 
117 
127 } APP_MSG_ID_T;
128 
133 #define APP_MSG_MAX_LEN_URL 163
134 
141 typedef enum APP_MSG_TSEN_RESOLUTION {
149 
150 /* -------------------------------------------------------------------------------- */
151 
152 #pragma pack(push, 1)
153 
155 typedef struct APP_MSG_CMD_SETURL_S {
160  uint8_t len;
161 
168  uint8_t url[APP_MSG_MAX_LEN_URL];
170 
172 typedef struct APP_MSG_CMD_SETOFFSET_S {
181  int8_t offset;
183 
185 typedef struct APP_MSG_CMD_SETRESOLUTION_S {
186  uint8_t resolution;
188 
190 typedef struct APP_MSG_CMD_SETUNIT_S {
198  uint8_t unit;
200 
202 typedef struct APP_MSG_CMD_SETKEY_S {
209  uint32_t key[4];
211 
213 typedef struct APP_MSG_CMD_LOCK_S {
217  uint8_t lock;
219 
221 typedef struct APP_MSG_CMD_SETCONFIG_S {
222  uint8_t len;
223  uint8_t url[APP_MSG_MAX_LEN_URL];
224  int8_t offset;
225  uint8_t resolution;
226  uint8_t unit;
227  uint32_t key[4];
228  uint8_t lock;
230 
232 typedef struct APP_MSG_RESPONSE_GETCONFIG_S {
233  uint8_t len;
234  uint8_t url[APP_MSG_MAX_LEN_URL];
240  int8_t offset;
241 
242  uint8_t resolution;
243  uint8_t unit;
244  uint8_t locked;
250  uint8_t id[8];
251 
261  uint16_t temperature;
262 
267  uint16_t count;
269 
270 #pragma pack(pop)
271 
272 #endif
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:142
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:126
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:146
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:51
int8_t offset
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:224
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:143
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:668
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:439
int8_t offset
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:181
uint8_t len
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:160
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:81
uint8_t len
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:222
uint8_t lock
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:217
uint8_t locked
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:244
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:116
uint16_t temperature
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:261
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:147
uint8_t resolution
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:186
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:144
uint8_t unit
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:198
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:145
#define APP_MSG_MAX_LEN_URL
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:133
APP_MSG_TSEN_RESOLUTION_T
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:141
uint8_t unit
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:226
uint8_t resolution
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:225
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:155
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:172
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:185
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:190
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:202
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:213
uint8_t lock
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:228
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:71
APP_MSG_ID_T
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:30
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:101
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:61
Definition: app_demo_label_signedurl/inc/msghandler_protocol.h:40