Struct zinc_hal_lpc11xx::ioregs::IOCON_iocon_pio0_4_Get [] [src]

pub struct IOCON_iocon_pio0_4_Get {
    // some fields omitted
}

IOCON_PIO0_4: I/O configuration for pin PIO0_4/SCL

Methods

impl IOCON_iocon_pio0_4_Get

fn new(reg: &IOCON_iocon_pio0_4) -> IOCON_iocon_pio0_4_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_pio0_4_func

Get value of FUNC field: Selects pin function. All other values are reserved.

fn i2cmode(&self) -> IOCON_iocon_pio0_4_i2cmode

Get value of I2CMODE field: Selects I2C mode. Select Standard mode (I2CMODE = 00, default) or Standard I/O functionality (I2CMODE = 01) if the pin function is GPIO (FUNC = 000).

Trait Implementations

impl Copy for IOCON_iocon_pio0_4_Get

Derived Implementations

impl Clone for IOCON_iocon_pio0_4_Get

fn clone(&self) -> IOCON_iocon_pio0_4_Get

fn clone_from(&mut self, source: &Self)