Struct esp32s3_hal::pac::gpio::pin::W
pub struct W(_);
Expand description
Register PIN%s
writer
Implementations§
§impl W
impl W
pub fn sync2_bypass(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 2, 0>
pub fn sync2_bypass(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - set GPIO input_sync2 signal mode. 0:disable. 1:trigger at negedge. 2or3:trigger at posedge.
pub fn pad_driver(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 2>
pub fn pad_driver(&mut self) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 2>
Bit 2 - set this bit to select pad driver. 1:open-drain. 0:normal.
pub fn sync1_bypass(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 2, 3>
pub fn sync1_bypass(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 2, 3>
Bits 3:4 - set GPIO input_sync1 signal mode. 0:disable. 1:trigger at negedge. 2or3:trigger at posedge.
pub fn int_type(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 3, 7>
pub fn int_type(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 3, 7>
Bits 7:9 - set this value to choose interrupt mode. 0:disable GPIO interrupt. 1:trigger at posedge. 2:trigger at negedge. 3:trigger at any edge. 4:valid at low level. 5:valid at high level
pub fn wakeup_enable(
&mut self
) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 10>
pub fn wakeup_enable(
&mut self
) -> BitWriterRaw<'_, u32, PIN_SPEC, bool, BitM, 10>
Bit 10 - set this bit to enable GPIO wakeup.(can only wakeup CPU from Light-sleep Mode)
pub fn config(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 2, 11>
pub fn config(
&mut self
) -> FieldWriterRaw<'_, u32, PIN_SPEC, u8, u8, Unsafe, 2, 11>
Bits 11:12 - reserved
Methods from Deref<Target = W<PIN_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.