Type Alias esp32c3::gpio::pin::R

source ·
pub type R = R<PIN_SPEC>;
Expand description

Register PIN%s reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn sync2_bypass(&self) -> SYNC2_BYPASS_R

Bits 0:1 - set GPIO input_sync2 signal mode. 0:disable. 1:trigger at negedge. 2or3:trigger at posedge.

source

pub fn pad_driver(&self) -> PAD_DRIVER_R

Bit 2 - set this bit to select pad driver. 1:open-drain. 0:normal.

source

pub fn sync1_bypass(&self) -> SYNC1_BYPASS_R

Bits 3:4 - set GPIO input_sync1 signal mode. 0:disable. 1:trigger at negedge. 2or3:trigger at posedge.

source

pub fn int_type(&self) -> INT_TYPE_R

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

source

pub fn wakeup_enable(&self) -> WAKEUP_ENABLE_R

Bit 10 - set this bit to enable GPIO wakeup.(can only wakeup CPU from Light-sleep Mode)

source

pub fn config(&self) -> CONFIG_R

Bits 11:12 - reserved

source

pub fn int_ena(&self) -> INT_ENA_R

Bits 13:17 - set bit 13 to enable CPU interrupt. set bit 14 to enable CPU(not shielded) interrupt.