2026-10-10 00:59:46 +02:00

18 lines
461 B
C++

#include <tactility/drivers/usb_host.h>
#include <tactility/device.h>
#include <tactility/driver.h>
#define USB_HOST_API(driver) ((struct UsbHostApi*)(driver)->api)
extern "C" {
const struct DeviceType USB_HOST_TYPE = {
.name = "usb-host",
};
error_t usb_host_is_class_enabled(struct Device* host, enum UsbClass usb_class, bool* enabled) {
return USB_HOST_API(device_get_driver(host))->is_class_enabled(host, usb_class, enabled);
}
} // extern "C"