imxrt_ral/blocks/imxrt1011/
flexram.rs#[doc = "FLEXRAM"]
#[repr(C)]
pub struct RegisterBlock {
#[doc = "TCM CRTL Register"]
pub TCM_CTRL: crate::RWRegister<u32>,
#[doc = "OCRAM Magic Address Register"]
pub OCRAM_MAGIC_ADDR: crate::RWRegister<u32>,
#[doc = "DTCM Magic Address Register"]
pub DTCM_MAGIC_ADDR: crate::RWRegister<u32>,
#[doc = "ITCM Magic Address Register"]
pub ITCM_MAGIC_ADDR: crate::RWRegister<u32>,
#[doc = "Interrupt Status Register"]
pub INT_STATUS: crate::RWRegister<u32>,
#[doc = "Interrupt Status Enable Register"]
pub INT_STAT_EN: crate::RWRegister<u32>,
#[doc = "Interrupt Enable Register"]
pub INT_SIG_EN: crate::RWRegister<u32>,
}
#[doc = "TCM CRTL Register"]
pub mod TCM_CTRL {
#[doc = "TCM Write Wait Mode Enable"]
pub mod TCM_WWAIT_EN {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "TCM write fast mode: Write RAM accesses are expected to be finished in 1-cycle."]
pub const TCM_WWAIT_EN_0: u32 = 0;
#[doc = "TCM write wait mode: Write RAM accesses are expected to be finished in 2-cycles."]
pub const TCM_WWAIT_EN_1: u32 = 0x01;
}
}
#[doc = "TCM Read Wait Mode Enable"]
pub mod TCM_RWAIT_EN {
pub const offset: u32 = 1;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "TCM read fast mode: Read RAM accesses are expected to be finished in 1-cycle."]
pub const TCM_RWAIT_EN_0: u32 = 0;
#[doc = "TCM read wait mode: Read RAM accesses are expected to be finished in 2-cycles."]
pub const TCM_RWAIT_EN_1: u32 = 0x01;
}
}
#[doc = "Force RAM Clock Always On"]
pub mod FORCE_CLK_ON {
pub const offset: u32 = 2;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "OCRAM Magic Address Register"]
pub mod OCRAM_MAGIC_ADDR {
#[doc = "OCRAM Write Read Select"]
pub mod OCRAM_WR_RD_SEL {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "When OCRAM read access hits magic address, it will generate interrupt."]
pub const OCRAM_WR_RD_SEL_0: u32 = 0;
#[doc = "When OCRAM write access hits magic address, it will generate interrupt."]
pub const OCRAM_WR_RD_SEL_1: u32 = 0x01;
}
}
#[doc = "OCRAM Magic Address"]
pub mod OCRAM_MAGIC_ADDR {
pub const offset: u32 = 1;
pub const mask: u32 = 0x3fff << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "DTCM Magic Address Register"]
pub mod DTCM_MAGIC_ADDR {
#[doc = "DTCM Write Read Select"]
pub mod DTCM_WR_RD_SEL {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "When DTCM read access hits magic address, it will generate interrupt."]
pub const DTCM_WR_RD_SEL_0: u32 = 0;
#[doc = "When DTCM write access hits magic address, it will generate interrupt."]
pub const DTCM_WR_RD_SEL_1: u32 = 0x01;
}
}
#[doc = "DTCM Magic Address"]
pub mod DTCM_MAGIC_ADDR {
pub const offset: u32 = 1;
pub const mask: u32 = 0x3fff << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "ITCM Magic Address Register"]
pub mod ITCM_MAGIC_ADDR {
#[doc = "ITCM Write Read Select"]
pub mod ITCM_WR_RD_SEL {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "When ITCM read access hits magic address, it will generate interrupt."]
pub const ITCM_WR_RD_SEL_0: u32 = 0;
#[doc = "When ITCM write access hits magic address, it will generate interrupt."]
pub const ITCM_WR_RD_SEL_1: u32 = 0x01;
}
}
#[doc = "ITCM Magic Address"]
pub mod ITCM_MAGIC_ADDR {
pub const offset: u32 = 1;
pub const mask: u32 = 0x3fff << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "Interrupt Status Register"]
pub mod INT_STATUS {
#[doc = "ITCM Magic Address Match Status"]
pub mod ITCM_MAM_STATUS {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "ITCM did not access magic address."]
pub const ITCM_MAM_STATUS_0: u32 = 0;
#[doc = "ITCM accessed magic address."]
pub const ITCM_MAM_STATUS_1: u32 = 0x01;
}
}
#[doc = "DTCM Magic Address Match Status"]
pub mod DTCM_MAM_STATUS {
pub const offset: u32 = 1;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "DTCM did not access magic address."]
pub const DTCM_MAM_STATUS_0: u32 = 0;
#[doc = "DTCM accessed magic address."]
pub const DTCM_MAM_STATUS_1: u32 = 0x01;
}
}
#[doc = "OCRAM Magic Address Match Status"]
pub mod OCRAM_MAM_STATUS {
pub const offset: u32 = 2;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "OCRAM did not access magic address."]
pub const OCRAM_MAM_STATUS_0: u32 = 0;
#[doc = "OCRAM accessed magic address."]
pub const OCRAM_MAM_STATUS_1: u32 = 0x01;
}
}
#[doc = "ITCM Access Error Status"]
pub mod ITCM_ERR_STATUS {
pub const offset: u32 = 3;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "ITCM access error does not happen"]
pub const ITCM_ERR_STATUS_0: u32 = 0;
#[doc = "ITCM access error happens."]
pub const ITCM_ERR_STATUS_1: u32 = 0x01;
}
}
#[doc = "DTCM Access Error Status"]
pub mod DTCM_ERR_STATUS {
pub const offset: u32 = 4;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "DTCM access error does not happen"]
pub const DTCM_ERR_STATUS_0: u32 = 0;
#[doc = "DTCM access error happens."]
pub const DTCM_ERR_STATUS_1: u32 = 0x01;
}
}
#[doc = "OCRAM Access Error Status"]
pub mod OCRAM_ERR_STATUS {
pub const offset: u32 = 5;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "OCRAM access error does not happen"]
pub const OCRAM_ERR_STATUS_0: u32 = 0;
#[doc = "OCRAM access error happens."]
pub const OCRAM_ERR_STATUS_1: u32 = 0x01;
}
}
}
#[doc = "Interrupt Status Enable Register"]
pub mod INT_STAT_EN {
#[doc = "ITCM Magic Address Match Status Enable"]
pub mod ITCM_MAM_STAT_EN {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const ITCM_MAM_STAT_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const ITCM_MAM_STAT_EN_1: u32 = 0x01;
}
}
#[doc = "DTCM Magic Address Match Status Enable"]
pub mod DTCM_MAM_STAT_EN {
pub const offset: u32 = 1;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const DTCM_MAM_STAT_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const DTCM_MAM_STAT_EN_1: u32 = 0x01;
}
}
#[doc = "OCRAM Magic Address Match Status Enable"]
pub mod OCRAM_MAM_STAT_EN {
pub const offset: u32 = 2;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const OCRAM_MAM_STAT_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const OCRAM_MAM_STAT_EN_1: u32 = 0x01;
}
}
#[doc = "ITCM Access Error Status Enable"]
pub mod ITCM_ERR_STAT_EN {
pub const offset: u32 = 3;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const ITCM_ERR_STAT_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const ITCM_ERR_STAT_EN_1: u32 = 0x01;
}
}
#[doc = "DTCM Access Error Status Enable"]
pub mod DTCM_ERR_STAT_EN {
pub const offset: u32 = 4;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const DTCM_ERR_STAT_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const DTCM_ERR_STAT_EN_1: u32 = 0x01;
}
}
#[doc = "OCRAM Access Error Status Enable"]
pub mod OCRAM_ERR_STAT_EN {
pub const offset: u32 = 5;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const OCRAM_ERR_STAT_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const OCRAM_ERR_STAT_EN_1: u32 = 0x01;
}
}
}
#[doc = "Interrupt Enable Register"]
pub mod INT_SIG_EN {
#[doc = "ITCM Magic Address Match Interrupt Enable"]
pub mod ITCM_MAM_SIG_EN {
pub const offset: u32 = 0;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const ITCM_MAM_SIG_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const ITCM_MAM_SIG_EN_1: u32 = 0x01;
}
}
#[doc = "DTCM Magic Address Match Interrupt Enable"]
pub mod DTCM_MAM_SIG_EN {
pub const offset: u32 = 1;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const DTCM_MAM_SIG_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const DTCM_MAM_SIG_EN_1: u32 = 0x01;
}
}
#[doc = "OCRAM Magic Address Match Interrupt Enable"]
pub mod OCRAM_MAM_SIG_EN {
pub const offset: u32 = 2;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const OCRAM_MAM_SIG_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const OCRAM_MAM_SIG_EN_1: u32 = 0x01;
}
}
#[doc = "ITCM Access Error Interrupt Enable"]
pub mod ITCM_ERR_SIG_EN {
pub const offset: u32 = 3;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const ITCM_ERR_SIG_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const ITCM_ERR_SIG_EN_1: u32 = 0x01;
}
}
#[doc = "DTCM Access Error Interrupt Enable"]
pub mod DTCM_ERR_SIG_EN {
pub const offset: u32 = 4;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const DTCM_ERR_SIG_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const DTCM_ERR_SIG_EN_1: u32 = 0x01;
}
}
#[doc = "OCRAM Access Error Interrupt Enable"]
pub mod OCRAM_ERR_SIG_EN {
pub const offset: u32 = 5;
pub const mask: u32 = 0x01 << offset;
pub mod R {}
pub mod W {}
pub mod RW {
#[doc = "Masked"]
pub const OCRAM_ERR_SIG_EN_0: u32 = 0;
#[doc = "Enabled"]
pub const OCRAM_ERR_SIG_EN_1: u32 = 0x01;
}
}
}