Struct esp32c2_hal::pac::gpio::func_out_sel_cfg::W
pub struct W(_);
Expand description
Register FUNC%s_OUT_SEL_CFG
writer
Implementations§
§impl W
impl W
pub fn out_sel(
&mut self
) -> FieldWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, u8, u8, Unsafe, 8, 0>
pub fn out_sel(
&mut self
) -> FieldWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - The value of the bits: 0<=s<=256. Set the value to select output signal. s=0-255: output of GPIO[n] equals input of peripheral[s]. s=256: output of GPIO[n] equals GPIO_OUT_REG[n].
pub fn inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 8>
pub fn inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 8>
Bit 8 - set this bit to invert output signal.1:invert.0:not invert.
pub fn oen_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 9>
pub fn oen_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 9>
Bit 9 - set this bit to select output enable signal.1:use GPIO_ENABLE_REG[n] as output enable signal.0:use peripheral output enable signal.
pub fn oen_inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 10>
pub fn oen_inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 10>
Bit 10 - set this bit to invert output enable signal.1:invert.0:not invert.
Methods from Deref<Target = W<FUNC_OUT_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_OUT_SEL_CFG_SPEC>> for W
impl From<W<FUNC_OUT_SEL_CFG_SPEC>> for W
§fn from(writer: W<FUNC_OUT_SEL_CFG_SPEC>) -> W
fn from(writer: W<FUNC_OUT_SEL_CFG_SPEC>) -> W
Converts to this type from the input type.