diff options
| author | kimi <kimi.h.kuparinen@gmail.com> | 2020-07-08 13:38:00 -0400 |
|---|---|---|
| committer | kimi <kimi.h.kuparinen@gmail.com> | 2020-07-08 13:38:00 -0400 |
| commit | 9d17b5ed83e46122966d663b0bb05e82fb9dd01c (patch) | |
| tree | 48ddbdad82f97c863a94a3445d8316e11c81dbf2 /hid-tminit.h | |
| parent | db12c7bead4154929668badaade14db135dab6d9 (diff) | |
| download | hid-tmff2-9d17b5ed83e46122966d663b0bb05e82fb9dd01c.tar.gz hid-tmff2-9d17b5ed83e46122966d663b0bb05e82fb9dd01c.zip | |
added first version of generic Thrustmaster FFB device driver
Diffstat (limited to 'hid-tminit.h')
| -rw-r--r-- | hid-tminit.h | 18 |
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) +}; |
