12 #ifndef __MSGHANDLER_PROTOCOL_H_ 13 #define __MSGHANDLER_PROTOCOL_H_ 24 #include "accel/accel_params.h" 33 #define APP_MSG_ERR_TSEN 0x1000E 42 #define APP_MSG_MIN_TEMPERATURE -400 51 #define APP_MSG_MAX_TEMPERATURE 850 60 #define APP_MSG_TEMPERATURE_PLACEHOLDER_VALUE (APP_MSG_MAX_TEMPERATURE + 1) 66 #define APP_MSG_DELAY_START_INDEFINITELY 0xFFFFFFFF 73 #define APP_MSG_MAX_TEMPERATURE_VALUES_IN_RESPONSE 232 74 #if APP_MSG_MAX_TEMPERATURE_VALUES_IN_RESPONSE > 255 75 #error APP_MSG_MAX_TEMPERATURE_VALUES_IN_RESPONSE must fit in one byte for APP_MSG_ID_GETMEASUREMENTS 82 #define APP_MSG_MAX_HUMIDITY_VALUES_IN_RESPONSE 465 89 #define APP_MSG_MAX_COMBINED_VALUES_IN_RESPONSE 155 97 #define APP_MSG_SIZEOFEVENT_IN_RESPONSE(info, data) \ 98 (((((info) & EVENT_INFO_INDEX) == EVENT_INFO_INDEX) * 2) \ 99 + ((((info) & EVENT_INFO_TIMESTAMP) == EVENT_INFO_TIMESTAMP) * 4) \ 100 + (((info) & EVENT_INFO_ENUM) == EVENT_INFO_ENUM) \ 101 + ((((info) & EVENT_INFO_DATA) == EVENT_INFO_DATA) * (data))) 108 #define APP_MSG_MAX_EVENTS_IN_RESPONSE(size) (505 / (size)) 113 typedef enum APP_MSG_ID {
256 typedef enum APP_MSG_EVENT {
361 typedef enum EVENT_INFO {
431 typedef enum APP_MSG_PERIODICDATA_TYPE_S {
432 APP_MSG_PERIODICDATA_TYPE_TEMPERATURE = 0x01,
449 typedef enum APP_MSG_PERIODICDATA_FORMAT_S {
478 typedef enum APP_MSG_TSEN_RESOLUTION {
489 #pragma pack(push, 1) 492 typedef struct APP_MSG_CMD_GETMEASUREMENTS_S {
505 typedef struct APP_MSG_CMD_SETCONFIG_S {
509 uint32_t currentTime;
545 uint32_t runningTime;
555 int16_t validMinimum;
565 int16_t validMaximum;
569 typedef struct APP_MSG_CMD_MEASURETEMPERATURE_S {
574 typedef struct APP_MSG_CMD_GETEVENTS_S {
604 typedef struct APP_MSG_CMD_SETACCELCONFIG_S {
643 typedef struct APP_MSG_CMD_GETPERIODICDATA_S {
680 typedef struct APP_MSG_CMD_SETHUMIDITYCONFIG_S {
761 typedef struct APP_MSG_RESPONSE_GETMEASUREMENTS_S {
800 typedef struct APP_MSG_RESPONSE_GETCONFIG_S {
819 uint32_t runningTime;
822 int16_t validMinimum;
825 int16_t validMaximum;
830 int16_t attainedMinimum;
833 int16_t attainedMaximum;
869 uint32_t currentTime;
873 typedef struct APP_MSG_RESPONSE_MEASURETEMPERATURE_S {
966 typedef struct APP_MSG_RESPONSE_GETEVENTS_S {
1012 typedef struct APP_MSG_RESPONSE_GETACCELCONFIG_S {
1055 uint16_t shockEventCount;
1056 uint16_t vibrationEventCount;
1057 uint16_t shakeEventCount;
1058 uint16_t tiltEventCount;
1062 typedef struct APP_MSG_RESPONSE_GETPERIODICDATA_S {
1105 typedef struct APP_MSG_RESPONSE_GETHUMIDITYCONFIG_S {
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:458
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:273
APP_MSG_TSEN_RESOLUTION_T
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:478
APP_MSG_EVENT_T
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:256
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:302
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:479
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:137
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:270
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:342
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:483
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:680
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:1105
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:414
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:178
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:214
APP_MSG_PERIODICDATA_TYPE_T
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:431
APP_MSG_PERIODICDATA_FORMAT_T
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:449
APP_MSG_ID_T
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:113
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:480
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:223
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:279
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
uint32_t result
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:1110
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:289
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:339
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:395
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:442
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:203
uint16_t validMinimum
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:693
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:147
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:401
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:188
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:351
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:484
uint16_t attainedMaximum
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:1122
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:318
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:376
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:261
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:436
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:481
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:321
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:336
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:240
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:345
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:243
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:482
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:124
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:267
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:348
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:424
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:469
EVENT_INFO_T
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:361
Definition: accel_params.h:26
Definition: accel_params.h:65
uint16_t validMaximum
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:703
Definition: accel_params.h:90
Definition: accel_params.h:121
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:282
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:158
uint16_t attainedMinimum
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:1119
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:333
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:276
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:433
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:408
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:258
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:368
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:565
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:946
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:330
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:264
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:168
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:354
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:327
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:385
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:315
Definition: app_demo_dpahu_sensormonitor/inc/msghandler_protocol.h:324