components

Module usb

Source
Expand description

Generic component for initializing a USB device given a USBController.

This provides one Component, UsbComponent, which implements A userspace syscall interface to a USB peripheral.

§Usage

let usb_driver = components::usb::UsbComponent::new(
    board_kernel,
    capsules_extra::usb::usb_user::DRIVER_NUM,
    &peripherals.usbc,
)
.finalize(components::usb_component_static!(sam4l::usbc::Usbc));

Structs§