Struct zinc_hal_lpc11xx::ioregs::GPIO0_dir_Get [] [src]

pub struct GPIO0_dir_Get {
    // some fields omitted
}

DIR: Data direction register for port n

Methods

impl GPIO0_dir_Get

fn new(reg: &GPIO0_dir) -> GPIO0_dir_Get

Create a getter reflecting the current value of the given register.

fn raw(&self) -> u32

Get the raw value of the register.

fn io0(&self) -> bool

Get value of IO0 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io1(&self) -> bool

Get value of IO1 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io2(&self) -> bool

Get value of IO2 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io3(&self) -> bool

Get value of IO3 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io4(&self) -> bool

Get value of IO4 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io5(&self) -> bool

Get value of IO5 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io6(&self) -> bool

Get value of IO6 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io7(&self) -> bool

Get value of IO7 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io8(&self) -> bool

Get value of IO8 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io9(&self) -> bool

Get value of IO9 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io10(&self) -> bool

Get value of IO10 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

fn io11(&self) -> bool

Get value of IO11 field: Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output.

Trait Implementations

impl Copy for GPIO0_dir_Get

Derived Implementations

impl Clone for GPIO0_dir_Get

fn clone(&self) -> GPIO0_dir_Get

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