Struct esp32c2_hal::pac::gpio::func_in_sel_cfg::W
pub struct W(_);
Expand description
Register FUNC%s_IN_SEL_CFG
writer
Implementations§
§impl W
impl W
pub fn in_sel(
&mut self
) -> FieldWriterRaw<'_, u32, FUNC_IN_SEL_CFG_SPEC, u8, u8, Unsafe, 5, 0>
pub fn in_sel(
&mut self
) -> FieldWriterRaw<'_, u32, FUNC_IN_SEL_CFG_SPEC, u8, u8, Unsafe, 5, 0>
Bits 0:4 - set this value: s=0-53: connect GPIO[s] to this port. s=0x38: set this port always high level. s=0x3C: set this port always low level.
pub fn in_inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_IN_SEL_CFG_SPEC, bool, BitM, 5>
pub fn in_inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_IN_SEL_CFG_SPEC, bool, BitM, 5>
Bit 5 - set this bit to invert input signal. 1:invert. 0:not invert.
pub fn sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_IN_SEL_CFG_SPEC, bool, BitM, 6>
pub fn sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_IN_SEL_CFG_SPEC, bool, BitM, 6>
Bit 6 - set this bit to bypass GPIO. 1:do not bypass GPIO. 0:bypass GPIO.
Methods from Deref<Target = W<FUNC_IN_SEL_CFG_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations§
§impl From<W<FUNC_IN_SEL_CFG_SPEC>> for W
impl From<W<FUNC_IN_SEL_CFG_SPEC>> for W
§fn from(writer: W<FUNC_IN_SEL_CFG_SPEC>) -> W
fn from(writer: W<FUNC_IN_SEL_CFG_SPEC>) -> W
Converts to this type from the input type.