s32k118.rs/src/eim/mod.rs

50 lines
1.8 KiB
Rust
Raw Normal View History

use vcell::VolatileCell;
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
2017-09-23 18:31:10 +00:00
#[doc = "0x00 - Error Injection Module Configuration Register"] pub eimcr: EIMCR,
#[doc = "0x04 - Error Injection Channel Enable register"] pub eichen: EICHEN,
_reserved0: [u8; 248usize],
2017-09-23 18:31:10 +00:00
#[doc = "0x100 - Error Injection Channel Descriptor n, Word0"] pub eichd0_word0: EICHD0_WORD0,
#[doc = "0x104 - Error Injection Channel Descriptor n, Word1"] pub eichd0_word1: EICHD0_WORD1,
_reserved1: [u8; 248usize],
2017-09-23 18:31:10 +00:00
#[doc = "0x200 - Error Injection Channel Descriptor n, Word0"] pub eichd1_word0: EICHD1_WORD0,
#[doc = "0x204 - Error Injection Channel Descriptor n, Word1"] pub eichd1_word1: EICHD1_WORD1,
}
#[doc = "Error Injection Module Configuration Register"]
pub struct EIMCR {
register: VolatileCell<u32>,
}
#[doc = "Error Injection Module Configuration Register"]
pub mod eimcr;
#[doc = "Error Injection Channel Enable register"]
pub struct EICHEN {
register: VolatileCell<u32>,
}
#[doc = "Error Injection Channel Enable register"]
pub mod eichen;
#[doc = "Error Injection Channel Descriptor n, Word0"]
pub struct EICHD0_WORD0 {
register: VolatileCell<u32>,
}
#[doc = "Error Injection Channel Descriptor n, Word0"]
pub mod eichd0_word0;
#[doc = "Error Injection Channel Descriptor n, Word1"]
pub struct EICHD0_WORD1 {
register: VolatileCell<u32>,
}
#[doc = "Error Injection Channel Descriptor n, Word1"]
pub mod eichd0_word1;
#[doc = "Error Injection Channel Descriptor n, Word0"]
pub struct EICHD1_WORD0 {
register: VolatileCell<u32>,
}
#[doc = "Error Injection Channel Descriptor n, Word0"]
pub mod eichd1_word0;
#[doc = "Error Injection Channel Descriptor n, Word1"]
pub struct EICHD1_WORD1 {
register: VolatileCell<u32>,
}
#[doc = "Error Injection Channel Descriptor n, Word1"]
pub mod eichd1_word1;