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 84 #define APP_MSG_SIZEOFEVENT_IN_RESPONSE(info, data) \ 85 (((((info) & EVENT_INFO_INDEX) == EVENT_INFO_INDEX) * 2) \ 86 + ((((info) & EVENT_INFO_TIMESTAMP) == EVENT_INFO_TIMESTAMP) * 4) \ 87 + (((info) & EVENT_INFO_ENUM) == EVENT_INFO_ENUM) \ 88 + ((((info) & EVENT_INFO_DATA) == EVENT_INFO_DATA) * (data))) 95 #define APP_MSG_MAX_EVENTS_IN_RESPONSE(size) (505 / (size)) 100 typedef enum APP_MSG_ID {
217 typedef enum APP_MSG_EVENT {
322 typedef enum EVENT_INFO {
392 typedef enum APP_MSG_PERIODICDATA_TYPE_S {
393 APP_MSG_PERIODICDATA_TYPE_TEMPERATURE = 0x01,
410 typedef enum APP_MSG_PERIODICDATA_FORMAT_S {
439 typedef enum APP_MSG_TSEN_RESOLUTION {
450 #pragma pack(push, 1) 453 typedef struct APP_MSG_CMD_GETMEASUREMENTS_S {
466 typedef struct APP_MSG_CMD_SETCONFIG_S {
470 uint32_t currentTime;
506 uint32_t runningTime;
516 int16_t validMinimum;
526 int16_t validMaximum;
530 typedef struct APP_MSG_CMD_MEASURETEMPERATURE_S {
535 typedef struct APP_MSG_CMD_GETEVENTS_S {
565 typedef struct APP_MSG_CMD_SETACCELCONFIG_S {
604 typedef struct APP_MSG_CMD_GETPERIODICDATA_S {
695 typedef struct APP_MSG_RESPONSE_GETMEASUREMENTS_S {
734 typedef struct APP_MSG_RESPONSE_GETCONFIG_S {
753 uint32_t runningTime;
756 int16_t validMinimum;
759 int16_t validMaximum;
764 int16_t attainedMinimum;
767 int16_t attainedMaximum;
803 uint32_t currentTime;
807 typedef struct APP_MSG_RESPONSE_MEASURETEMPERATURE_S {
900 typedef struct APP_MSG_RESPONSE_GETEVENTS_S {
946 typedef struct APP_MSG_RESPONSE_GETACCELCONFIG_S {
996 typedef struct APP_MSG_RESPONSE_GETPERIODICDATA_S {
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:279
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:145
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:337
ACCEL_TILT_PARAMS_T tilt
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:600
ACCEL_VIBRATION_PARAMS_T vibration
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:591
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:300
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:285
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:282
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:240
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:225
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:430
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:394
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:165
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:201
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:346
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:243
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:375
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:443
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:440
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:228
ACCEL_SHAKE_PARAMS_T shake
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:582
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:315
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:276
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:288
uint32_t result
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:951
EVENT_INFO_T
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:322
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:444
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:385
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:306
uint16_t shockEventCount
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:989
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:303
uint16_t tiltEventCount
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:992
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:250
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:403
APP_MSG_EVENT_T
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:217
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:175
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:204
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:356
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:231
APP_MSG_ID_T
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:100
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:234
Definition: accel_params.h:121
Definition: accel_params.h:26
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:155
Definition: accel_params.h:65
Definition: accel_params.h:90
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:124
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:237
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:263
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:329
APP_MSG_TSEN_RESOLUTION_T
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:439
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:397
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:297
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:190
uint16_t vibrationEventCount
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:990
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:222
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:291
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:312
APP_MSG_PERIODICDATA_FORMAT_T
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:410
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:442
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:565
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:946
ACCEL_SHOCK_PARAMS_T shock
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:573
uint16_t shakeEventCount
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:991
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:441
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:309
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:362
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:419
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:445
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:503
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:508
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:426
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:439
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:881
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:369
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:294
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:741
Definition: app_demo_dp_tlogger/inc/msghandler_protocol.h:834
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:134
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:111
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:219
APP_MSG_PERIODICDATA_TYPE_T
Definition: app_demo_dpa_sensormonitor/inc/msghandler_protocol.h:392