Struct esp32c2_hal::pac::io_mux::pin_ctrl::W
pub struct W(_);
Expand description
Register PIN_CTRL
writer
Implementations§
§impl W
impl W
pub fn clk_out1(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_CTRL_SPEC, u8, u8, Unsafe, 4, 0>
pub fn clk_out1(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_CTRL_SPEC, u8, u8, Unsafe, 4, 0>
Bits 0:3 - If you want to output clock for I2S to CLK_OUT_out1, set this register to 0x0. CLK_OUT_out1 can be found in peripheral output signals.
pub fn clk_out2(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_CTRL_SPEC, u8, u8, Unsafe, 4, 4>
pub fn clk_out2(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_CTRL_SPEC, u8, u8, Unsafe, 4, 4>
Bits 4:7 - If you want to output clock for I2S to CLK_OUT_out2, set this register to 0x0. CLK_OUT_out2 can be found in peripheral output signals.
pub fn clk_out3(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_CTRL_SPEC, u8, u8, Unsafe, 4, 8>
pub fn clk_out3(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_CTRL_SPEC, u8, u8, Unsafe, 4, 8>
Bits 8:11 - If you want to output clock for I2S to CLK_OUT_out3, set this register to 0x0. CLK_OUT_out3 can be found in peripheral output signals.
Methods from Deref<Target = W<PIN_CTRL_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<PIN_CTRL_SPEC>> for W
impl From<W<PIN_CTRL_SPEC>> for W
§fn from(writer: W<PIN_CTRL_SPEC>) -> W
fn from(writer: W<PIN_CTRL_SPEC>) -> W
Converts to this type from the input type.