atsam3s4a/matrix/
matrix_mcfg0.rs

1#[doc = "Register `MATRIX_MCFG0` reader"]
2pub type R = crate::R<MatrixMcfg0Spec>;
3#[doc = "Register `MATRIX_MCFG0` writer"]
4pub type W = crate::W<MatrixMcfg0Spec>;
5#[doc = "Field `ULBT` reader - Undefined Length Burst Type"]
6pub type UlbtR = crate::FieldReader;
7#[doc = "Field `ULBT` writer - Undefined Length Burst Type"]
8pub type UlbtW<'a, REG> = crate::FieldWriter<'a, REG, 3>;
9impl R {
10    #[doc = "Bits 0:2 - Undefined Length Burst Type"]
11    #[inline(always)]
12    pub fn ulbt(&self) -> UlbtR {
13        UlbtR::new((self.bits & 7) as u8)
14    }
15}
16impl W {
17    #[doc = "Bits 0:2 - Undefined Length Burst Type"]
18    #[inline(always)]
19    #[must_use]
20    pub fn ulbt(&mut self) -> UlbtW<MatrixMcfg0Spec> {
21        UlbtW::new(self, 0)
22    }
23}
24#[doc = "Master Configuration Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`matrix_mcfg0::R`](R).  You can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`matrix_mcfg0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
25pub struct MatrixMcfg0Spec;
26impl crate::RegisterSpec for MatrixMcfg0Spec {
27    type Ux = u32;
28}
29#[doc = "`read()` method returns [`matrix_mcfg0::R`](R) reader structure"]
30impl crate::Readable for MatrixMcfg0Spec {}
31#[doc = "`write(|w| ..)` method takes [`matrix_mcfg0::W`](W) writer structure"]
32impl crate::Writable for MatrixMcfg0Spec {
33    type Safety = crate::Unsafe;
34    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
36}