#[repr(u8)]pub enum Pincfg {
OPEN_DRAIN_2_PIN = 0,
OUTPUT_2_PIN_ONLY = 1,
PUSH_PULL_2_PIN = 2,
PUSH_PULL_4_PIN = 3,
OPEN_DRAIN_2_PIN_W_LPI2C_SLAVE = 4,
OUTPUT_2_PIN_ONLY_W_LPI2C_SLAVE = 5,
PUSH_PULL_2_PIN_W_LPI2C_SLAVE = 6,
PUSH_PULL_4_PIN_W_LPI2C_SLAVE = 7,
}Variants§
OPEN_DRAIN_2_PIN = 0
Two-pin open drain mode.
OUTPUT_2_PIN_ONLY = 1
Two-pin output only mode (Ultra-Fast mode).
PUSH_PULL_2_PIN = 2
Two-pin push-pull mode.
PUSH_PULL_4_PIN = 3
Four-pin push-pull mode.
OPEN_DRAIN_2_PIN_W_LPI2C_SLAVE = 4
Two-pin open-drain mode with separate LPI2C target.
OUTPUT_2_PIN_ONLY_W_LPI2C_SLAVE = 5
Two-pin output only mode (Ultra-Fast mode) with separate LPI2C target.
PUSH_PULL_2_PIN_W_LPI2C_SLAVE = 6
Two-pin push-pull mode with separate LPI2C target.
PUSH_PULL_4_PIN_W_LPI2C_SLAVE = 7
Four-pin push-pull mode (inverted outputs).
Implementations§
Trait Implementations§
Source§impl Ord for Pincfg
impl Ord for Pincfg
Source§impl PartialOrd for Pincfg
impl PartialOrd for Pincfg
impl Copy for Pincfg
impl Eq for Pincfg
impl StructuralPartialEq for Pincfg
Auto Trait Implementations§
impl Freeze for Pincfg
impl RefUnwindSafe for Pincfg
impl Send for Pincfg
impl Sync for Pincfg
impl Unpin for Pincfg
impl UnwindSafe for Pincfg
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