Monado OpenXR Runtime
Data Fields
os_hid_device Struct Reference

Representing a single hid interface on a device. More...

#include <os/os_hid.h>

Data Fields

int(* read )(struct os_hid_device *hid_dev, uint8_t *data, size_t size, int milliseconds)
 
int(* write )(struct os_hid_device *hid_dev, const uint8_t *data, size_t size)
 
int(* get_feature )(struct os_hid_device *hid_dev, uint8_t report_num, uint8_t *data, size_t size)
 
int(* get_feature_timeout )(struct os_hid_device *hid_dev, void *data, size_t size, uint32_t timeout)
 
int(* set_feature )(struct os_hid_device *hid_dev, const uint8_t *data, size_t size)
 
void(* destroy )(struct os_hid_device *hid_dev)
 

Detailed Description

Representing a single hid interface on a device.

Field Documentation

◆ destroy

void(* os_hid_device::destroy) (struct os_hid_device *hid_dev)

Referenced by hydra_found().

◆ get_feature

int(* os_hid_device::get_feature) (struct os_hid_device *hid_dev, uint8_t report_num, uint8_t *data, size_t size)

◆ get_feature_timeout

int(* os_hid_device::get_feature_timeout) (struct os_hid_device *hid_dev, void *data, size_t size, uint32_t timeout)

◆ read

int(* os_hid_device::read) (struct os_hid_device *hid_dev, uint8_t *data, size_t size, int milliseconds)

◆ set_feature

int(* os_hid_device::set_feature) (struct os_hid_device *hid_dev, const uint8_t *data, size_t size)

◆ write

int(* os_hid_device::write) (struct os_hid_device *hid_dev, const uint8_t *data, size_t size)

The documentation for this struct was generated from the following file: