Struct lpc81x_pac::lpc810::swm0::pinenable0::R
source · pub struct R(_);
Expand description
Register PINENABLE0
reader
Implementations§
source§impl R
impl R
sourcepub fn acmp_i1(&self) -> ACMP_I1_R
pub fn acmp_i1(&self) -> ACMP_I1_R
Bit 0 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. By default the fixed–pin function is deselected and GPIO is assigned to this pin.
sourcepub fn acmp_i2(&self) -> ACMP_I2_R
pub fn acmp_i2(&self) -> ACMP_I2_R
Bit 1 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. By default the fixed-pin function is deselected and GPIO is assigned to this pin. Functions CLKIN and ACMP_I2 are connected to the same pin PIO0_1. To use ACMP_I2, disable the CLKIN function in bit 7 of this register and enable ACMP_I2.
sourcepub fn swclk(&self) -> SWCLK_R
pub fn swclk(&self) -> SWCLK_R
Bit 2 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. This function is selected by default.
sourcepub fn swdio(&self) -> SWDIO_R
pub fn swdio(&self) -> SWDIO_R
Bit 3 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. This function is selected by default.
sourcepub fn xtalin(&self) -> XTALIN_R
pub fn xtalin(&self) -> XTALIN_R
Bit 4 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. By default the fixed–pin function is deselected and GPIO is assigned to this pin.
sourcepub fn xtalout(&self) -> XTALOUT_R
pub fn xtalout(&self) -> XTALOUT_R
Bit 5 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. By default the fixed–pin function is deselected and GPIO is assigned to this pin.
sourcepub fn resetn(&self) -> RESETN_R
pub fn resetn(&self) -> RESETN_R
Bit 6 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. This function is selected by default.
sourcepub fn clkin(&self) -> CLKIN_R
pub fn clkin(&self) -> CLKIN_R
Bit 7 - Enables fixed-pin function. Writing a 1 deselects the function and any movable function can be assigned to this pin. By default the fixed-pin function is deselected and GPIO is assigned to this pin. Functions CLKIN and ACMP_I2 are connected to the same pin PIO0_1. To use CLKIN, disable ACMP_I2 in bit 1 of this register and enable CLKIN.