12 #ifndef __MSGHANDLER_PROTOCOL_H_ 13 #define __MSGHANDLER_PROTOCOL_H_ 31 #define APP_MSG_ERR_TSEN 0x1000E 40 #define APP_MSG_MIN_TEMPERATURE -400 49 #define APP_MSG_MAX_TEMPERATURE 850 58 #define APP_MSG_TEMPERATURE_PLACEHOLDER_VALUE (APP_MSG_MAX_TEMPERATURE + 1) 64 #define APP_MSG_DELAY_START_INDEFINITELY 0xFFFFFFFF 71 #define APP_MSG_MAX_TEMPERATURE_VALUES_IN_RESPONSE 232 72 #if APP_MSG_MAX_TEMPERATURE_VALUES_IN_RESPONSE > 255 73 #error APP_MSG_MAX_TEMPERATURE_VALUES_IN_RESPONSE must fit in one byte for APP_MSG_ID_GETMEASUREMENTS 82 #define APP_MSG_SIZEOFEVENT_IN_RESPONSE(info, data) \ 83 (((((info) & EVENT_INFO_INDEX) == EVENT_INFO_INDEX) * 2) \ 84 + ((((info) & EVENT_INFO_TIMESTAMP) == EVENT_INFO_TIMESTAMP) * 4) \ 85 + (((info) & EVENT_INFO_ENUM) == EVENT_INFO_ENUM) \ 86 + ((((info) & EVENT_INFO_DATA) == EVENT_INFO_DATA) * (data))) 93 #define APP_MSG_MAX_EVENTS_IN_RESPONSE(size) (505 / (size)) 98 typedef enum APP_MSG_ID {
190 typedef enum APP_MSG_EVENT {
295 typedef enum EVENT_INFO {
365 typedef enum APP_MSG_PERIODICDATA_TYPE_S {
366 APP_MSG_PERIODICDATA_TYPE_TEMPERATURE = 0x01,
383 typedef enum APP_MSG_PERIODICDATA_FORMAT_S {
412 typedef enum APP_MSG_TSEN_RESOLUTION {
423 #pragma pack(push, 1) 426 typedef struct APP_MSG_CMD_GETMEASUREMENTS_S {
439 typedef struct APP_MSG_CMD_SETCONFIG_S {
503 typedef struct APP_MSG_CMD_MEASURETEMPERATURE_S {
508 typedef struct APP_MSG_CMD_GETEVENTS_S {
538 typedef struct APP_MSG_CMD_GETPERIODICDATA_S {
629 typedef struct APP_MSG_RESPONSE_GETMEASUREMENTS_S {
668 typedef struct APP_MSG_RESPONSE_GETCONFIG_S {
741 typedef struct APP_MSG_RESPONSE_MEASURETEMPERATURE_S {
834 typedef struct APP_MSG_RESPONSE_GETEVENTS_S {
881 typedef struct APP_MSG_RESPONSE_GETPERIODICDATA_S {
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:392
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:207
uint32_t runningTime
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:479
uint16_t interval
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:450
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:236
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:413
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:122
APP_MSG_ID_T
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:98
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:204
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:276
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:417
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:348
APP_MSG_TSEN_RESOLUTION_T
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:412
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:163
int16_t validMaximum
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:499
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:174
uint16_t index
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:518
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:414
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:213
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:503
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:508
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:538
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:629
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:668
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:741
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:834
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:881
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:426
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:439
int16_t attainedMinimum
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:698
APP_MSG_PERIODICDATA_TYPE_T
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:365
APP_MSG_PERIODICDATA_FORMAT_T
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:383
uint32_t startDelay
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:465
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:223
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:273
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:329
uint32_t currentTime
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:443
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:376
uint8_t which
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:547
uint32_t startTime
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:716
uint8_t count
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:653
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:132
uint16_t count
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:704
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:335
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:285
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:418
uint32_t result
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:634
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:252
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:310
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:195
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:370
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:415
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:255
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:270
int16_t temperature
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:748
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:279
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:177
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:416
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:109
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:201
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:282
uint32_t eventMask
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:526
uint32_t configTime
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:678
int16_t attainedMaximum
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:701
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:358
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:403
uint8_t resolution
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:504
uint8_t info
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:534
uint8_t format
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:554
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:216
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:143
uint16_t offset
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:435
int16_t validMinimum
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:489
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:267
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:210
EVENT_INFO_T
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:295
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:367
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:342
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:192
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:302
uint32_t status
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:713
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:264
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:198
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:153
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:288
APP_MSG_EVENT_T
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:190
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:261
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:319
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:249
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:258