Enum axp192::GpioMode34
source · pub enum GpioMode34 {
ExternalChargeControl = 0,
NmosOpenDrainOutput = 1,
UniversalInput = 2,
AdcEnter = 3,
}
Expand description
GPIO3 and GPIO4 function setting
Used with Axp192::set_gpio3_mode
and Axp192::set_gpio4_mode
Variants§
ExternalChargeControl = 0
00: External charging control
NmosOpenDrainOutput = 1
01: NMOS Open drain output
UniversalInput = 2
10: Universal input
AdcEnter = 3
GPIO3: 11: ADC enter GPIO4: 11: Undefined
Auto Trait Implementations§
impl Freeze for GpioMode34
impl RefUnwindSafe for GpioMode34
impl Send for GpioMode34
impl Sync for GpioMode34
impl Unpin for GpioMode34
impl UnwindSafe for GpioMode34
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