atsamd51j/system_control/
actlr.rs

1#[doc = "Register `ACTLR` reader"]
2pub type R = crate::R<ActlrSpec>;
3#[doc = "Register `ACTLR` writer"]
4pub type W = crate::W<ActlrSpec>;
5#[doc = "Field `DISMCYCINT` reader - Disable interruption of LDM/STM instructions"]
6pub type DismcycintR = crate::BitReader;
7#[doc = "Field `DISMCYCINT` writer - Disable interruption of LDM/STM instructions"]
8pub type DismcycintW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `DISDEFWBUF` reader - Disable wruite buffer use during default memory map accesses"]
10pub type DisdefwbufR = crate::BitReader;
11#[doc = "Field `DISDEFWBUF` writer - Disable wruite buffer use during default memory map accesses"]
12pub type DisdefwbufW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `DISFOLD` reader - Disable IT folding"]
14pub type DisfoldR = crate::BitReader;
15#[doc = "Field `DISFOLD` writer - Disable IT folding"]
16pub type DisfoldW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `DISFPCA` reader - Disable automatic update of CONTROL.FPCA"]
18pub type DisfpcaR = crate::BitReader;
19#[doc = "Field `DISFPCA` writer - Disable automatic update of CONTROL.FPCA"]
20pub type DisfpcaW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `DISOOFP` reader - Disable out-of-order FP instructions"]
22pub type DisoofpR = crate::BitReader;
23#[doc = "Field `DISOOFP` writer - Disable out-of-order FP instructions"]
24pub type DisoofpW<'a, REG> = crate::BitWriter<'a, REG>;
25impl R {
26    #[doc = "Bit 0 - Disable interruption of LDM/STM instructions"]
27    #[inline(always)]
28    pub fn dismcycint(&self) -> DismcycintR {
29        DismcycintR::new((self.bits & 1) != 0)
30    }
31    #[doc = "Bit 1 - Disable wruite buffer use during default memory map accesses"]
32    #[inline(always)]
33    pub fn disdefwbuf(&self) -> DisdefwbufR {
34        DisdefwbufR::new(((self.bits >> 1) & 1) != 0)
35    }
36    #[doc = "Bit 2 - Disable IT folding"]
37    #[inline(always)]
38    pub fn disfold(&self) -> DisfoldR {
39        DisfoldR::new(((self.bits >> 2) & 1) != 0)
40    }
41    #[doc = "Bit 8 - Disable automatic update of CONTROL.FPCA"]
42    #[inline(always)]
43    pub fn disfpca(&self) -> DisfpcaR {
44        DisfpcaR::new(((self.bits >> 8) & 1) != 0)
45    }
46    #[doc = "Bit 9 - Disable out-of-order FP instructions"]
47    #[inline(always)]
48    pub fn disoofp(&self) -> DisoofpR {
49        DisoofpR::new(((self.bits >> 9) & 1) != 0)
50    }
51}
52impl W {
53    #[doc = "Bit 0 - Disable interruption of LDM/STM instructions"]
54    #[inline(always)]
55    #[must_use]
56    pub fn dismcycint(&mut self) -> DismcycintW<ActlrSpec> {
57        DismcycintW::new(self, 0)
58    }
59    #[doc = "Bit 1 - Disable wruite buffer use during default memory map accesses"]
60    #[inline(always)]
61    #[must_use]
62    pub fn disdefwbuf(&mut self) -> DisdefwbufW<ActlrSpec> {
63        DisdefwbufW::new(self, 1)
64    }
65    #[doc = "Bit 2 - Disable IT folding"]
66    #[inline(always)]
67    #[must_use]
68    pub fn disfold(&mut self) -> DisfoldW<ActlrSpec> {
69        DisfoldW::new(self, 2)
70    }
71    #[doc = "Bit 8 - Disable automatic update of CONTROL.FPCA"]
72    #[inline(always)]
73    #[must_use]
74    pub fn disfpca(&mut self) -> DisfpcaW<ActlrSpec> {
75        DisfpcaW::new(self, 8)
76    }
77    #[doc = "Bit 9 - Disable out-of-order FP instructions"]
78    #[inline(always)]
79    #[must_use]
80    pub fn disoofp(&mut self) -> DisoofpW<ActlrSpec> {
81        DisoofpW::new(self, 9)
82    }
83}
84#[doc = "Auxiliary Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`actlr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`actlr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
85pub struct ActlrSpec;
86impl crate::RegisterSpec for ActlrSpec {
87    type Ux = u32;
88}
89#[doc = "`read()` method returns [`actlr::R`](R) reader structure"]
90impl crate::Readable for ActlrSpec {}
91#[doc = "`write(|w| ..)` method takes [`actlr::W`](W) writer structure"]
92impl crate::Writable for ActlrSpec {
93    type Safety = crate::Unsafe;
94    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
95    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
96}
97#[doc = "`reset()` method sets ACTLR to value 0"]
98impl crate::Resettable for ActlrSpec {
99    const RESET_VALUE: u32 = 0;
100}