pub struct R(_);
Expand description
Register CTRL3[%s]
reader
Implementations
sourceimpl R
impl R
sourcepub fn pu_pd(&self) -> PU_PD_R
pub fn pu_pd(&self) -> PU_PD_R
Bits 0:1 - These bits are used to enable an internal pull-up or pull-down resistor.
sourcepub fn pwr_gating(&self) -> PWR_GATING_R
pub fn pwr_gating(&self) -> PWR_GATING_R
Bits 2:3 - The GPIO pin will be tristated when the selected power well is off.
sourcepub fn intr_det(&self) -> INTR_DET_R
pub fn intr_det(&self) -> INTR_DET_R
Bits 4:6 - Determines the interrupt capability of the GPIO input.
sourcepub fn edge_en(&self) -> EDGE_EN_R
pub fn edge_en(&self) -> EDGE_EN_R
Bit 7 - Determines the interrupt capability of the GPIO input.
sourcepub fn out_buff_type(&self) -> OUT_BUFF_TYPE_R
pub fn out_buff_type(&self) -> OUT_BUFF_TYPE_R
Bit 8 - 0 = Push-Pull, 1 = Open Drain
sourcepub fn gpio_dir(&self) -> GPIO_DIR_R
pub fn gpio_dir(&self) -> GPIO_DIR_R
Bit 9 - Buffer direction when GPIO selected by pin mux 0 = Input, 1 = Output
sourcepub fn gpio_out_sel(&self) -> GPIO_OUT_SEL_R
pub fn gpio_out_sel(&self) -> GPIO_OUT_SEL_R
Bit 10 - GPIO outputs registe select.0=GPIO ALTERNATE_GPIO_DATA 1=GPIO Output Register.
sourcepub fn mux_ctrl(&self) -> MUX_CTRL_R
pub fn mux_ctrl(&self) -> MUX_CTRL_R
Bits 12:14 - 00 = GPIO Function, 01 = Function 1, 10 = Function 2, 11 = Function 3.
sourcepub fn alt_gpio_data(&self) -> ALT_GPIO_DATA_R
pub fn alt_gpio_data(&self) -> ALT_GPIO_DATA_R
Bit 16 - GPIO Alternate Data Register.
sourcepub fn gpio_inp(&self) -> GPIO_INP_R
pub fn gpio_inp(&self) -> GPIO_INP_R
Bit 24 - GPIO input from pin, independent of the Mux selection for the pin or the Direction.
Methods from Deref<Target = R<CTRL3_SPEC>>
Trait Implementations
sourceimpl From<R<CTRL3_SPEC>> for R
impl From<R<CTRL3_SPEC>> for R
sourcefn from(reader: R<CTRL3_SPEC>) -> Self
fn from(reader: R<CTRL3_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more