diff --git a/S32K144.svd b/S32K144.svd index 0f5dbbe..8224d1c 100644 --- a/S32K144.svd +++ b/S32K144.svd @@ -32175,268 +32175,16 @@ - RXIMR0 + RXIMR%s Rx Individual Mask Registers 0x880 32 read-write 0 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR1 - Rx Individual Mask Registers - 0x884 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR2 - Rx Individual Mask Registers - 0x888 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR3 - Rx Individual Mask Registers - 0x88C - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR4 - Rx Individual Mask Registers - 0x890 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR5 - Rx Individual Mask Registers - 0x894 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR6 - Rx Individual Mask Registers - 0x898 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR7 - Rx Individual Mask Registers - 0x89C - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR8 - Rx Individual Mask Registers - 0x8A0 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR9 - Rx Individual Mask Registers - 0x8A4 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR10 - Rx Individual Mask Registers - 0x8A8 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR11 - Rx Individual Mask Registers - 0x8AC - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR12 - Rx Individual Mask Registers - 0x8B0 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR13 - Rx Individual Mask Registers - 0x8B4 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR14 - Rx Individual Mask Registers - 0x8B8 - 32 - read-write - 0 - 0 - - - MI - Individual Mask Bits - 0 - 32 - read-write - - - - RXIMR15 - Rx Individual Mask Registers - 0x8BC - 32 - read-write - 0 - 0 + 16 + 4 + 0-15 MI diff --git a/src/can0/mod.rs b/src/can0/mod.rs index 054059d..fab517c 100644 --- a/src/can0/mod.rs +++ b/src/can0/mod.rs @@ -25,22 +25,7 @@ pub struct RegisterBlock { _reserved4: [u8; 44usize], #[doc = "0x80 - Embedded RAM"] pub embedded_ram: [EMBEDDEDRAM; 128], _reserved5: [u8; 1536usize], - #[doc = "0x880 - Rx Individual Mask Registers"] pub rximr0: RXIMR0, - #[doc = "0x884 - Rx Individual Mask Registers"] pub rximr1: RXIMR1, - #[doc = "0x888 - Rx Individual Mask Registers"] pub rximr2: RXIMR2, - #[doc = "0x88c - Rx Individual Mask Registers"] pub rximr3: RXIMR3, - #[doc = "0x890 - Rx Individual Mask Registers"] pub rximr4: RXIMR4, - #[doc = "0x894 - Rx Individual Mask Registers"] pub rximr5: RXIMR5, - #[doc = "0x898 - Rx Individual Mask Registers"] pub rximr6: RXIMR6, - #[doc = "0x89c - Rx Individual Mask Registers"] pub rximr7: RXIMR7, - #[doc = "0x8a0 - Rx Individual Mask Registers"] pub rximr8: RXIMR8, - #[doc = "0x8a4 - Rx Individual Mask Registers"] pub rximr9: RXIMR9, - #[doc = "0x8a8 - Rx Individual Mask Registers"] pub rximr10: RXIMR10, - #[doc = "0x8ac - Rx Individual Mask Registers"] pub rximr11: RXIMR11, - #[doc = "0x8b0 - Rx Individual Mask Registers"] pub rximr12: RXIMR12, - #[doc = "0x8b4 - Rx Individual Mask Registers"] pub rximr13: RXIMR13, - #[doc = "0x8b8 - Rx Individual Mask Registers"] pub rximr14: RXIMR14, - #[doc = "0x8bc - Rx Individual Mask Registers"] pub rximr15: RXIMR15, + #[doc = "0x880 - Rx Individual Mask Registers"] pub rximr: [RXIMR; 16], _reserved6: [u8; 576usize], #[doc = "0xb00 - Pretended Networking Control 1 Register"] pub ctrl1_pn: CTRL1_PN, #[doc = "0xb04 - Pretended Networking Control 2 Register"] pub ctrl2_pn: CTRL2_PN, @@ -180,101 +165,11 @@ pub struct EMBEDDEDRAM { #[doc = "Embedded RAM"] pub mod embedded_ram; #[doc = "Rx Individual Mask Registers"] -pub struct RXIMR0 { +pub struct RXIMR { register: VolatileCell, } #[doc = "Rx Individual Mask Registers"] -pub mod rximr0; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR1 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr1; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR2 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr2; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR3 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr3; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR4 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr4; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR5 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr5; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR6 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr6; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR7 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr7; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR8 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr8; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR9 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr9; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR10 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr10; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR11 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr11; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR12 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr12; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR13 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr13; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR14 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr14; -#[doc = "Rx Individual Mask Registers"] -pub struct RXIMR15 { - register: VolatileCell, -} -#[doc = "Rx Individual Mask Registers"] -pub mod rximr15; +pub mod rximr; #[doc = "Pretended Networking Control 1 Register"] pub struct CTRL1_PN { register: VolatileCell, diff --git a/src/can0/rximr0/mod.rs b/src/can0/rximr/mod.rs similarity index 99% rename from src/can0/rximr0/mod.rs rename to src/can0/rximr/mod.rs index 301c690..849b66d 100644 --- a/src/can0/rximr0/mod.rs +++ b/src/can0/rximr/mod.rs @@ -6,7 +6,7 @@ pub struct R { pub struct W { bits: u32, } -impl super::RXIMR0 { +impl super::RXIMR { #[doc = r" Modifies the contents of the register"] #[inline] pub fn modify(&self, f: F) diff --git a/src/can0/rximr1/mod.rs b/src/can0/rximr1/mod.rs deleted file mode 100644 index fb71a89..0000000 --- a/src/can0/rximr1/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR1 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr10/mod.rs b/src/can0/rximr10/mod.rs deleted file mode 100644 index b43cc60..0000000 --- a/src/can0/rximr10/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR10 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr11/mod.rs b/src/can0/rximr11/mod.rs deleted file mode 100644 index 644a727..0000000 --- a/src/can0/rximr11/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR11 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr12/mod.rs b/src/can0/rximr12/mod.rs deleted file mode 100644 index 779cda3..0000000 --- a/src/can0/rximr12/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR12 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr13/mod.rs b/src/can0/rximr13/mod.rs deleted file mode 100644 index b457c29..0000000 --- a/src/can0/rximr13/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR13 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr14/mod.rs b/src/can0/rximr14/mod.rs deleted file mode 100644 index d637965..0000000 --- a/src/can0/rximr14/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR14 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr15/mod.rs b/src/can0/rximr15/mod.rs deleted file mode 100644 index 8b60538..0000000 --- a/src/can0/rximr15/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR15 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr2/mod.rs b/src/can0/rximr2/mod.rs deleted file mode 100644 index b79c370..0000000 --- a/src/can0/rximr2/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR2 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr3/mod.rs b/src/can0/rximr3/mod.rs deleted file mode 100644 index dc21ee1..0000000 --- a/src/can0/rximr3/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR3 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr4/mod.rs b/src/can0/rximr4/mod.rs deleted file mode 100644 index 2a5d5a7..0000000 --- a/src/can0/rximr4/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR4 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr5/mod.rs b/src/can0/rximr5/mod.rs deleted file mode 100644 index 7500c7a..0000000 --- a/src/can0/rximr5/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR5 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr6/mod.rs b/src/can0/rximr6/mod.rs deleted file mode 100644 index c7582e2..0000000 --- a/src/can0/rximr6/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR6 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr7/mod.rs b/src/can0/rximr7/mod.rs deleted file mode 100644 index a5de575..0000000 --- a/src/can0/rximr7/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR7 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr8/mod.rs b/src/can0/rximr8/mod.rs deleted file mode 100644 index 626ec56..0000000 --- a/src/can0/rximr8/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR8 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -} diff --git a/src/can0/rximr9/mod.rs b/src/can0/rximr9/mod.rs deleted file mode 100644 index 4acd2f7..0000000 --- a/src/can0/rximr9/mod.rs +++ /dev/null @@ -1,105 +0,0 @@ -#[doc = r" Value read from the register"] -pub struct R { - bits: u32, -} -#[doc = r" Value to write to the register"] -pub struct W { - bits: u32, -} -impl super::RXIMR9 { - #[doc = r" Modifies the contents of the register"] - #[inline] - pub fn modify(&self, f: F) - where - for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, - { - let bits = self.register.get(); - let r = R { bits: bits }; - let mut w = W { bits: bits }; - f(&r, &mut w); - self.register.set(w.bits); - } - #[doc = r" Reads the contents of the register"] - #[inline] - pub fn read(&self) -> R { - R { - bits: self.register.get(), - } - } - #[doc = r" Writes to the register"] - #[inline] - pub fn write(&self, f: F) - where - F: FnOnce(&mut W) -> &mut W, - { - let mut w = W::reset_value(); - f(&mut w); - self.register.set(w.bits); - } - #[doc = r" Writes the reset value to the register"] - #[inline] - pub fn reset(&self) { - self.write(|w| w) - } -} -#[doc = r" Value of the field"] -pub struct MIR { - bits: u32, -} -impl MIR { - #[doc = r" Value of the field as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } -} -#[doc = r" Proxy"] -pub struct _MIW<'a> { - w: &'a mut W, -} -impl<'a> _MIW<'a> { - #[doc = r" Writes raw bits to the field"] - #[inline] - pub unsafe fn bits(self, value: u32) -> &'a mut W { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - self.w.bits &= !((MASK as u32) << OFFSET); - self.w.bits |= ((value & MASK) as u32) << OFFSET; - self.w - } -} -impl R { - #[doc = r" Value of the register as raw bits"] - #[inline] - pub fn bits(&self) -> u32 { - self.bits - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&self) -> MIR { - let bits = { - const MASK: u32 = 4294967295; - const OFFSET: u8 = 0; - ((self.bits >> OFFSET) & MASK as u32) as u32 - }; - MIR { bits } - } -} -impl W { - #[doc = r" Reset value of the register"] - #[inline] - pub fn reset_value() -> W { - W { bits: 0 } - } - #[doc = r" Writes raw bits to the register"] - #[inline] - pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { - self.bits = bits; - self - } - #[doc = "Bits 0:31 - Individual Mask Bits"] - #[inline] - pub fn mi(&mut self) -> _MIW { - _MIW { w: self } - } -}