From 45b16802542d309e233e2812931496f4ebd57877 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 10 Dec 2021 17:58:54 +0100 Subject: [PATCH] Regenerate PAC with patched svd2rust version PAC was now generated using svd2rust patched with https://github.com/rust-embedded/svd2rust/pull/558 . This fixes some clippy issues --- src/adc/fifo_clr.rs | 21 ++++++++++++++++++- src/can0/ctmr.rs | 35 ++++++++++++++++++++++++++++++- src/dac0/fifo_clr.rs | 21 ++++++++++++++++++- src/dma/alt_ctrl_base_ptr.rs | 4 ++-- src/dma/err_set.rs | 35 ++++++++++++++++++++++++++++++- src/dma/stall_status.rs | 35 ++++++++++++++++++++++++++++++- src/eth/dma_curr_rx_bufr_addr.rs | 4 ++-- src/eth/dma_curr_rx_desc.rs | 4 ++-- src/eth/dma_curr_tx_bufr_addr.rs | 4 ++-- src/eth/dma_curr_tx_desc.rs | 4 ++-- src/eth/dma_rx_desc_list_addr.rs | 4 ++-- src/eth/dma_rx_poll_demand.rs | 4 ++-- src/eth/dma_tx_desc_list_addr.rs | 4 ++-- src/eth/dma_tx_poll_demand.rs | 4 ++-- src/eth/mac_addr_l.rs | 2 +- src/eth/rx1024maxoct_gb.rs | 2 +- src/eth/rx128to255oct_gb.rs | 2 +- src/eth/rx256to511oct_gb.rs | 2 +- src/eth/rx512to1023oct_gb.rs | 2 +- src/eth/rx64octets_gb.rs | 2 +- src/eth/rx65to127oct_gb.rs | 2 +- src/eth/rxalignerror.rs | 2 +- src/eth/rxbcastframes_g.rs | 2 +- src/eth/rxcrcerror.rs | 2 +- src/eth/rxctrlframes_g.rs | 2 +- src/eth/rxfifooverflow.rs | 2 +- src/eth/rxframecount_gb.rs | 2 +- src/eth/rxjabbererror.rs | 2 +- src/eth/rxlengtherror.rs | 2 +- src/eth/rxmcastframes_g.rs | 2 +- src/eth/rxoctetcount_g.rs | 2 +- src/eth/rxoctetcount_gb.rs | 2 +- src/eth/rxoutrangetype.rs | 2 +- src/eth/rxoversize_g.rs | 2 +- src/eth/rxpauseframes.rs | 2 +- src/eth/rxrcverror.rs | 2 +- src/eth/rxrunterror.rs | 2 +- src/eth/rxucastframes_g.rs | 2 +- src/eth/rxundersize_g.rs | 2 +- src/eth/rxvlanframes_gb.rs | 2 +- src/eth/rxwdogerror.rs | 2 +- src/eth/systime_seconds.rs | 2 +- src/eth/systime_secsupdat.rs | 4 ++-- src/eth/target_time_secs.rs | 4 ++-- src/eth/timestampaddend.rs | 4 ++-- src/eth/tx1024maxoct_gb.rs | 2 +- src/eth/tx128to255oct_gb.rs | 2 +- src/eth/tx256to511oct_gb.rs | 2 +- src/eth/tx512to1023oct_gb.rs | 2 +- src/eth/tx64oct_gb.rs | 2 +- src/eth/tx65to127oct_gb.rs | 2 +- src/eth/txbcastframe_gb.rs | 2 +- src/eth/txbcastframes_g.rs | 2 +- src/eth/txcarriererror.rs | 2 +- src/eth/txdeferred.rs | 2 +- src/eth/txexcessdef.rs | 2 +- src/eth/txexesscol.rs | 2 +- src/eth/txframecount_g.rs | 2 +- src/eth/txframecount_gb.rs | 2 +- src/eth/txlanframes_g.rs | 2 +- src/eth/txlatecol.rs | 2 +- src/eth/txmcastframe_gb.rs | 2 +- src/eth/txmcastframes_g.rs | 2 +- src/eth/txmulticol_g.rs | 2 +- src/eth/txoctetcount_g.rs | 2 +- src/eth/txoctetcount_gb.rs | 2 +- src/eth/txoversize_g.rs | 2 +- src/eth/txpauseframes.rs | 2 +- src/eth/txsinglecol_g.rs | 2 +- src/eth/txucastframe_gb.rs | 2 +- src/eth/txundererr.rs | 2 +- src/irq_router/irq_out0.rs | 2 +- src/irq_router/irq_out1.rs | 2 +- src/irq_router/irq_out2.rs | 2 +- src/irq_router/irq_out3.rs | 2 +- src/irq_router/irq_out4.rs | 2 +- src/lib.rs | 2 +- src/sysconfig/refresh_config_l.rs | 4 ++-- src/trng/ehr_data0.rs | 2 +- src/trng/ehr_data1.rs | 2 +- src/trng/ehr_data2.rs | 2 +- src/trng/ehr_data3.rs | 2 +- src/trng/ehr_data4.rs | 2 +- src/trng/ehr_data5.rs | 2 +- src/trng/sample_cnt1.rs | 4 ++-- src/watch_dog/wdogintclr.rs | 4 ++-- src/watch_dog/wdogload.rs | 4 ++-- src/watch_dog/wdoglock.rs | 4 ++-- src/watch_dog/wdogvalue.rs | 2 +- 89 files changed, 243 insertions(+), 106 deletions(-) diff --git a/src/adc/fifo_clr.rs b/src/adc/fifo_clr.rs index 4cacd77..aa6bdff 100644 --- a/src/adc/fifo_clr.rs +++ b/src/adc/fifo_clr.rs @@ -1,3 +1,18 @@ +#[doc = "Register `FIFO_CLR` reader"] +pub struct R(crate::R); +impl core::ops::Deref for R { + type Target = crate::R; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +impl From> for R { + #[inline(always)] + fn from(reader: crate::R) -> Self { + R(reader) + } +} #[doc = "Register `FIFO_CLR` writer"] pub struct W(crate::W); impl core::ops::Deref for W { @@ -54,11 +69,15 @@ impl W { self } } -#[doc = "FIFO Clear\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"] +#[doc = "FIFO Clear\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"] pub struct FIFO_CLR_SPEC; impl crate::RegisterSpec for FIFO_CLR_SPEC { type Ux = u32; } +#[doc = "`read()` method returns [fifo_clr::R](R) reader structure"] +impl crate::Readable for FIFO_CLR_SPEC { + type Reader = R; +} #[doc = "`write(|w| ..)` method takes [fifo_clr::W](W) writer structure"] impl crate::Writable for FIFO_CLR_SPEC { type Writer = W; diff --git a/src/can0/ctmr.rs b/src/can0/ctmr.rs index 94a2236..cd5aa5d 100644 --- a/src/can0/ctmr.rs +++ b/src/can0/ctmr.rs @@ -13,6 +13,27 @@ impl From> for R { R(reader) } } +#[doc = "Register `CTMR` writer"] +pub struct W(crate::W); +impl core::ops::Deref for W { + type Target = crate::W; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +impl core::ops::DerefMut for W { + #[inline(always)] + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} +impl From> for W { + #[inline(always)] + fn from(writer: crate::W) -> Self { + W(writer) + } +} #[doc = "Field `CTMR` reader - Time Stamp Counter"] pub struct CTMR_R(crate::FieldReader); impl CTMR_R { @@ -35,7 +56,15 @@ impl R { CTMR_R::new((self.bits & 0xffff) as u16) } } -#[doc = "CAN Timer Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctmr](index.html) module"] +impl W { + #[doc = "Writes raw bits to the register."] + #[inline(always)] + pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { + self.0.bits(bits); + self + } +} +#[doc = "CAN Timer Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctmr](index.html) module"] pub struct CTMR_SPEC; impl crate::RegisterSpec for CTMR_SPEC { type Ux = u32; @@ -44,6 +73,10 @@ impl crate::RegisterSpec for CTMR_SPEC { impl crate::Readable for CTMR_SPEC { type Reader = R; } +#[doc = "`write(|w| ..)` method takes [ctmr::W](W) writer structure"] +impl crate::Writable for CTMR_SPEC { + type Writer = W; +} #[doc = "`reset()` method sets CTMR to value 0"] impl crate::Resettable for CTMR_SPEC { #[inline(always)] diff --git a/src/dac0/fifo_clr.rs b/src/dac0/fifo_clr.rs index 64c74cf..43fbad2 100644 --- a/src/dac0/fifo_clr.rs +++ b/src/dac0/fifo_clr.rs @@ -1,3 +1,18 @@ +#[doc = "Register `FIFO_CLR` reader"] +pub struct R(crate::R); +impl core::ops::Deref for R { + type Target = crate::R; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +impl From> for R { + #[inline(always)] + fn from(reader: crate::R) -> Self { + R(reader) + } +} #[doc = "Register `FIFO_CLR` writer"] pub struct W(crate::W); impl core::ops::Deref for W { @@ -54,11 +69,15 @@ impl W { self } } -#[doc = "FIFO Clear\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"] +#[doc = "FIFO Clear\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fifo_clr](index.html) module"] pub struct FIFO_CLR_SPEC; impl crate::RegisterSpec for FIFO_CLR_SPEC { type Ux = u32; } +#[doc = "`read()` method returns [fifo_clr::R](R) reader structure"] +impl crate::Readable for FIFO_CLR_SPEC { + type Reader = R; +} #[doc = "`write(|w| ..)` method takes [fifo_clr::W](W) writer structure"] impl crate::Writable for FIFO_CLR_SPEC { type Writer = W; diff --git a/src/dma/alt_ctrl_base_ptr.rs b/src/dma/alt_ctrl_base_ptr.rs index 3be2a2a..2f50d60 100644 --- a/src/dma/alt_ctrl_base_ptr.rs +++ b/src/dma/alt_ctrl_base_ptr.rs @@ -57,7 +57,7 @@ impl<'a> ALT_CTRL_BASE_PTR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Base Pointer for Alternate DMA Control Register"] #[inline(always)] pub fn alt_ctrl_base_ptr(&self) -> ALT_CTRL_BASE_PTR_R { - ALT_CTRL_BASE_PTR_R::new((self.bits & 0xffff_ffff) as u32) + ALT_CTRL_BASE_PTR_R::new(self.bits as u32) } } impl W { diff --git a/src/dma/err_set.rs b/src/dma/err_set.rs index 0c335e9..e2b9658 100644 --- a/src/dma/err_set.rs +++ b/src/dma/err_set.rs @@ -13,6 +13,27 @@ impl From> for R { R(reader) } } +#[doc = "Register `ERR_SET` writer"] +pub struct W(crate::W); +impl core::ops::Deref for W { + type Target = crate::W; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +impl core::ops::DerefMut for W { + #[inline(always)] + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} +impl From> for W { + #[inline(always)] + fn from(writer: crate::W) -> Self { + W(writer) + } +} #[doc = "Field `ERR_SET` reader - Set Error"] pub struct ERR_SET_R(crate::FieldReader); impl ERR_SET_R { @@ -35,7 +56,15 @@ impl R { ERR_SET_R::new((self.bits & 0x01) != 0) } } -#[doc = "DMA bus error set\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [err_set](index.html) module"] +impl W { + #[doc = "Writes raw bits to the register."] + #[inline(always)] + pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { + self.0.bits(bits); + self + } +} +#[doc = "DMA bus error set\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [err_set](index.html) module"] pub struct ERR_SET_SPEC; impl crate::RegisterSpec for ERR_SET_SPEC { type Ux = u32; @@ -44,6 +73,10 @@ impl crate::RegisterSpec for ERR_SET_SPEC { impl crate::Readable for ERR_SET_SPEC { type Reader = R; } +#[doc = "`write(|w| ..)` method takes [err_set::W](W) writer structure"] +impl crate::Writable for ERR_SET_SPEC { + type Writer = W; +} #[doc = "`reset()` method sets ERR_SET to value 0"] impl crate::Resettable for ERR_SET_SPEC { #[inline(always)] diff --git a/src/dma/stall_status.rs b/src/dma/stall_status.rs index 2688bb3..826fd25 100644 --- a/src/dma/stall_status.rs +++ b/src/dma/stall_status.rs @@ -13,6 +13,27 @@ impl From> for R { R(reader) } } +#[doc = "Register `STALL_STATUS` writer"] +pub struct W(crate::W); +impl core::ops::Deref for W { + type Target = crate::W; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +impl core::ops::DerefMut for W { + #[inline(always)] + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} +impl From> for W { + #[inline(always)] + fn from(writer: crate::W) -> Self { + W(writer) + } +} #[doc = "Field `STALL_STATUS` reader - DMA is stalled"] pub struct STALL_STATUS_R(crate::FieldReader); impl STALL_STATUS_R { @@ -35,7 +56,15 @@ impl R { STALL_STATUS_R::new((self.bits & 0x01) != 0) } } -#[doc = "DMA stall status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [stall_status](index.html) module"] +impl W { + #[doc = "Writes raw bits to the register."] + #[inline(always)] + pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { + self.0.bits(bits); + self + } +} +#[doc = "DMA stall status\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [stall_status](index.html) module"] pub struct STALL_STATUS_SPEC; impl crate::RegisterSpec for STALL_STATUS_SPEC { type Ux = u32; @@ -44,6 +73,10 @@ impl crate::RegisterSpec for STALL_STATUS_SPEC { impl crate::Readable for STALL_STATUS_SPEC { type Reader = R; } +#[doc = "`write(|w| ..)` method takes [stall_status::W](W) writer structure"] +impl crate::Writable for STALL_STATUS_SPEC { + type Writer = W; +} #[doc = "`reset()` method sets STALL_STATUS to value 0"] impl crate::Resettable for STALL_STATUS_SPEC { #[inline(always)] diff --git a/src/eth/dma_curr_rx_bufr_addr.rs b/src/eth/dma_curr_rx_bufr_addr.rs index 4425eff..dc479e5 100644 --- a/src/eth/dma_curr_rx_bufr_addr.rs +++ b/src/eth/dma_curr_rx_bufr_addr.rs @@ -57,7 +57,7 @@ impl<'a> CURTBUFAPTR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."] #[inline(always)] pub fn curtbufaptr(&self) -> CURTBUFAPTR_R { - CURTBUFAPTR_R::new((self.bits & 0xffff_ffff) as u32) + CURTBUFAPTR_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_curr_rx_desc.rs b/src/eth/dma_curr_rx_desc.rs index ab76a2f..be651a6 100644 --- a/src/eth/dma_curr_rx_desc.rs +++ b/src/eth/dma_curr_rx_desc.rs @@ -57,7 +57,7 @@ impl<'a> CURRDESAPTR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."] #[inline(always)] pub fn currdesaptr(&self) -> CURRDESAPTR_R { - CURRDESAPTR_R::new((self.bits & 0xffff_ffff) as u32) + CURRDESAPTR_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_curr_tx_bufr_addr.rs b/src/eth/dma_curr_tx_bufr_addr.rs index 788c758..0e5a7c7 100644 --- a/src/eth/dma_curr_tx_bufr_addr.rs +++ b/src/eth/dma_curr_tx_bufr_addr.rs @@ -57,7 +57,7 @@ impl<'a> CURTBUFAPTR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."] #[inline(always)] pub fn curtbufaptr(&self) -> CURTBUFAPTR_R { - CURTBUFAPTR_R::new((self.bits & 0xffff_ffff) as u32) + CURTBUFAPTR_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_curr_tx_desc.rs b/src/eth/dma_curr_tx_desc.rs index 1382b75..358b2dd 100644 --- a/src/eth/dma_curr_tx_desc.rs +++ b/src/eth/dma_curr_tx_desc.rs @@ -57,7 +57,7 @@ impl<'a> CURTDESAPTR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."] #[inline(always)] pub fn curtdesaptr(&self) -> CURTDESAPTR_R { - CURTDESAPTR_R::new((self.bits & 0xffff_ffff) as u32) + CURTDESAPTR_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_rx_desc_list_addr.rs b/src/eth/dma_rx_desc_list_addr.rs index e66f11c..62aa668 100644 --- a/src/eth/dma_rx_desc_list_addr.rs +++ b/src/eth/dma_rx_desc_list_addr.rs @@ -57,7 +57,7 @@ impl<'a> RDESLA_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Start of Receive List"] #[inline(always)] pub fn rdesla(&self) -> RDESLA_R { - RDESLA_R::new((self.bits & 0xffff_ffff) as u32) + RDESLA_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_rx_poll_demand.rs b/src/eth/dma_rx_poll_demand.rs index c49ed7c..4d84f5c 100644 --- a/src/eth/dma_rx_poll_demand.rs +++ b/src/eth/dma_rx_poll_demand.rs @@ -57,7 +57,7 @@ impl<'a> RPD_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Receive Poll Demand (Read Only and Write Trigger)"] #[inline(always)] pub fn rpd(&self) -> RPD_R { - RPD_R::new((self.bits & 0xffff_ffff) as u32) + RPD_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_tx_desc_list_addr.rs b/src/eth/dma_tx_desc_list_addr.rs index 74a6ed2..b2abda2 100644 --- a/src/eth/dma_tx_desc_list_addr.rs +++ b/src/eth/dma_tx_desc_list_addr.rs @@ -57,7 +57,7 @@ impl<'a> TDESLA_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Start of Transmit List"] #[inline(always)] pub fn tdesla(&self) -> TDESLA_R { - TDESLA_R::new((self.bits & 0xffff_ffff) as u32) + TDESLA_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/dma_tx_poll_demand.rs b/src/eth/dma_tx_poll_demand.rs index d96841a..fe773b2 100644 --- a/src/eth/dma_tx_poll_demand.rs +++ b/src/eth/dma_tx_poll_demand.rs @@ -57,7 +57,7 @@ impl<'a> TPD_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Transmit Poll Demand (Read Only and Write Trigger)"] #[inline(always)] pub fn tpd(&self) -> TPD_R { - TPD_R::new((self.bits & 0xffff_ffff) as u32) + TPD_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/mac_addr_l.rs b/src/eth/mac_addr_l.rs index 852c8bb..4e1e365 100644 --- a/src/eth/mac_addr_l.rs +++ b/src/eth/mac_addr_l.rs @@ -53,7 +53,7 @@ impl R { #[doc = "Bits 0:31 - MAC Address0\\[31:0\\]"] #[inline(always)] pub fn addrlo(&self) -> ADDRLO_R { - ADDRLO_R::new((self.bits & 0xffff_ffff) as u32) + ADDRLO_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/rx1024maxoct_gb.rs b/src/eth/rx1024maxoct_gb.rs index 30f8d7f..a97b92c 100644 --- a/src/eth/rx1024maxoct_gb.rs +++ b/src/eth/rx1024maxoct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received with length between 1024 and max size bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx1024maxoct_gb](index.html) module"] diff --git a/src/eth/rx128to255oct_gb.rs b/src/eth/rx128to255oct_gb.rs index 6fe172e..e04d6e5 100644 --- a/src/eth/rx128to255oct_gb.rs +++ b/src/eth/rx128to255oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received with length between 128 and 255 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx128to255oct_gb](index.html) module"] diff --git a/src/eth/rx256to511oct_gb.rs b/src/eth/rx256to511oct_gb.rs index 1d9af65..48533fe 100644 --- a/src/eth/rx256to511oct_gb.rs +++ b/src/eth/rx256to511oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received with length between 256 and 511 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx256to511oct_gb](index.html) module"] diff --git a/src/eth/rx512to1023oct_gb.rs b/src/eth/rx512to1023oct_gb.rs index 91a95ec..381682e 100644 --- a/src/eth/rx512to1023oct_gb.rs +++ b/src/eth/rx512to1023oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received with length between 512 and 1023 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx512to1023oct_gb](index.html) module"] diff --git a/src/eth/rx64octets_gb.rs b/src/eth/rx64octets_gb.rs index 1a363d2..ad8d616 100644 --- a/src/eth/rx64octets_gb.rs +++ b/src/eth/rx64octets_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received with length 64 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx64octets_gb](index.html) module"] diff --git a/src/eth/rx65to127oct_gb.rs b/src/eth/rx65to127oct_gb.rs index eb80dca..ff88bdb 100644 --- a/src/eth/rx65to127oct_gb.rs +++ b/src/eth/rx65to127oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received with length between 65 and 127 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rx65to127oct_gb](index.html) module"] diff --git a/src/eth/rxalignerror.rs b/src/eth/rxalignerror.rs index 586a5e2..3a2083c 100644 --- a/src/eth/rxalignerror.rs +++ b/src/eth/rxalignerror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with alignment error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxalignerror](index.html) module"] diff --git a/src/eth/rxbcastframes_g.rs b/src/eth/rxbcastframes_g.rs index 37ebc88..b831350 100644 --- a/src/eth/rxbcastframes_g.rs +++ b/src/eth/rxbcastframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good broadcast frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxbcastframes_g](index.html) module"] diff --git a/src/eth/rxcrcerror.rs b/src/eth/rxcrcerror.rs index b6efba7..a0c32a1 100644 --- a/src/eth/rxcrcerror.rs +++ b/src/eth/rxcrcerror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with CRC error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxcrcerror](index.html) module"] diff --git a/src/eth/rxctrlframes_g.rs b/src/eth/rxctrlframes_g.rs index 5fdae6c..faa75f7 100644 --- a/src/eth/rxctrlframes_g.rs +++ b/src/eth/rxctrlframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of received good control frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxctrlframes_g](index.html) module"] diff --git a/src/eth/rxfifooverflow.rs b/src/eth/rxfifooverflow.rs index c7f8606..173569d 100644 --- a/src/eth/rxfifooverflow.rs +++ b/src/eth/rxfifooverflow.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of missed received frames because of FIFO overflow\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxfifooverflow](index.html) module"] diff --git a/src/eth/rxframecount_gb.rs b/src/eth/rxframecount_gb.rs index c81a6c4..8084839 100644 --- a/src/eth/rxframecount_gb.rs +++ b/src/eth/rxframecount_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxframecount_gb](index.html) module"] diff --git a/src/eth/rxjabbererror.rs b/src/eth/rxjabbererror.rs index 10e87e0..f8308ab 100644 --- a/src/eth/rxjabbererror.rs +++ b/src/eth/rxjabbererror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of giant frames received with length greater than 1518 bytes and with CRC error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxjabbererror](index.html) module"] diff --git a/src/eth/rxlengtherror.rs b/src/eth/rxlengtherror.rs index e065d01..f9bbcf1 100644 --- a/src/eth/rxlengtherror.rs +++ b/src/eth/rxlengtherror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with length error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxlengtherror](index.html) module"] diff --git a/src/eth/rxmcastframes_g.rs b/src/eth/rxmcastframes_g.rs index 9938e99..3dcb6f5 100644 --- a/src/eth/rxmcastframes_g.rs +++ b/src/eth/rxmcastframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good multicast frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxmcastframes_g](index.html) module"] diff --git a/src/eth/rxoctetcount_g.rs b/src/eth/rxoctetcount_g.rs index f57bbad..f2a72e7 100644 --- a/src/eth/rxoctetcount_g.rs +++ b/src/eth/rxoctetcount_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of bytes"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of bytes received in good frames only\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoctetcount_g](index.html) module"] diff --git a/src/eth/rxoctetcount_gb.rs b/src/eth/rxoctetcount_gb.rs index 7d5e277..2b281d8 100644 --- a/src/eth/rxoctetcount_gb.rs +++ b/src/eth/rxoctetcount_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of bytes"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of bytes received in good and bad frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoctetcount_gb](index.html) module"] diff --git a/src/eth/rxoutrangetype.rs b/src/eth/rxoutrangetype.rs index 18e1d13..17228db 100644 --- a/src/eth/rxoutrangetype.rs +++ b/src/eth/rxoutrangetype.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with length field not equal to the valid frame size\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoutrangetype](index.html) module"] diff --git a/src/eth/rxoversize_g.rs b/src/eth/rxoversize_g.rs index 9fedcb2..8aec4a2 100644 --- a/src/eth/rxoversize_g.rs +++ b/src/eth/rxoversize_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received without errors with length greater than the max size\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxoversize_g](index.html) module"] diff --git a/src/eth/rxpauseframes.rs b/src/eth/rxpauseframes.rs index 28c7d2a..9492097 100644 --- a/src/eth/rxpauseframes.rs +++ b/src/eth/rxpauseframes.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and valid Pause frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxpauseframes](index.html) module"] diff --git a/src/eth/rxrcverror.rs b/src/eth/rxrcverror.rs index 7f170ef..65a2652 100644 --- a/src/eth/rxrcverror.rs +++ b/src/eth/rxrcverror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with Receive error or Frame Extension error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxrcverror](index.html) module"] diff --git a/src/eth/rxrunterror.rs b/src/eth/rxrunterror.rs index 60766fe..bebb487 100644 --- a/src/eth/rxrunterror.rs +++ b/src/eth/rxrunterror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with runt error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxrunterror](index.html) module"] diff --git a/src/eth/rxucastframes_g.rs b/src/eth/rxucastframes_g.rs index dd482f8..3a4c0b7 100644 --- a/src/eth/rxucastframes_g.rs +++ b/src/eth/rxucastframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of received good unicast frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxucastframes_g](index.html) module"] diff --git a/src/eth/rxundersize_g.rs b/src/eth/rxundersize_g.rs index c397a3b..1a89b0a 100644 --- a/src/eth/rxundersize_g.rs +++ b/src/eth/rxundersize_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with length less than 64 bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxundersize_g](index.html) module"] diff --git a/src/eth/rxvlanframes_gb.rs b/src/eth/rxvlanframes_gb.rs index 26eab6e..20927e3 100644 --- a/src/eth/rxvlanframes_gb.rs +++ b/src/eth/rxvlanframes_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good and bad VLAN frames received\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxvlanframes_gb](index.html) module"] diff --git a/src/eth/rxwdogerror.rs b/src/eth/rxwdogerror.rs index 4a78ac0..c95800f 100644 --- a/src/eth/rxwdogerror.rs +++ b/src/eth/rxwdogerror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames received with error because of watchdog timeout error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rxwdogerror](index.html) module"] diff --git a/src/eth/systime_seconds.rs b/src/eth/systime_seconds.rs index fde442c..2c6f690 100644 --- a/src/eth/systime_seconds.rs +++ b/src/eth/systime_seconds.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Timestamp Second"] #[inline(always)] pub fn tss(&self) -> TSS_R { - TSS_R::new((self.bits & 0xffff_ffff) as u32) + TSS_R::new(self.bits as u32) } } #[doc = "Holds the lower 32 bits of the second field of the system time\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [systime_seconds](index.html) module"] diff --git a/src/eth/systime_secsupdat.rs b/src/eth/systime_secsupdat.rs index 3d1fc21..73e58a5 100644 --- a/src/eth/systime_secsupdat.rs +++ b/src/eth/systime_secsupdat.rs @@ -57,7 +57,7 @@ impl<'a> TSS_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Timestamp Second"] #[inline(always)] pub fn tss(&self) -> TSS_R { - TSS_R::new((self.bits & 0xffff_ffff) as u32) + TSS_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/target_time_secs.rs b/src/eth/target_time_secs.rs index 19ce4e1..25d8345 100644 --- a/src/eth/target_time_secs.rs +++ b/src/eth/target_time_secs.rs @@ -57,7 +57,7 @@ impl<'a> TSTR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Target Time Seconds Registe"] #[inline(always)] pub fn tstr(&self) -> TSTR_R { - TSTR_R::new((self.bits & 0xffff_ffff) as u32) + TSTR_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/timestampaddend.rs b/src/eth/timestampaddend.rs index e370b24..b851e22 100644 --- a/src/eth/timestampaddend.rs +++ b/src/eth/timestampaddend.rs @@ -57,7 +57,7 @@ impl<'a> TSAR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Timestamp Addend Register"] #[inline(always)] pub fn tsar(&self) -> TSAR_R { - TSAR_R::new((self.bits & 0xffff_ffff) as u32) + TSAR_R::new(self.bits as u32) } } impl W { diff --git a/src/eth/tx1024maxoct_gb.rs b/src/eth/tx1024maxoct_gb.rs index 9a01e6d..08d7c76 100644 --- a/src/eth/tx1024maxoct_gb.rs +++ b/src/eth/tx1024maxoct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good and bad Frames transmitted with length 1024 to max bytes\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx1024maxoct_gb](index.html) module"] diff --git a/src/eth/tx128to255oct_gb.rs b/src/eth/tx128to255oct_gb.rs index ebb543e..1d0ab04 100644 --- a/src/eth/tx128to255oct_gb.rs +++ b/src/eth/tx128to255oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good and bad Frames transmitted with length 128 to 255\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx128to255oct_gb](index.html) module"] diff --git a/src/eth/tx256to511oct_gb.rs b/src/eth/tx256to511oct_gb.rs index ba6762b..41802b4 100644 --- a/src/eth/tx256to511oct_gb.rs +++ b/src/eth/tx256to511oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good and bad Frames transmitted with length 256 to 511\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx256to511oct_gb](index.html) module"] diff --git a/src/eth/tx512to1023oct_gb.rs b/src/eth/tx512to1023oct_gb.rs index d7a0121..96c4c28 100644 --- a/src/eth/tx512to1023oct_gb.rs +++ b/src/eth/tx512to1023oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good and bad Frames transmitted with length 512 to 1023\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx512to1023oct_gb](index.html) module"] diff --git a/src/eth/tx64oct_gb.rs b/src/eth/tx64oct_gb.rs index beac064..673ab6b 100644 --- a/src/eth/tx64oct_gb.rs +++ b/src/eth/tx64oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good and bad Frames transmitted with length 64\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx64oct_gb](index.html) module"] diff --git a/src/eth/tx65to127oct_gb.rs b/src/eth/tx65to127oct_gb.rs index 2bb4150..13df3b3 100644 --- a/src/eth/tx65to127oct_gb.rs +++ b/src/eth/tx65to127oct_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good and bad Frames transmitted with length 65 to 127\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tx65to127oct_gb](index.html) module"] diff --git a/src/eth/txbcastframe_gb.rs b/src/eth/txbcastframe_gb.rs index 2b249b3..0c2cbc4 100644 --- a/src/eth/txbcastframe_gb.rs +++ b/src/eth/txbcastframe_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC number of good and bad broadcast frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txbcastframe_gb](index.html) module"] diff --git a/src/eth/txbcastframes_g.rs b/src/eth/txbcastframes_g.rs index 2af75d9..7f61a05 100644 --- a/src/eth/txbcastframes_g.rs +++ b/src/eth/txbcastframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good Broadcast Frames Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txbcastframes_g](index.html) module"] diff --git a/src/eth/txcarriererror.rs b/src/eth/txcarriererror.rs index 9d70625..b86b717 100644 --- a/src/eth/txcarriererror.rs +++ b/src/eth/txcarriererror.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of aborted frames because of carrier sense error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txcarriererror](index.html) module"] diff --git a/src/eth/txdeferred.rs b/src/eth/txdeferred.rs index 6bd6348..7d6427e 100644 --- a/src/eth/txdeferred.rs +++ b/src/eth/txdeferred.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of successfully transmitted frames after a deferral\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txdeferred](index.html) module"] diff --git a/src/eth/txexcessdef.rs b/src/eth/txexcessdef.rs index 884f65d..632c3c1 100644 --- a/src/eth/txexcessdef.rs +++ b/src/eth/txexcessdef.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames aborted because of excessive deferral error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txexcessdef](index.html) module"] diff --git a/src/eth/txexesscol.rs b/src/eth/txexesscol.rs index 2fb319b..bae764b 100644 --- a/src/eth/txexesscol.rs +++ b/src/eth/txexesscol.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of aborted frames because of excessive collision errors\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txexesscol](index.html) module"] diff --git a/src/eth/txframecount_g.rs b/src/eth/txframecount_g.rs index fb091c1..eaf74a2 100644 --- a/src/eth/txframecount_g.rs +++ b/src/eth/txframecount_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txframecount_g](index.html) module"] diff --git a/src/eth/txframecount_gb.rs b/src/eth/txframecount_gb.rs index 36e4fa6..37dd748 100644 --- a/src/eth/txframecount_gb.rs +++ b/src/eth/txframecount_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Frame Count Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txframecount_gb](index.html) module"] diff --git a/src/eth/txlanframes_g.rs b/src/eth/txlanframes_g.rs index 7d55d4a..c86ad77 100644 --- a/src/eth/txlanframes_g.rs +++ b/src/eth/txlanframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good VLAN frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txlanframes_g](index.html) module"] diff --git a/src/eth/txlatecol.rs b/src/eth/txlatecol.rs index 4572fac..15fa8b4 100644 --- a/src/eth/txlatecol.rs +++ b/src/eth/txlatecol.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of aborted frames because of late collision error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txlatecol](index.html) module"] diff --git a/src/eth/txmcastframe_gb.rs b/src/eth/txmcastframe_gb.rs index a7032a6..cade60a 100644 --- a/src/eth/txmcastframe_gb.rs +++ b/src/eth/txmcastframe_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC number of good and bad MULTIcast frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txmcastframe_gb](index.html) module"] diff --git a/src/eth/txmcastframes_g.rs b/src/eth/txmcastframes_g.rs index 02d8306..b89ba03 100644 --- a/src/eth/txmcastframes_g.rs +++ b/src/eth/txmcastframes_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Good Multicast Frames Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txmcastframes_g](index.html) module"] diff --git a/src/eth/txmulticol_g.rs b/src/eth/txmulticol_g.rs index 8fe9b1e..f6e2d1d 100644 --- a/src/eth/txmulticol_g.rs +++ b/src/eth/txmulticol_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of successfully transmitted frames after multiple collisions\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txmulticol_g](index.html) module"] diff --git a/src/eth/txoctetcount_g.rs b/src/eth/txoctetcount_g.rs index d156c1f..1931f6a 100644 --- a/src/eth/txoctetcount_g.rs +++ b/src/eth/txoctetcount_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of bytes"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of bytes transmitted frames only in good frames\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txoctetcount_g](index.html) module"] diff --git a/src/eth/txoctetcount_gb.rs b/src/eth/txoctetcount_gb.rs index 9f2dead..4967fa0 100644 --- a/src/eth/txoctetcount_gb.rs +++ b/src/eth/txoctetcount_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of bytes"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Transmit Count\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txoctetcount_gb](index.html) module"] diff --git a/src/eth/txoversize_g.rs b/src/eth/txoversize_g.rs index 782d7df..a810b6b 100644 --- a/src/eth/txoversize_g.rs +++ b/src/eth/txoversize_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of frames transmitted without errors\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txoversize_g](index.html) module"] diff --git a/src/eth/txpauseframes.rs b/src/eth/txpauseframes.rs index ec6aa42..79868be 100644 --- a/src/eth/txpauseframes.rs +++ b/src/eth/txpauseframes.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of good pause frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txpauseframes](index.html) module"] diff --git a/src/eth/txsinglecol_g.rs b/src/eth/txsinglecol_g.rs index 88bf681..77effb1 100644 --- a/src/eth/txsinglecol_g.rs +++ b/src/eth/txsinglecol_g.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC Number of successfully transmitted frames after a single collision\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txsinglecol_g](index.html) module"] diff --git a/src/eth/txucastframe_gb.rs b/src/eth/txucastframe_gb.rs index 27f4c10..2802106 100644 --- a/src/eth/txucastframe_gb.rs +++ b/src/eth/txucastframe_gb.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC number of good and bad unicast frames transmitted\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txucastframe_gb](index.html) module"] diff --git a/src/eth/txundererr.rs b/src/eth/txundererr.rs index 5f9c1f9..7642999 100644 --- a/src/eth/txundererr.rs +++ b/src/eth/txundererr.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Number of frames"] #[inline(always)] pub fn count(&self) -> COUNT_R { - COUNT_R::new((self.bits & 0xffff_ffff) as u32) + COUNT_R::new(self.bits as u32) } } #[doc = "MMC number of frames aborted because of frame underflow error\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txundererr](index.html) module"] diff --git a/src/irq_router/irq_out0.rs b/src/irq_router/irq_out0.rs index 330018b..ed4b686 100644 --- a/src/irq_router/irq_out0.rs +++ b/src/irq_router/irq_out0.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - IRQ_OUT\\[31:0\\]"] #[inline(always)] pub fn irq_out0(&self) -> IRQ_OUT0_R { - IRQ_OUT0_R::new((self.bits & 0xffff_ffff) as u32) + IRQ_OUT0_R::new(self.bits as u32) } } #[doc = "DEBUG IRQ_OUT\\[31:0\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out0](index.html) module"] diff --git a/src/irq_router/irq_out1.rs b/src/irq_router/irq_out1.rs index 582168d..d3fd455 100644 --- a/src/irq_router/irq_out1.rs +++ b/src/irq_router/irq_out1.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - IRQ_OUT\\[63:32\\]"] #[inline(always)] pub fn irq_out1(&self) -> IRQ_OUT1_R { - IRQ_OUT1_R::new((self.bits & 0xffff_ffff) as u32) + IRQ_OUT1_R::new(self.bits as u32) } } #[doc = "DEBUG IRQ_OUT\\[63:32\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out1](index.html) module"] diff --git a/src/irq_router/irq_out2.rs b/src/irq_router/irq_out2.rs index a374056..6cd84af 100644 --- a/src/irq_router/irq_out2.rs +++ b/src/irq_router/irq_out2.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - IRQ_OUT\\[95:64\\]"] #[inline(always)] pub fn irq_out2(&self) -> IRQ_OUT2_R { - IRQ_OUT2_R::new((self.bits & 0xffff_ffff) as u32) + IRQ_OUT2_R::new(self.bits as u32) } } #[doc = "DEBUG IRQ_OUT\\[95:64\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out2](index.html) module"] diff --git a/src/irq_router/irq_out3.rs b/src/irq_router/irq_out3.rs index 997ac2c..aa97d0a 100644 --- a/src/irq_router/irq_out3.rs +++ b/src/irq_router/irq_out3.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - IRQ_OUT\\[127:96\\]"] #[inline(always)] pub fn irq_out3(&self) -> IRQ_OUT3_R { - IRQ_OUT3_R::new((self.bits & 0xffff_ffff) as u32) + IRQ_OUT3_R::new(self.bits as u32) } } #[doc = "DEBUG IRQ_OUT\\[127:96\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out3](index.html) module"] diff --git a/src/irq_router/irq_out4.rs b/src/irq_router/irq_out4.rs index 0717f38..ff91a3a 100644 --- a/src/irq_router/irq_out4.rs +++ b/src/irq_router/irq_out4.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - IRQ_OUT\\[159:128\\]"] #[inline(always)] pub fn irq_out4(&self) -> IRQ_OUT4_R { - IRQ_OUT4_R::new((self.bits & 0xffff_ffff) as u32) + IRQ_OUT4_R::new(self.bits as u32) } } #[doc = "DEBUG IRQ_OUT\\[159:128\\]\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_out4](index.html) module"] diff --git a/src/lib.rs b/src/lib.rs index 2c4ac8c..d64c992 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![doc = "Peripheral access API for VA416XX microcontrollers (generated using svd2rust v0.20.0 (7358e78 2021-12-07))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next] +#![doc = "Peripheral access API for VA416XX microcontrollers (generated using svd2rust v0.20.0 (b9857c5 2021-12-10))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next] svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.\n\n[here]: https://docs.rs/svd2rust/0.20.0/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"] #![deny(const_err)] #![deny(dead_code)] diff --git a/src/sysconfig/refresh_config_l.rs b/src/sysconfig/refresh_config_l.rs index 07c106b..8241ce8 100644 --- a/src/sysconfig/refresh_config_l.rs +++ b/src/sysconfig/refresh_config_l.rs @@ -57,7 +57,7 @@ impl<'a> DIVCOUNT_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Lower 32-bits of the Refresh Rate Counter. Registers are refreshed every DIVCOUNT+1 cycles"] #[inline(always)] pub fn divcount(&self) -> DIVCOUNT_R { - DIVCOUNT_R::new((self.bits & 0xffff_ffff) as u32) + DIVCOUNT_R::new(self.bits as u32) } } impl W { diff --git a/src/trng/ehr_data0.rs b/src/trng/ehr_data0.rs index c450ab8..930ebba 100644 --- a/src/trng/ehr_data0.rs +++ b/src/trng/ehr_data0.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"] #[inline(always)] pub fn ehr_data(&self) -> EHR_DATA_R { - EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32) + EHR_DATA_R::new(self.bits as u32) } } #[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data0](index.html) module"] diff --git a/src/trng/ehr_data1.rs b/src/trng/ehr_data1.rs index ead896d..685f0cb 100644 --- a/src/trng/ehr_data1.rs +++ b/src/trng/ehr_data1.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"] #[inline(always)] pub fn ehr_data(&self) -> EHR_DATA_R { - EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32) + EHR_DATA_R::new(self.bits as u32) } } #[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data1](index.html) module"] diff --git a/src/trng/ehr_data2.rs b/src/trng/ehr_data2.rs index deb4651..ef1298b 100644 --- a/src/trng/ehr_data2.rs +++ b/src/trng/ehr_data2.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"] #[inline(always)] pub fn ehr_data(&self) -> EHR_DATA_R { - EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32) + EHR_DATA_R::new(self.bits as u32) } } #[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data2](index.html) module"] diff --git a/src/trng/ehr_data3.rs b/src/trng/ehr_data3.rs index 1c9406d..7a0462d 100644 --- a/src/trng/ehr_data3.rs +++ b/src/trng/ehr_data3.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"] #[inline(always)] pub fn ehr_data(&self) -> EHR_DATA_R { - EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32) + EHR_DATA_R::new(self.bits as u32) } } #[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data3](index.html) module"] diff --git a/src/trng/ehr_data4.rs b/src/trng/ehr_data4.rs index 5086ef3..7df2057 100644 --- a/src/trng/ehr_data4.rs +++ b/src/trng/ehr_data4.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"] #[inline(always)] pub fn ehr_data(&self) -> EHR_DATA_R { - EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32) + EHR_DATA_R::new(self.bits as u32) } } #[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data4](index.html) module"] diff --git a/src/trng/ehr_data5.rs b/src/trng/ehr_data5.rs index bbe7e2e..f9ba735 100644 --- a/src/trng/ehr_data5.rs +++ b/src/trng/ehr_data5.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - 32 Bits of Entropy Holding Register"] #[inline(always)] pub fn ehr_data(&self) -> EHR_DATA_R { - EHR_DATA_R::new((self.bits & 0xffff_ffff) as u32) + EHR_DATA_R::new(self.bits as u32) } } #[doc = "Entropy Holding Register Data Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ehr_data5](index.html) module"] diff --git a/src/trng/sample_cnt1.rs b/src/trng/sample_cnt1.rs index d557b43..87bade9 100644 --- a/src/trng/sample_cnt1.rs +++ b/src/trng/sample_cnt1.rs @@ -57,7 +57,7 @@ impl<'a> SAMPLE_CNTR1_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Sets the number of clk cycles between two consecutive ring oscillator samples"] #[inline(always)] pub fn sample_cntr1(&self) -> SAMPLE_CNTR1_R { - SAMPLE_CNTR1_R::new((self.bits & 0xffff_ffff) as u32) + SAMPLE_CNTR1_R::new(self.bits as u32) } } impl W { diff --git a/src/watch_dog/wdogintclr.rs b/src/watch_dog/wdogintclr.rs index 95a7481..54806f9 100644 --- a/src/watch_dog/wdogintclr.rs +++ b/src/watch_dog/wdogintclr.rs @@ -57,7 +57,7 @@ impl<'a> CLEAR_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Write any value to clear interrupt"] #[inline(always)] pub fn clear(&self) -> CLEAR_R { - CLEAR_R::new((self.bits & 0xffff_ffff) as u32) + CLEAR_R::new(self.bits as u32) } } impl W { diff --git a/src/watch_dog/wdogload.rs b/src/watch_dog/wdogload.rs index 310d163..6ed7eea 100644 --- a/src/watch_dog/wdogload.rs +++ b/src/watch_dog/wdogload.rs @@ -57,7 +57,7 @@ impl<'a> CNT_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Count to load"] #[inline(always)] pub fn cnt(&self) -> CNT_R { - CNT_R::new((self.bits & 0xffff_ffff) as u32) + CNT_R::new(self.bits as u32) } } impl W { diff --git a/src/watch_dog/wdoglock.rs b/src/watch_dog/wdoglock.rs index 92e7f23..aa9f27f 100644 --- a/src/watch_dog/wdoglock.rs +++ b/src/watch_dog/wdoglock.rs @@ -57,7 +57,7 @@ impl<'a> REG_WR_EN_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { - self.w.bits = (self.w.bits & !0xffff_ffff) | (value as u32 & 0xffff_ffff); + self.w.bits = value as u32; self.w } } @@ -65,7 +65,7 @@ impl R { #[doc = "Bits 0:31 - Register write enable status"] #[inline(always)] pub fn reg_wr_en(&self) -> REG_WR_EN_R { - REG_WR_EN_R::new((self.bits & 0xffff_ffff) as u32) + REG_WR_EN_R::new(self.bits as u32) } } impl W { diff --git a/src/watch_dog/wdogvalue.rs b/src/watch_dog/wdogvalue.rs index 18c388b..838190e 100644 --- a/src/watch_dog/wdogvalue.rs +++ b/src/watch_dog/wdogvalue.rs @@ -32,7 +32,7 @@ impl R { #[doc = "Bits 0:31 - Actual Count"] #[inline(always)] pub fn cnt(&self) -> CNT_R { - CNT_R::new((self.bits & 0xffff_ffff) as u32) + CNT_R::new(self.bits as u32) } } #[doc = "Down Counter Value\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [wdogvalue](index.html) module"]