pub struct Iocon<State = Unknown> {
pub _state: State,
/* private fields */
}Fields§
§_state: StateImplementations§
Source§impl<State> Iocon<State>
impl<State> Iocon<State>
Sourcepub fn enabled(self, syscon: &mut Syscon) -> Iocon<Enabled>
pub fn enabled(self, syscon: &mut Syscon) -> Iocon<Enabled>
Enable IO pin configuration
Turn on the clock for a disabled Iocon, enabling it.
Sourcepub fn disabled(self, syscon: &mut Syscon) -> Iocon<Disabled>
pub fn disabled(self, syscon: &mut Syscon) -> Iocon<Disabled>
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.
Source§impl Iocon<Enabled>
impl Iocon<Enabled>
pub fn get_pio_0_8_config(&self) -> u32
pub fn get_pio_0_8_func(&self) -> u8
pub fn set_pio_0_8_swo_func(&self)
pub fn get_pio_0_10_config(&self) -> u32
pub fn get_pio_0_10_func(&self) -> u8
pub fn set_pio_0_10_swo_func(&self)
pub fn get_pio_0_22_config(&self) -> u32
pub fn configure_pio_0_22_as_usb0_vbus(&self)
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for Iocon<State>where
State: Freeze,
impl<State> RefUnwindSafe for Iocon<State>where
State: RefUnwindSafe,
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,
impl<State> UnwindSafe for Iocon<State>where
State: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more