xmc4500/ppb/
shpr3.rs

1#[doc = "Register `SHPR3` reader"]
2pub type R = crate::R<SHPR3_SPEC>;
3#[doc = "Register `SHPR3` writer"]
4pub type W = crate::W<SHPR3_SPEC>;
5#[doc = "Field `PRI_14` reader - Priority of system handler 14"]
6pub type PRI_14_R = crate::FieldReader;
7#[doc = "Field `PRI_14` writer - Priority of system handler 14"]
8pub type PRI_14_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `PRI_15` reader - Priority of system handler 15"]
10pub type PRI_15_R = crate::FieldReader;
11#[doc = "Field `PRI_15` writer - Priority of system handler 15"]
12pub type PRI_15_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13impl R {
14    #[doc = "Bits 16:23 - Priority of system handler 14"]
15    #[inline(always)]
16    pub fn pri_14(&self) -> PRI_14_R {
17        PRI_14_R::new(((self.bits >> 16) & 0xff) as u8)
18    }
19    #[doc = "Bits 24:31 - Priority of system handler 15"]
20    #[inline(always)]
21    pub fn pri_15(&self) -> PRI_15_R {
22        PRI_15_R::new(((self.bits >> 24) & 0xff) as u8)
23    }
24}
25impl W {
26    #[doc = "Bits 16:23 - Priority of system handler 14"]
27    #[inline(always)]
28    pub fn pri_14(&mut self) -> PRI_14_W<SHPR3_SPEC> {
29        PRI_14_W::new(self, 16)
30    }
31    #[doc = "Bits 24:31 - Priority of system handler 15"]
32    #[inline(always)]
33    pub fn pri_15(&mut self) -> PRI_15_W<SHPR3_SPEC> {
34        PRI_15_W::new(self, 24)
35    }
36}
37#[doc = "System Handler Priority Register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`shpr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`shpr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct SHPR3_SPEC;
39impl crate::RegisterSpec for SHPR3_SPEC {
40    type Ux = u32;
41}
42#[doc = "`read()` method returns [`shpr3::R`](R) reader structure"]
43impl crate::Readable for SHPR3_SPEC {}
44#[doc = "`write(|w| ..)` method takes [`shpr3::W`](W) writer structure"]
45impl crate::Writable for SHPR3_SPEC {
46    type Safety = crate::Unsafe;
47    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49}
50#[doc = "`reset()` method sets SHPR3 to value 0"]
51impl crate::Resettable for SHPR3_SPEC {
52    const RESET_VALUE: u32 = 0;
53}