summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 54f91e3054..7901745e9e 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1713,6 +1713,11 @@ enum motionsense_command {
*/
MOTIONSENSE_CMD_SET_ACTIVITY = 13,
+ /*
+ * Lid Angle
+ */
+ MOTIONSENSE_CMD_LID_ANGLE = 14,
+
/* Number of motionsense sub-commands. */
MOTIONSENSE_NUM_CMDS
};
@@ -1827,6 +1832,8 @@ struct ec_motion_sense_activity {
/* Set Calibration information */
#define MOTION_SENSE_SET_OFFSET 1
+#define LID_ANGLE_UNRELIABLE 500
+
struct ec_params_motion_sense {
uint8_t cmd;
union {
@@ -1915,6 +1922,10 @@ struct ec_params_motion_sense {
} fifo_read;
struct ec_motion_sense_activity set_activity;
+
+ /* Used for MOTIONSENSE_CMD_LID_ANGLE */
+ struct {
+ } lid_angle;
};
} __packed;
@@ -1978,6 +1989,16 @@ struct ec_response_motion_sense {
struct {
} set_activity;
+
+
+ /* Used for MOTIONSENSE_CMD_LID_ANGLE */
+ struct {
+ /*
+ * Angle between 0 and 360 degree if available,
+ * LID_ANGLE_UNRELIABLE otherwise.
+ */
+ uint16_t value;
+ } lid_angle;
};
} __packed;