#[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
2-pin open drain mode
OUTPUT_2_PIN_ONLY = 1
2-pin output only mode (ultra-fast mode)
PUSH_PULL_2_PIN = 2
2-pin push-pull mode
PUSH_PULL_4_PIN = 3
4-pin push-pull mode
OPEN_DRAIN_2_PIN_W_LPI2C_SLAVE = 4
2-pin open drain mode with separate LPI2C slave
OUTPUT_2_PIN_ONLY_W_LPI2C_SLAVE = 5
2-pin output only mode (ultra-fast mode) with separate LPI2C slave
PUSH_PULL_2_PIN_W_LPI2C_SLAVE = 6
2-pin push-pull mode with separate LPI2C slave
PUSH_PULL_4_PIN_W_LPI2C_SLAVE = 7
4-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