Skip to content

Commit

Permalink
Add hidapi's ( 0.13.0 ) HID underlying bus types enumeration.
Browse files Browse the repository at this point in the history
  • Loading branch information
dioannidis committed Aug 27, 2023
1 parent d87e4fd commit ea117f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/hidapi.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ TCWCharArray = array of TCWChar;

type

{ THidDeviceInfo }
{ HID underlying bus types }

THidBusType = (HID_API_BUS_UNKNOWN,
HID_API_BUS_USB,
HID_API_BUS_BLUETOOTH,
HID_API_BUS_I2C,
HID_API_BUS_SPI);

{ THidDeviceInfo }

PHidDeviceInfo = ^THidDeviceInfo;

Expand All @@ -40,7 +48,7 @@ type
Usage: Word;
InterfaceNumber: Integer;
Next: PHidDeviceInfo;
BusType: Byte;
BusType: THidBusType;
function Enumerate(VID: Word; PID: Word): PHidDeviceInfo; static;
procedure Free;
end;
Expand Down

0 comments on commit ea117f7

Please sign in to comment.