pub struct R(_);
Expand description
Register GPIO1
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: enable output; 0: disable output.
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 sleep mode.
pub fn mcu_wpd(&self) -> BitReaderRaw<bool>
pub fn mcu_wpd(&self) -> BitReaderRaw<bool>
Bit 2 - Pull-down enable of the pad during 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 mcu_drv(&self) -> FieldReaderRaw<u8, u8>
pub fn mcu_drv(&self) -> FieldReaderRaw<u8, u8>
Bits 5:6 - Select the drive strength of the pad during sleep mode. A higher value corresponds with a higher strength.
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. GPIO pins 34-39 are input-only. These pins do not feature an output driver or internal pull- up/pull-down circuitry, therefore, their FUN_WPD is always 0.
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. GPIO pins 34-39 are input-only. These pins do not feature an output driver or internal pull- up/pull- down circuitry, therefore, their FUN_WPU is always 0.
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.
Methods from Deref<Target = R<GPIO1_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.