From 9d17b5ed83e46122966d663b0bb05e82fb9dd01c Mon Sep 17 00:00:00 2001 From: kimi Date: Wed, 8 Jul 2020 13:38:00 -0400 Subject: added first version of generic Thrustmaster FFB device driver --- hid-tminit.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hid-tminit.h (limited to 'hid-tminit.h') 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) +}; -- cgit v1.3