pub struct W(_);
Expand description
Register PIN%s
writer
Implementations§
§impl W
impl W
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 - if set to 0: normal output if set to 1: open drain
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 - if set to 0: GPIO interrupt disable if set to 1: rising edge trigger if set to 2: falling edge trigger if set to 3: any edge trigger if set to 4: low level trigger if set to 5: high level trigger
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 - GPIO wake up enable only available in light sleep
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.