summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorRavi Jain <raviajain@google.com>2022-09-22 14:29:11 +0800
committerRavi Jain <raviajain@google.com>2022-09-22 14:41:29 +0800
commit52213616bba2a66e773cd0f6dde1a1265bf53f2a (patch)
tree3d8add7772ea4fc5cd72120865f0a37787c8cd69 /goodix_ts_core.h
parentad4cdbcf85ffc81a4242a1305d0e756ff85dd021 (diff)
downloadgoodix_touch-52213616bba2a66e773cd0f6dde1a1265bf53f2a.tar.gz
touch: goodix: Added proc command to get stylus data
Test: Tested locally via adb commands. Bug: 248179858 Signed-off-by: Ravi Jain <raviajain@google.com> Change-Id: I783b7efc997833ead6556b816297c850d3aa5db0
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 4a4173a..932d4e9 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -396,6 +396,29 @@ struct goodix_status_data {
u8 res[10];
u8 checksum;
};
+
+struct goodix_stylus_data {
+ u8 stylus_protocol;
+ u8 sample_mode;
+ u8 stylus_key;
+ u16 stylus_pressure;
+ u16 stylus_freqA;
+ u16 stylus_freqB;
+ u8 res;
+ u16 stylus_next_freqA;
+ u16 stylus_next_freqB;
+ u16 stylus_noise_value[4];
+ s16 angle_coord_x;
+ s16 angle_coord_y;
+ s16 delta_x;
+ s16 delta_y;
+ u8 freq_indexA;
+ u8 freq_indexB;
+ u16 tx1[32];
+ u16 rx1[39];
+ u16 tx2[32];
+ u16 rx2[39];
+};
#pragma pack()
/* interrupt event type */