diff options
author | cnlohr <lohr85@gmail.com> | 2016-12-02 02:39:11 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-12-02 02:39:11 -0500 |
commit | 6a6c5f9bae90a9f660ce4a8eb09f95b4843876a8 (patch) | |
tree | cd18519186f08e523649d65ba3d649e73f78b78c /src | |
parent | 49d3a3690d63104508827c30da1c49fb38313632 (diff) | |
parent | 8d16ba19d41034d5e8b6b88991ccfacff460340d (diff) | |
download | libsurvive-6a6c5f9bae90a9f660ce4a8eb09f95b4843876a8.tar.gz libsurvive-6a6c5f9bae90a9f660ce4a8eb09f95b4843876a8.tar.bz2 |
Merge branch 'master' of https://github.com/cnlohr/libsurvive
Diffstat (limited to 'src')
-rw-r--r-- | src/survive_data.c | 141 |
1 files changed, 0 insertions, 141 deletions
diff --git a/src/survive_data.c b/src/survive_data.c index 18e547a..fae75f5 100644 --- a/src/survive_data.c +++ b/src/survive_data.c @@ -303,144 +303,3 @@ void survive_data_cb( struct SurviveUSBInterface * si ) } } - -/* - * - * Copyright 2016 Philipp Zabel - * SPDX-License-Identifier: LGPL-2.0+ - */ -#if 0 - -struct vive_headset_power_report { - __u8 id; - __le16 type; - __u8 len; - __u8 unknown1[9]; - __u8 reserved1[32]; - __u8 unknown2; - __u8 reserved2[18]; -} __attribute__((packed)); - -struct vive_headset_mainboard_device_info_report { - __u8 id; - __le16 type; - __u8 len; - __be16 edid_vid; - __le16 edid_pid; - __u8 unknown1[4]; - __le32 display_firmware_version; - __u8 unknown2[48]; -} __attribute__((packed)); - -struct vive_firmware_version_report { - __u8 id; - __le32 firmware_version; - __le32 unknown1; - __u8 string1[16]; - __u8 string2[16]; - __u8 hardware_version_micro; - __u8 hardware_version_minor; - __u8 hardware_version_major; - __u8 hardware_revision; - __le32 unknown2; - __u8 fpga_version_minor; - __u8 fpga_version_major; - __u8 reserved[13]; -} __attribute__((packed)); - -struct vive_headset_imu_sample { - __s16 acc[3]; - __s16 rot[3]; - __le32 time_ticks; - __u8 seq; -} __attribute__((packed)); - -struct vive_headset_imu_report { - __u8 report_id; - struct vive_headset_imu_sample samples[3]; -} __attribute__((packed)); - - - -struct vive_controller_analog_trigger_message { - __u8 squeeze; - __u8 unknown[4]; -} __attribute__((packed)); - -struct vive_controller_button_message { - __u8 buttons; -} __attribute__((packed)); - -struct vive_controller_touch_move_message { - __le16 pos[2]; - __u8 unknown[4]; -} __attribute__((packed)); - -struct vive_controller_touch_press_message { - __u8 buttons; - __le16 pos[2]; - __u8 unknown[4]; -} __attribute__((packed)); - -struct vive_controller_imu_message { - __u8 time3; - __le16 accel[3]; - __le16 gyro[3]; - __u8 unknown[4]; -} __attribute__((packed)); - -struct vive_controller_ping_message { - __u8 charge : 7; - __u8 charging : 1; - __u8 unknown1[2]; - __le16 accel[3]; - __le16 gyro[3]; - __u8 unknown2[5]; -} __attribute__((packed)); - -struct vive_controller_message { - __u8 time1; - __u8 sensor_id; - __u8 time2; - __u8 type; - union { - struct vive_controller_analog_trigger_message analog_trigger; - struct vive_controller_button_message button; - struct vive_controller_touch_move_message touch_move; - struct vive_controller_touch_press_message touch_press; - struct vive_controller_imu_message imu; - struct vive_controller_ping_message ping; - __u8 unknown[25]; - }; -} __attribute__((packed)); - -struct vive_controller_report1 { - __u8 report_id; - struct vive_controller_message message; -} __attribute__((packed)); - -struct vive_controller_report2 { - __u8 report_id; - struct vive_controller_message message[2]; -} __attribute__((packed)); - -struct vive_headset_lighthouse_pulse2 { - uint8_t sensor_id; - uint16_t length; - uint32_t timestamp; -} __attribute__((packed)); - -struct vive_headset_lighthouse_pulse_report2 { - __u8 report_id; - struct vive_headset_lighthouse_pulse2 samples[9]; -} __attribute__((packed)); - -struct vive_controller_poweroff_report { - __u8 id; - __u8 command; - __u8 len; - __u8 magic[4]; -} __attribute__((packed)); - - -#endif |