Struct esp32_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, u16, u16, Unsafe, 9, 0>
pub fn out_sel(
&mut self
) -> FieldWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, u16, u16, Unsafe, 9, 0>
Bits 0:8 - select one of the 256 output to 40 GPIO
pub fn inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 9>
pub fn inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 9>
Bit 9 - invert the output value if you want to revert the output value setting the value to 1
pub fn oen_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 10>
pub fn oen_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 10>
Bit 10 - weather using the logical oen signal or not using the value setting by the register
pub fn oen_inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 11>
pub fn oen_inv_sel(
&mut self
) -> BitWriterRaw<'_, u32, FUNC_OUT_SEL_CFG_SPEC, bool, BitM, 11>
Bit 11 - invert the output enable value if you want to revert the output enable value setting the value to 1
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.