pub type W = W<PIN_SPEC>;
Expand description
Register PIN%s
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn sync2_bypass(&mut self) -> SYNC2_BYPASS_W<'_, PIN_SPEC>
pub fn sync2_bypass(&mut self) -> SYNC2_BYPASS_W<'_, PIN_SPEC>
Bits 0:1 - set GPIO input_sync2 signal mode. 0:disable. 1:trigger at negedge. 2or3:trigger at posedge.
sourcepub fn pad_driver(&mut self) -> PAD_DRIVER_W<'_, PIN_SPEC>
pub fn pad_driver(&mut self) -> PAD_DRIVER_W<'_, PIN_SPEC>
Bit 2 - set this bit to select pad driver. 1:open-drain. 0:normal.
sourcepub fn sync1_bypass(&mut self) -> SYNC1_BYPASS_W<'_, PIN_SPEC>
pub fn sync1_bypass(&mut self) -> SYNC1_BYPASS_W<'_, PIN_SPEC>
Bits 3:4 - set GPIO input_sync1 signal mode. 0:disable. 1:trigger at negedge. 2or3:trigger at posedge.
sourcepub fn int_type(&mut self) -> INT_TYPE_W<'_, PIN_SPEC>
pub fn int_type(&mut self) -> INT_TYPE_W<'_, PIN_SPEC>
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
sourcepub fn wakeup_enable(&mut self) -> WAKEUP_ENABLE_W<'_, PIN_SPEC>
pub fn wakeup_enable(&mut self) -> WAKEUP_ENABLE_W<'_, PIN_SPEC>
Bit 10 - set this bit to enable GPIO wakeup.(can only wakeup CPU from Light-sleep Mode)