summaryrefslogtreecommitdiff
path: root/components/drivers/touch
diff options
context:
space:
mode:
author张世争 <[email protected]>2020-11-17 08:34:30 +0800
committer张世争 <[email protected]>2020-11-17 08:34:30 +0800
commit10862586bfea00069b9a3a7cb779cc860f420d38 (patch)
tree8999384d2f0f5798684a4d6959caffb72e72172d /components/drivers/touch
parent4b2b9a87c6f0a87b125e5c5a18bcfcf663de9fbb (diff)
[componets/drivers/touch]完善Touch设备命令
Diffstat (limited to 'components/drivers/touch')
-rw-r--r--components/drivers/touch/touch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/touch/touch.h b/components/drivers/touch/touch.h
index 6b7288a5a0..c33fe17520 100644
--- a/components/drivers/touch/touch.h
+++ b/components/drivers/touch/touch.h
@@ -45,6 +45,9 @@ extern "C" {
#define RT_TOUCH_CTRL_SET_X_TO_Y (5) /* Set X Y coordinate exchange */
#define RT_TOUCH_CTRL_DISABLE_INT (6) /* Disable interrupt */
#define RT_TOUCH_CTRL_ENABLE_INT (7) /* Enable interrupt */
+#define RT_TOUCH_CTRL_POWER_ON (8) /* Touch Power On */
+#define RT_TOUCH_CTRL_POWER_OFF (9) /* Touch Power Off */
+#define RT_TOUCH_CTRL_GET_STATUS (10) /* Get Touch Power Status */
/* Touch event */
#define RT_TOUCH_EVENT_NONE (0) /* Touch none */