ykman.hid.freebsd

Attributes

devdir

USB_GET_REPORT

USB_SET_REPORT

USB_GET_REPORT_DESC

HIDIOCGRAWINFO

HIDIOCGRDESC

HIDIOCGRDESCSIZE

HIDIOCGFEATURE_9

HIDIOCSFEATURE_9

libc

Classes

HidrawConnection

hidraw(4) is FreeBSD's modern raw access driver, based on usbhid(4).

usb_gen_descriptor

Structure base class

UhidConnection

uhid(4) is FreeBSD's classic USB hid access driver and enabled

Functions

list_devices()

Module Contents

ykman.hid.freebsd.devdir = '/dev/'
ykman.hid.freebsd.USB_GET_REPORT = 3223344407
ykman.hid.freebsd.USB_SET_REPORT = 2149602584
ykman.hid.freebsd.USB_GET_REPORT_DESC = 3223344405
ykman.hid.freebsd.HIDIOCGRAWINFO = 1074287904
ykman.hid.freebsd.HIDIOCGRDESC = 536892703
ykman.hid.freebsd.HIDIOCGRDESCSIZE = 1074025758
ykman.hid.freebsd.HIDIOCGFEATURE_9 = 3221837092
ykman.hid.freebsd.HIDIOCSFEATURE_9 = 2148095267
class ykman.hid.freebsd.HidrawConnection(path)[source]

Bases: yubikit.core.otp.OtpConnection

hidraw(4) is FreeBSD’s modern raw access driver, based on usbhid(4). It is available since FreeBSD 13 and can be activated by adding hw.usb.usbhid.enable=”1” to /boot/loader.conf. The actual kernel module is loaded with kldload hidraw.

fd
close()[source]

Close the device, releasing any held resources.

receive()[source]

Reads an 8 byte feature report

send(data)[source]

Writes an 8 byte feature report

static get_info(dev)[source]
static get_descriptor(dev)[source]
static get_usage(dev)[source]
static list_devices()[source]
ykman.hid.freebsd.libc
class ykman.hid.freebsd.usb_gen_descriptor[source]

Bases: ctypes.Structure

Structure base class

class ykman.hid.freebsd.UhidConnection(path)[source]

Bases: yubikit.core.otp.OtpConnection

uhid(4) is FreeBSD’s classic USB hid access driver and enabled by default in FreeBSD 13.x and earlier.

fd
close()[source]

Close the device, releasing any held resources.

receive()[source]

Reads an 8 byte feature report

send(data)[source]

Writes an 8 byte feature report

static get_usage(dev)[source]
static get_info(index)[source]
static list_devices()[source]
ykman.hid.freebsd.list_devices()[source]