#[doc = "Register `MATRIX_PRAS4` reader"] pub type R = crate::R<MatrixPras4Spec>; #[doc = "Register `MATRIX_PRAS4` writer"] pub type W = crate::W<MatrixPras4Spec>; #[doc = "Field `M0PR` reader - Master 0 Priority"] pub type M0prR = crate::FieldReader; #[doc = "Field `M0PR` writer - Master 0 Priority"] pub type M0prW<'a, REG> = crate::FieldWriter<'a, REG, 2>; #[doc = "Field `M1PR` reader - Master 1 Priority"] pub type M1prR = crate::FieldReader; #[doc = "Field `M1PR` writer - Master 1 Priority"] pub type M1prW<'a, REG> = crate::FieldWriter<'a, REG, 2>; #[doc = "Field `M2PR` reader - Master 2 Priority"] pub type M2prR = crate::FieldReader; #[doc = "Field `M2PR` writer - Master 2 Priority"] pub type M2prW<'a, REG> = crate::FieldWriter<'a, REG, 2>; #[doc = "Field `M3PR` reader - Master 3 Priority"] pub type M3prR = crate::FieldReader; #[doc = "Field `M3PR` writer - Master 3 Priority"] pub type M3prW<'a, REG> = crate::FieldWriter<'a, REG, 2>; #[doc = "Field `M4PR` reader - Master 4 Priority"] pub type M4prR = crate::FieldReader; #[doc = "Field `M4PR` writer - Master 4 Priority"] pub type M4prW<'a, REG> = crate::FieldWriter<'a, REG, 2>; #[doc = "Field `M5PR` reader - Master 5 Priority"] pub type M5prR = crate::FieldReader; #[doc = "Field `M5PR` writer - Master 5 Priority"] pub type M5prW<'a, REG> = crate::FieldWriter<'a, REG, 2>; impl R { #[doc = "Bits 0:1 - Master 0 Priority"] #[inline(always)] pub fn m0pr(&self) -> M0prR { M0prR::new((self.bits & 3) as u8) } #[doc = "Bits 4:5 - Master 1 Priority"] #[inline(always)] pub fn m1pr(&self) -> M1prR { M1prR::new(((self.bits >> 4) & 3) as u8) } #[doc = "Bits 8:9 - Master 2 Priority"] #[inline(always)] pub fn m2pr(&self) -> M2prR { M2prR::new(((self.bits >> 8) & 3) as u8) } #[doc = "Bits 12:13 - Master 3 Priority"] #[inline(always)] pub fn m3pr(&self) -> M3prR { M3prR::new(((self.bits >> 12) & 3) as u8) } #[doc = "Bits 16:17 - Master 4 Priority"] #[inline(always)] pub fn m4pr(&self) -> M4prR { M4prR::new(((self.bits >> 16) & 3) as u8) } #[doc = "Bits 20:21 - Master 5 Priority"] #[inline(always)] pub fn m5pr(&self) -> M5prR { M5prR::new(((self.bits >> 20) & 3) as u8) } } impl W { #[doc = "Bits 0:1 - Master 0 Priority"] #[inline(always)] #[must_use] pub fn m0pr(&mut self) -> M0prW<MatrixPras4Spec> { M0prW::new(self, 0) } #[doc = "Bits 4:5 - Master 1 Priority"] #[inline(always)] #[must_use] pub fn m1pr(&mut self) -> M1prW<MatrixPras4Spec> { M1prW::new(self, 4) } #[doc = "Bits 8:9 - Master 2 Priority"] #[inline(always)] #[must_use] pub fn m2pr(&mut self) -> M2prW<MatrixPras4Spec> { M2prW::new(self, 8) } #[doc = "Bits 12:13 - Master 3 Priority"] #[inline(always)] #[must_use] pub fn m3pr(&mut self) -> M3prW<MatrixPras4Spec> { M3prW::new(self, 12) } #[doc = "Bits 16:17 - Master 4 Priority"] #[inline(always)] #[must_use] pub fn m4pr(&mut self) -> M4prW<MatrixPras4Spec> { M4prW::new(self, 16) } #[doc = "Bits 20:21 - Master 5 Priority"] #[inline(always)] #[must_use] pub fn m5pr(&mut self) -> M5prW<MatrixPras4Spec> { M5prW::new(self, 20) } } #[doc = "Priority Register A for Slave 4\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`matrix_pras4::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 [`matrix_pras4::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MatrixPras4Spec; impl crate::RegisterSpec for MatrixPras4Spec { type Ux = u32; } #[doc = "`read()` method returns [`matrix_pras4::R`](R) reader structure"] impl crate::Readable for MatrixPras4Spec {} #[doc = "`write(|w| ..)` method takes [`matrix_pras4::W`](W) writer structure"] impl crate::Writable for MatrixPras4Spec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets MATRIX_PRAS4 to value 0"] impl crate::Resettable for MatrixPras4Spec { const RESET_VALUE: u32 = 0; }