All checks were successful
Rust/va416xx-rs/pipeline/head This commit looks good
Monorepo for Rust support of VA416XX family of radiation hardened MCUs
41 lines
2.1 KiB
Rust
41 lines
2.1 KiB
Rust
#[doc = "Register `DMA_CURR_TX_BUFR_ADDR` reader"]
|
|
pub type R = crate::R<DmaCurrTxBufrAddrSpec>;
|
|
#[doc = "Register `DMA_CURR_TX_BUFR_ADDR` writer"]
|
|
pub type W = crate::W<DmaCurrTxBufrAddrSpec>;
|
|
#[doc = "Field `CURTBUFAPTR` reader - Cleared on Reset. Pointer updated by the DMA during operation."]
|
|
pub type CurtbufaptrR = crate::FieldReader<u32>;
|
|
#[doc = "Field `CURTBUFAPTR` writer - Cleared on Reset. Pointer updated by the DMA during operation."]
|
|
pub type CurtbufaptrW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
|
|
impl R {
|
|
#[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."]
|
|
#[inline(always)]
|
|
pub fn curtbufaptr(&self) -> CurtbufaptrR {
|
|
CurtbufaptrR::new(self.bits)
|
|
}
|
|
}
|
|
impl W {
|
|
#[doc = "Bits 0:31 - Cleared on Reset. Pointer updated by the DMA during operation."]
|
|
#[inline(always)]
|
|
#[must_use]
|
|
pub fn curtbufaptr(&mut self) -> CurtbufaptrW<DmaCurrTxBufrAddrSpec> {
|
|
CurtbufaptrW::new(self, 0)
|
|
}
|
|
}
|
|
#[doc = "Contains the start address of the current Receive Descriptor read by the DMA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dma_curr_tx_bufr_addr::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dma_curr_tx_bufr_addr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
|
pub struct DmaCurrTxBufrAddrSpec;
|
|
impl crate::RegisterSpec for DmaCurrTxBufrAddrSpec {
|
|
type Ux = u32;
|
|
}
|
|
#[doc = "`read()` method returns [`dma_curr_tx_bufr_addr::R`](R) reader structure"]
|
|
impl crate::Readable for DmaCurrTxBufrAddrSpec {}
|
|
#[doc = "`write(|w| ..)` method takes [`dma_curr_tx_bufr_addr::W`](W) writer structure"]
|
|
impl crate::Writable for DmaCurrTxBufrAddrSpec {
|
|
type Safety = crate::Unsafe;
|
|
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
|
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
|
}
|
|
#[doc = "`reset()` method sets DMA_CURR_TX_BUFR_ADDR to value 0"]
|
|
impl crate::Resettable for DmaCurrTxBufrAddrSpec {
|
|
const RESET_VALUE: u32 = 0;
|
|
}
|