mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 10:55:06 +00:00
18 lines
461 B
C++
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"
|