aboutsummaryrefslogtreecommitdiff
path: root/hid-tminit.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2020-07-10 22:04:12 +0300
committerGitHub <noreply@github.com>2020-07-10 22:04:12 +0300
commit675cad6d635be00c166b5ce23a79e32edd694bc8 (patch)
tree6c679e543dbf55e87eb7946a4b3b972e59dc3984 /hid-tminit.h
parent6faa9ae6a8cf242679ce4e493a66fcb31d231c09 (diff)
parent4d82a0fdfb95cdea2fd904c3ee33c1c6f603d153 (diff)
downloadhid-tmff2-675cad6d635be00c166b5ce23a79e32edd694bc8.tar.gz
hid-tmff2-675cad6d635be00c166b5ce23a79e32edd694bc8.zip
Merge pull request #2 from Kimplul/memory
Memory
Diffstat (limited to 'hid-tminit.h')
-rw-r--r--hid-tminit.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/hid-tminit.h b/hid-tminit.h
new file mode 100644
index 0000000..cd12f9b
--- /dev/null
+++ b/hid-tminit.h
@@ -0,0 +1,18 @@
+#include "hid-tm.h"
+
+u8 hw_rq_in[] = { 0xc1, 0x49, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00 };
+u8 hw_rq_out[] = { 0x41, 0x53, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00 };
+
+u8 setup_0[] = { 0x42, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_1[] = { 0x0a, 0x04, 0x90, 0x03, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_2[] = { 0x0a, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_3[] = { 0x0a, 0x04, 0x12, 0x10, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_4[] = { 0x0a, 0x04, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00 };
+u8 *setup_arr[] = { setup_0, setup_1, setup_2, setup_3, setup_4 };
+unsigned int setup_arr_sizes[] = {
+ ARRAY_SIZE(setup_0),
+ ARRAY_SIZE(setup_1),
+ ARRAY_SIZE(setup_2),
+ ARRAY_SIZE(setup_3),
+ ARRAY_SIZE(setup_4)
+};