atsaml21j17b/oscctrl/
dfllsync.rs

1#[doc = "Register `DFLLSYNC` reader"]
2pub struct R(crate::R<DFLLSYNC_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<DFLLSYNC_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<DFLLSYNC_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<DFLLSYNC_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `DFLLSYNC` writer"]
17pub struct W(crate::W<DFLLSYNC_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<DFLLSYNC_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<DFLLSYNC_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<DFLLSYNC_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `READREQ` writer - Read Request"]
38pub type READREQ_W<'a, const O: u8> = crate::BitWriter<'a, u8, DFLLSYNC_SPEC, bool, O>;
39impl W {
40    #[doc = "Bit 7 - Read Request"]
41    #[inline(always)]
42    #[must_use]
43    pub fn readreq(&mut self) -> READREQ_W<7> {
44        READREQ_W::new(self)
45    }
46    #[doc = "Writes raw bits to the register."]
47    #[inline(always)]
48    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
49        self.0.bits(bits);
50        self
51    }
52}
53#[doc = "DFLL48M Synchronization\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 [dfllsync](index.html) module"]
54pub struct DFLLSYNC_SPEC;
55impl crate::RegisterSpec for DFLLSYNC_SPEC {
56    type Ux = u8;
57}
58#[doc = "`read()` method returns [dfllsync::R](R) reader structure"]
59impl crate::Readable for DFLLSYNC_SPEC {
60    type Reader = R;
61}
62#[doc = "`write(|w| ..)` method takes [dfllsync::W](W) writer structure"]
63impl crate::Writable for DFLLSYNC_SPEC {
64    type Writer = W;
65    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
66    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
67}
68#[doc = "`reset()` method sets DFLLSYNC to value 0"]
69impl crate::Resettable for DFLLSYNC_SPEC {
70    const RESET_VALUE: Self::Ux = 0;
71}