Struct lpc55_hal::peripherals::iocon::Iocon[][src]

pub struct Iocon<State = Unknown> {
    pub _state: State,
    // some fields omitted
}

Fields

_state: State

Implementations

impl Iocon[src]

pub unsafe fn steal() -> Self[src]

impl<State> Iocon<State>[src]

pub fn release(self) -> IOCON[src]

impl<State> Iocon<State>[src]

pub fn enabled(self, syscon: &mut Syscon) -> Iocon<Enabled>[src]

Enable IO pin configuration

Turn on the clock for a disabled Iocon, enabling it.

pub fn disabled(self, syscon: &mut Syscon) -> Iocon<Disabled>[src]

Disable IO pin configuration

Turns off the clock for an enabled Iocon, disabling it. Code that attempts to call this method when the peripheral is already disabled will not compile.

Consumes this instance of IOCON and returns another instance that has its State type parameter set to Disabled.

impl Iocon<Enabled>[src]

pub fn get_pio_0_8_config(&self) -> u32[src]

pub fn get_pio_0_8_func(&self) -> u8[src]

pub fn set_pio_0_8_swo_func(&self)[src]

pub fn get_pio_0_10_config(&self) -> u32[src]

pub fn get_pio_0_10_func(&self) -> u8[src]

pub fn set_pio_0_10_swo_func(&self)[src]

pub fn get_pio_0_22_config(&self) -> u32[src]

pub fn configure_pio_0_22_as_usb0_vbus(&self)[src]

Trait Implementations

impl From<IOCON> for Iocon[src]

Auto Trait Implementations

impl<State> Send for Iocon<State> where
    State: Send

impl<State = Unknown> !Sync for Iocon<State>

impl<State> Unpin for Iocon<State> where
    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.