Struct lpc55_hal::peripherals::usbhs::Usbhs[][src]

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

Implementations

impl Usbhs[src]

pub fn new(raw_phy: USBPHY, raw_hsd: USB1, raw_hsh: USBHSH) -> Self[src]

impl<State: InitState, Mode: UsbhsMode> Usbhs<State, Mode>[src]

pub fn release(self) -> (USB1, USBHSH)[src]

pub fn enabled_as_device(
    self,
    anactrl: &mut Anactrl,
    pmc: &mut Pmc,
    syscon: &mut Syscon,
    timer: &mut Timer<impl Ctimer<Enabled>>,
    _clocks_token: ClocksSupportUsbhsToken
) -> EnabledUsbhsDevice
[src]

pub fn borrow<F: Fn(&mut Self)>(&mut self, func: F)[src]

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

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

pub fn disable_high_speed(&mut self)[src]

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

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

Disables the USB HS peripheral, assumed in device mode

Trait Implementations

impl From<(USBPHY, USB1, USBHSH)> for Usbhs[src]

Auto Trait Implementations

impl<State, Mode> Send for Usbhs<State, Mode> where
    Mode: Send,
    State: Send

impl<State = Unknown, Mode = Unknown> !Sync for Usbhs<State, Mode>

impl<State, Mode> Unpin for Usbhs<State, Mode> where
    Mode: Unpin,
    State: Unpin

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.