36#ifndef __INCLUDE_SENSING_SENSOR_COMMAND_H
37#define __INCLUDE_SENSING_SENSOR_COMMAND_H
143inline bool is_async_msg(uint32_t data)
145 return ((data & 0x80000000) != 0) ? true :
false;
148inline uint8_t get_async_msgtype(uint32_t param)
150 return static_cast<uint8_t
>((param & 0x0000FF00) >> 8);
153inline uint8_t get_async_msgparam(uint32_t param)
155 return static_cast<uint8_t
>(param & 0x000000FF);
158inline uint32_t make_async_msg(uint8_t type, uint8_t param)
160 return (type << 8) | param;
SensorEventType
codes of command events.
Definition: sensor_command.h:69
SensorExecResult
results.
Definition: sensor_command.h:113
SensorType
codes of command logical sensor types.
Definition: sensor_command.h:99
SensorProcessMode
codes of command logical sensor modes.
Definition: sensor_command.h:83
@ InitEvent
Definition: sensor_command.h:71
@ FlushEvent
Definition: sensor_command.h:73
@ InvalidSensorEvent
Definition: sensor_command.h:70
@ SensorEventTypeNum
Definition: sensor_command.h:74
@ ExecEvent
Definition: sensor_command.h:72
@ SensorError
Definition: sensor_command.h:115
@ SensorOK
Definition: sensor_command.h:114
@ SensorResultData
Definition: sensor_command.h:117
@ SensorWarning
Definition: sensor_command.h:116
@ StepCounter
Definition: sensor_command.h:101
@ InvalidSensorType
Definition: sensor_command.h:100
@ TransportationModeLite
Definition: sensor_command.h:105
@ TransportationMode
Definition: sensor_command.h:104
@ Compass
Definition: sensor_command.h:103
@ ArmGesture
Definition: sensor_command.h:102
@ GestureProcMode
Definition: sensor_command.h:87
@ TramProcMode
Definition: sensor_command.h:89
@ CompassProcMode
Definition: sensor_command.h:88
@ CommonMode
Definition: sensor_command.h:85
@ StepCounterMode
Definition: sensor_command.h:86
@ TramliteProcMode
Definition: sensor_command.h:90
@ InvalidSensorProcessMode
Definition: sensor_command.h:84