Struct lpc55_hal::peripherals::usbfs::Usbfs[][src]

pub struct Usbfs<State: InitState = Unknown, Mode: UsbfsMode = Unknown> { /* fields omitted */ }

Implementations

impl Usbfs[src]

pub fn new(raw_fsd: USB0, raw_fsh: USBFSH) -> Self[src]

impl<State: InitState, Mode: UsbfsMode> Usbfs<State, Mode>[src]

pub fn release(self) -> (USB0, USBFSH)[src]

pub fn enabled_as_device(
    mut self: Self,
    anactrl: &mut Anactrl,
    pmc: &mut Pmc,
    syscon: &mut Syscon,
    _clocks_token: ClocksSupportUsbfsToken
) -> EnabledUsbfsDevice
[src]

impl Usbfs<Enabled<()>, Device>[src]

pub fn info(&self) -> UsbFsDevInfo[src]

impl<State: InitState> Usbfs<State, Device>[src]

pub fn disabled(
    mut self: Self,
    pmc: &mut Pmc,
    syscon: &mut Syscon
) -> Usbfs<Disabled, Device>
[src]

Disables the USB FS peripheral, assumed in device mode

Trait Implementations

impl From<(USB0, USBFSH)> for Usbfs[src]

Auto Trait Implementations

impl<State, Mode> Send for Usbfs<State, Mode> where
    Mode: Send,
    State: Send
[src]

impl<State = Unknown, Mode = Unknown> !Sync for Usbfs<State, Mode>[src]

impl<State, Mode> Unpin for Usbfs<State, Mode> where
    Mode: Unpin,
    State: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.