Robin Mueller
5d1740efea
All checks were successful
Rust/va416xx-rs/pipeline/head This commit looks good
Monorepo for Rust support of VA416XX family of radiation hardened MCUs
28 lines
1.2 KiB
Rust
28 lines
1.2 KiB
Rust
#[doc = "Register `WORDS` reader"]
|
|
pub type R = crate::R<WordsSpec>;
|
|
#[doc = "Register `WORDS` writer"]
|
|
pub type W = crate::W<WordsSpec>;
|
|
impl core::fmt::Debug for R {
|
|
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
|
write!(f, "{}", self.bits())
|
|
}
|
|
}
|
|
impl W {}
|
|
#[doc = "Word Count value\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`words::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 [`words::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
|
pub struct WordsSpec;
|
|
impl crate::RegisterSpec for WordsSpec {
|
|
type Ux = u32;
|
|
}
|
|
#[doc = "`read()` method returns [`words::R`](R) reader structure"]
|
|
impl crate::Readable for WordsSpec {}
|
|
#[doc = "`write(|w| ..)` method takes [`words::W`](W) writer structure"]
|
|
impl crate::Writable for WordsSpec {
|
|
type Safety = crate::Unsafe;
|
|
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
|
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
|
}
|
|
#[doc = "`reset()` method sets WORDS to value 0"]
|
|
impl crate::Resettable for WordsSpec {
|
|
const RESET_VALUE: u32 = 0;
|
|
}
|