hidapi
Loading...
Searching...
No Matches
Data Fields
hid_device_info Struct Reference

#include <hidapi.h>

Data Fields

char * path
 
unsigned short vendor_id
 
unsigned short product_id
 
wchar_t * serial_number
 
unsigned short release_number
 
wchar_t * manufacturer_string
 
wchar_t * product_string
 
unsigned short usage_page
 
unsigned short usage
 
int interface_number
 
struct hid_device_infonext
 
hid_bus_type bus_type
 

Detailed Description

hidapi info structure

Examples
test.c.

Field Documentation

◆ bus_type

hid_bus_type hid_device_info::bus_type

Underlying bus type Since version 0.13.0, HID_API_VERSION >= HID_API_MAKE_VERSION(0, 13, 0)

Examples
test.c.

◆ interface_number

int hid_device_info::interface_number

The USB interface which this logical device represents.

Valid only if the device is a USB HID device. Set to -1 in all other cases.

Examples
test.c.

◆ manufacturer_string

wchar_t* hid_device_info::manufacturer_string

Manufacturer String

Examples
test.c.

◆ next

struct hid_device_info* hid_device_info::next

Pointer to the next device

Examples
test.c.

◆ path

char* hid_device_info::path

Platform-specific device path

Examples
test.c.

◆ product_id

unsigned short hid_device_info::product_id

Device Product ID

Examples
test.c.

◆ product_string

wchar_t* hid_device_info::product_string

Product string

Examples
test.c.

◆ release_number

unsigned short hid_device_info::release_number

Device Release Number in binary-coded decimal, also known as Device Version Number

Examples
test.c.

◆ serial_number

wchar_t* hid_device_info::serial_number

Serial Number

Examples
test.c.

◆ usage

unsigned short hid_device_info::usage

Usage for this Device/Interface (Windows/Mac/hidraw only)

Examples
test.c.

◆ usage_page

unsigned short hid_device_info::usage_page

Usage Page for this Device/Interface (Windows/Mac/hidraw only)

Examples
test.c.

◆ vendor_id

unsigned short hid_device_info::vendor_id

Device Vendor ID

Examples
test.c.

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