atsamd11c/sysctrl/
dfllsync.rs

1#[doc = "Register `DFLLSYNC` reader"]
2pub type R = crate::R<DfllsyncSpec>;
3#[doc = "Register `DFLLSYNC` writer"]
4pub type W = crate::W<DfllsyncSpec>;
5#[doc = "Field `READREQ` writer - Read Request"]
6pub type ReadreqW<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8    #[doc = "Bit 7 - Read Request"]
9    #[inline(always)]
10    #[must_use]
11    pub fn readreq(&mut self) -> ReadreqW<DfllsyncSpec> {
12        ReadreqW::new(self, 7)
13    }
14}
15#[doc = "DFLL48M Synchronization\n\nYou can [`read`](crate::Reg::read) this register and get [`dfllsync::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dfllsync::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
16pub struct DfllsyncSpec;
17impl crate::RegisterSpec for DfllsyncSpec {
18    type Ux = u8;
19}
20#[doc = "`read()` method returns [`dfllsync::R`](R) reader structure"]
21impl crate::Readable for DfllsyncSpec {}
22#[doc = "`write(|w| ..)` method takes [`dfllsync::W`](W) writer structure"]
23impl crate::Writable for DfllsyncSpec {
24    type Safety = crate::Unsafe;
25    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
27}
28#[doc = "`reset()` method sets DFLLSYNC to value 0"]
29impl crate::Resettable for DfllsyncSpec {
30    const RESET_VALUE: u8 = 0;
31}