pub struct PARL_IO { /* private fields */ }
Expand description
Parallel IO Controller
Implementations§
source§impl PARL_IO
impl PARL_IO
sourcepub const PTR: *const RegisterBlock = {0x60015000 as *const parl_io::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60015000 as *const parl_io::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn rx_mode_cfg(&self) -> &RX_MODE_CFG
pub fn rx_mode_cfg(&self) -> &RX_MODE_CFG
0x00 - Parallel RX Sampling mode configuration register.
sourcepub fn rx_data_cfg(&self) -> &RX_DATA_CFG
pub fn rx_data_cfg(&self) -> &RX_DATA_CFG
0x04 - Parallel RX data configuration register.
sourcepub fn rx_genrl_cfg(&self) -> &RX_GENRL_CFG
pub fn rx_genrl_cfg(&self) -> &RX_GENRL_CFG
0x08 - Parallel RX general configuration register.
sourcepub fn rx_start_cfg(&self) -> &RX_START_CFG
pub fn rx_start_cfg(&self) -> &RX_START_CFG
0x0c - Parallel RX Start configuration register.
sourcepub fn tx_data_cfg(&self) -> &TX_DATA_CFG
pub fn tx_data_cfg(&self) -> &TX_DATA_CFG
0x10 - Parallel TX data configuration register.
sourcepub fn tx_start_cfg(&self) -> &TX_START_CFG
pub fn tx_start_cfg(&self) -> &TX_START_CFG
0x14 - Parallel TX Start configuration register.
sourcepub fn tx_genrl_cfg(&self) -> &TX_GENRL_CFG
pub fn tx_genrl_cfg(&self) -> &TX_GENRL_CFG
0x18 - Parallel TX general configuration register.
sourcepub fn reg_update(&self) -> ®_UPDATE
pub fn reg_update(&self) -> ®_UPDATE
0x20 - Parallel IO FIFO configuration register.
sourcepub fn int_ena(&self) -> &INT_ENA
pub fn int_ena(&self) -> &INT_ENA
0x28 - Parallel IO interrupt enable singal configuration register.
sourcepub fn int_clr(&self) -> &INT_CLR
pub fn int_clr(&self) -> &INT_CLR
0x34 - Parallel IO interrupt clear singal configuration register.
sourcepub fn rx_clk_cfg(&self) -> &RX_CLK_CFG
pub fn rx_clk_cfg(&self) -> &RX_CLK_CFG
0x44 - Parallel IO RX clk configuration register
sourcepub fn tx_clk_cfg(&self) -> &TX_CLK_CFG
pub fn tx_clk_cfg(&self) -> &TX_CLK_CFG
0x48 - Parallel IO TX clk configuration register