Vive USB HID reports.
More...
#include <asm/byteorder.h>
#include <stdint.h>
#include "os/os_hid.h"
Go to the source code of this file.
◆ VIVE_CONFIG_READ_REPORT_ID
#define VIVE_CONFIG_READ_REPORT_ID 0x11 |
◆ VIVE_CONFIG_START_REPORT_ID
#define VIVE_CONFIG_START_REPORT_ID 0x10 |
◆ VIVE_CONTROLLER_BATTERY_CHARGE_MASK
#define VIVE_CONTROLLER_BATTERY_CHARGE_MASK 0x7f |
◆ VIVE_CONTROLLER_BATTERY_CHARGING
#define VIVE_CONTROLLER_BATTERY_CHARGING 0x80 |
◆ VIVE_CONTROLLER_BUTTON_GRIP
#define VIVE_CONTROLLER_BUTTON_GRIP 0x10 |
◆ VIVE_CONTROLLER_BUTTON_MENU
#define VIVE_CONTROLLER_BUTTON_MENU 0x20 |
◆ VIVE_CONTROLLER_BUTTON_REPORT_ID
#define VIVE_CONTROLLER_BUTTON_REPORT_ID 0x01 |
◆ VIVE_CONTROLLER_BUTTON_SYSTEM
#define VIVE_CONTROLLER_BUTTON_SYSTEM 0x08 |
◆ VIVE_CONTROLLER_BUTTON_THUMB
#define VIVE_CONTROLLER_BUTTON_THUMB 0x04 |
◆ VIVE_CONTROLLER_BUTTON_TOUCH
#define VIVE_CONTROLLER_BUTTON_TOUCH 0x02 |
◆ VIVE_CONTROLLER_BUTTON_TRIGGER
#define VIVE_CONTROLLER_BUTTON_TRIGGER 0x01 |
◆ VIVE_CONTROLLER_COMMAND_REPORT_ID
#define VIVE_CONTROLLER_COMMAND_REPORT_ID 0xff |
◆ VIVE_CONTROLLER_DISCONNECT_REPORT_ID
#define VIVE_CONTROLLER_DISCONNECT_REPORT_ID 0x26 |
◆ VIVE_CONTROLLER_HAPTIC_PULSE_COMMAND
#define VIVE_CONTROLLER_HAPTIC_PULSE_COMMAND 0x8f |
◆ VIVE_CONTROLLER_LIGHTHOUSE_PULSE_REPORT_ID
#define VIVE_CONTROLLER_LIGHTHOUSE_PULSE_REPORT_ID 0x21 |
◆ VIVE_CONTROLLER_POWEROFF_COMMAND
#define VIVE_CONTROLLER_POWEROFF_COMMAND 0x9f |
◆ VIVE_CONTROLLER_REPORT1_ID
#define VIVE_CONTROLLER_REPORT1_ID 0x23 |
◆ VIVE_CONTROLLER_REPORT2_ID
#define VIVE_CONTROLLER_REPORT2_ID 0x24 |
◆ VIVE_CONTROLLER_USB_BUTTON_GRIP
#define VIVE_CONTROLLER_USB_BUTTON_GRIP (1 << 2) |
◆ VIVE_CONTROLLER_USB_BUTTON_MENU
#define VIVE_CONTROLLER_USB_BUTTON_MENU (1 << 12) |
◆ VIVE_CONTROLLER_USB_BUTTON_SYSTEM
#define VIVE_CONTROLLER_USB_BUTTON_SYSTEM (1 << 13) |
◆ VIVE_CONTROLLER_USB_BUTTON_THUMB
#define VIVE_CONTROLLER_USB_BUTTON_THUMB (1 << 18) |
◆ VIVE_CONTROLLER_USB_BUTTON_TOUCH
#define VIVE_CONTROLLER_USB_BUTTON_TOUCH (1 << 20) |
◆ VIVE_CONTROLLER_USB_BUTTON_TRIGGER
#define VIVE_CONTROLLER_USB_BUTTON_TRIGGER (1 << 0) |
◆ VIVE_FIRMWARE_VERSION_REPORT_ID
#define VIVE_FIRMWARE_VERSION_REPORT_ID 0x05 |
◆ VIVE_HEADSET_LIGHTHOUSE_PULSE_REPORT_ID
#define VIVE_HEADSET_LIGHTHOUSE_PULSE_REPORT_ID 0x25 |
◆ VIVE_HEADSET_MAINBOARD_DEVICE_INFO_REPORT_ID
#define VIVE_HEADSET_MAINBOARD_DEVICE_INFO_REPORT_ID 0x04 |
◆ VIVE_HEADSET_MAINBOARD_DEVICE_INFO_REPORT_TYPE
#define VIVE_HEADSET_MAINBOARD_DEVICE_INFO_REPORT_TYPE 0x2987 |
◆ VIVE_HEADSET_POWER_REPORT_ID
#define VIVE_HEADSET_POWER_REPORT_ID 0x04 |
◆ VIVE_HEADSET_POWER_REPORT_TYPE
#define VIVE_HEADSET_POWER_REPORT_TYPE 0x2978 |
◆ VIVE_IMU_RANGE_MODES_REPORT_ID
#define VIVE_IMU_RANGE_MODES_REPORT_ID 0x01 |
◆ VIVE_IMU_REPORT_ID
#define VIVE_IMU_REPORT_ID 0x20 |
◆ VIVE_MAINBOARD_STATUS_REPORT_ID
#define VIVE_MAINBOARD_STATUS_REPORT_ID 0x03 |
◆ __attribute__()
◆ vive_get_imu_range_report()
int vive_get_imu_range_report |
( |
struct os_hid_device * |
hid_dev, |
|
|
double * |
gyro_range, |
|
|
double * |
acc_range |
|
) |
| |
◆ vive_read_config()
◆ vive_read_firmware()
int vive_read_firmware |
( |
struct os_hid_device * |
hid_dev, |
|
|
uint32_t * |
firmware_version, |
|
|
uint8_t * |
hardware_revision, |
|
|
uint8_t * |
hardware_version_micro, |
|
|
uint8_t * |
hardware_version_minor, |
|
|
uint8_t * |
hardware_version_major |
|
) |
| |
◆ @81
◆ acc
◆ accel_range
◆ battery
◆ battery_voltage
◆ button
◆ buttons
◆ command
◆ display_firmware_version
uint32_t display_firmware_version |
◆ duration
◆ edid_pid
◆ edid_vid
◆ firmware_version
uint32_t firmware_version |
◆ fpga_version_major
uint8_t fpga_version_major |
◆ fpga_version_minor
uint8_t fpga_version_minor |
◆ gyro
◆ gyro_range
◆ hardware_id
◆ hardware_revision
uint8_t hardware_revision |
◆ hardware_version_major
uint8_t hardware_version_major |
◆ hardware_version_micro
uint8_t hardware_version_micro |
◆ hardware_version_minor
uint8_t hardware_version_minor |
◆ id
◆ ipd
◆ len
◆ lens_separation
◆ magic
◆ maybe_bitfield
◆ maybe_type
◆ message
◆ payload
◆ power_off_report
◆ power_on_report
◆ proximity
◆ proximity_change
◆ pulse
◆ pulse_high
◆ pulse_low
◆ repeat_count
◆ reserved
◆ reserved1
◆ reserved2
◆ reserved3
◆ reserved4
◆ sample
◆ seq
◆ sequence
◆ string1
◆ string2
◆ time
◆ timestamp
◆ timestamp_hi
◆ timestamp_lo
◆ touch
◆ trigger
◆ trigger_hires
◆ trigger_raw
◆ type
◆ unknown
◆ unknown1
◆ unknown2
◆ unknown3
◆ unknown4
◆ unknown5
◆ unknown6
◆ unused
◆ zero