Struct zinc_hal_lpc11xx::ioregs::IOCON_iocon_r_pio1_0_Get
[−]
[src]
pub struct IOCON_iocon_r_pio1_0_Get { // some fields omitted }
IOCON_R_PIO1_0
: I/O configuration for pin R/PIO1_0/AD1/CT32B1_CAP0
Methods
impl IOCON_iocon_r_pio1_0_Get
fn new(reg: &IOCON_iocon_r_pio1_0) -> IOCON_iocon_r_pio1_0_Get
Create a getter reflecting the current value of the given register.
fn raw(&self) -> u32
Get the raw value of the register.
fn func(&self) -> IOCON_iocon_r_pio1_0_func
Get value of FUNC
field: Selects pin function. All other values are reserved.
fn mode(&self) -> IOCON_iocon_r_pio1_0_mode
Get value of MODE
field: Selects function mode (on-chip pull-up/pull-down resistor control).
fn hys(&self) -> IOCON_iocon_r_pio1_0_hys
Get value of HYS
field: Hysteresis.
fn admode(&self) -> IOCON_iocon_r_pio1_0_admode
Get value of ADMODE
field: Selects Analog/Digital mode
fn od(&self) -> IOCON_iocon_r_pio1_0_od
Get value of OD
field: Selects pseudo open-drain mode.