Struct esp32c2_hal::pac::io_mux::gpio::R
pub struct R(_);
Expand description
Register GPIO%s
reader
Implementations§
§impl R
impl R
pub fn mcu_oe(&self) -> BitReaderRaw<bool>
pub fn mcu_oe(&self) -> BitReaderRaw<bool>
Bit 0 - Output enable of the pad in sleep mode. 1: output enabled; 0: output disabled.
pub fn slp_sel(&self) -> BitReaderRaw<bool>
pub fn slp_sel(&self) -> BitReaderRaw<bool>
Bit 1 - Sleep mode selection of this pad. Set to 1 to put the pad in pad mode.
pub fn mcu_wpd(&self) -> BitReaderRaw<bool>
pub fn mcu_wpd(&self) -> BitReaderRaw<bool>
Bit 2 - Pull-down enable of the pad in sleep mode. 1: internal pull-down enabled; 0: internal pull-down disabled.
pub fn mcu_wpu(&self) -> BitReaderRaw<bool>
pub fn mcu_wpu(&self) -> BitReaderRaw<bool>
Bit 3 - Pull-up enable of the pad during sleep mode. 1: internal pull-up enabled; 0: internal pull-up disabled.
pub fn mcu_ie(&self) -> BitReaderRaw<bool>
pub fn mcu_ie(&self) -> BitReaderRaw<bool>
Bit 4 - Input enable of the pad during sleep mode. 1: input enabled; 0: input disabled.
pub fn fun_wpd(&self) -> BitReaderRaw<bool>
pub fn fun_wpd(&self) -> BitReaderRaw<bool>
Bit 7 - Pull-down enable of the pad. 1: internal pull-down enabled; 0: internal pull-down disabled.
pub fn fun_wpu(&self) -> BitReaderRaw<bool>
pub fn fun_wpu(&self) -> BitReaderRaw<bool>
Bit 8 - Pull-up enable of the pad. 1: internal pull-up enabled; 0: internal pull-up disabled.
pub fn fun_ie(&self) -> BitReaderRaw<bool>
pub fn fun_ie(&self) -> BitReaderRaw<bool>
Bit 9 - Input enable of the pad. 1: input enabled; 0: input disabled.
pub fn fun_drv(&self) -> FieldReaderRaw<u8, u8>
pub fn fun_drv(&self) -> FieldReaderRaw<u8, u8>
Bits 10:11 - Select the drive strength of the pad. 0: ~5 mA; 1: ~10mA; 2: ~20mA; 3: ~40mA.
Methods from Deref<Target = R<GPIO_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.