pub enum Mode {
Input = 0,
Output = 1,
}
Expand description
GPIO pin mode
This describes the pin direction when it’s a GPIO pin. It does not describe the direction for other I/O, like LPI2C or LPUART.
In order to set alternate functions such as LPI2C or LPUART, you will need to use iomuxc enable_sw_mux_ctl_pad_gpio with the specific MUX_MODE according to the reference manual (Chapter 11). For the gpio mode, input or output we set the GDIR pin accordingly 1
12.4.3. GPIO Programming, page 1008 of the Reference Manual ↩
Variants§
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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