Struct sam4l::usbc::Usbc [] [src]

#[repr(C)]
pub struct Usbc<'a> { descriptors: [Endpoint; 8], client: Option<&'a Client>, state: MapCell<State>, }

State for managing the USB controller

Fields

Methods

impl<'a> Usbc<'a>
[src]

[src]

[src]

Attach to the USB bus after enabling USB clock

[src]

Detach from the USB bus. Also disable USB clock to save energy.

[src]

Enable the controller's clocks and interrupt and transition to Idle state (No effect if current state is not Reset)

[src]

[src]

Disable the controller, its interrupt, and its clocks

[src]

Provide a buffer for transfers in and out of the given endpoint

[src]

Configure and enable an endpoint (XX: include addr and packetsize?)

[src]

[src]

Set a client to receive data from the USBC

[src]

Handle an interrupt from the USBC

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> UsbController for Usbc<'a>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]