Enum axp192::GpioMode12
source · pub enum GpioMode12 {
NmosOpenDrainOutput = 0,
UniversalInput = 1,
PWMOutput = 2,
Keep = 3,
AdcEnter = 4,
LowOutput = 5,
Floating = 6,
}
Expand description
GPIO1 and GPIO2 function setting
Used with Axp192::set_gpio1_mode
and Axp192::set_gpio2_mode
Variants§
NmosOpenDrainOutput = 0
000: NMOS Open drain output
UniversalInput = 1
001: Universal input function
PWMOutput = 2
010:PWM1 Output, high level is VINT ,Do not Can be less than 100K Pull-down resistor
Keep = 3
011: Keep
AdcEnter = 4
100: ADC enter
LowOutput = 5
101: Low output
Floating = 6
11X: Floating
Auto Trait Implementations§
impl Freeze for GpioMode12
impl RefUnwindSafe for GpioMode12
impl Send for GpioMode12
impl Sync for GpioMode12
impl Unpin for GpioMode12
impl UnwindSafe for GpioMode12
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