pub struct PinMode(/* private fields */);Expand description
GPIO pin configuration.
Encodes the 4-bit CFGLR field [MODE(2) | CNF(2)] directly.
Bit 7 = set ODR high, bit 6 = set ODR low, bits 3:0 = CFGLR nibble.
Implementations§
Source§impl PinMode
impl PinMode
pub const INPUT_FLOATING: Self
pub const INPUT_PULL_UP: Self
pub const INPUT_PULL_DOWN: Self
pub const OUTPUT_PUSH_PULL: Self
pub const OUTPUT_OPEN_DRAIN: Self
pub const AF_PUSH_PULL: Self
pub const AF_OPEN_DRAIN: Self
pub fn input_pull(pull: Pull) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PinMode
impl RefUnwindSafe for PinMode
impl Send for PinMode
impl Sync for PinMode
impl Unpin for PinMode
impl UnsafeUnpin for PinMode
impl UnwindSafe for PinMode
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