atsamd51p/dsu/
entry0.rs

1#[doc = "Register `ENTRY0` reader"]
2pub type R = crate::R<Entry0Spec>;
3#[doc = "Field `EPRES` reader - Entry Present"]
4pub type EpresR = crate::BitReader;
5#[doc = "Field `FMT` reader - Format"]
6pub type FmtR = crate::BitReader;
7#[doc = "Field `ADDOFF` reader - Address Offset"]
8pub type AddoffR = crate::FieldReader<u32>;
9impl R {
10    #[doc = "Bit 0 - Entry Present"]
11    #[inline(always)]
12    pub fn epres(&self) -> EpresR {
13        EpresR::new((self.bits & 1) != 0)
14    }
15    #[doc = "Bit 1 - Format"]
16    #[inline(always)]
17    pub fn fmt(&self) -> FmtR {
18        FmtR::new(((self.bits >> 1) & 1) != 0)
19    }
20    #[doc = "Bits 12:31 - Address Offset"]
21    #[inline(always)]
22    pub fn addoff(&self) -> AddoffR {
23        AddoffR::new((self.bits >> 12) & 0x000f_ffff)
24    }
25}
26#[doc = "CoreSight ROM Table Entry 0\n\nYou can [`read`](crate::Reg::read) this register and get [`entry0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct Entry0Spec;
28impl crate::RegisterSpec for Entry0Spec {
29    type Ux = u32;
30}
31#[doc = "`read()` method returns [`entry0::R`](R) reader structure"]
32impl crate::Readable for Entry0Spec {}
33#[doc = "`reset()` method sets ENTRY0 to value 0x9f0f_c002"]
34impl crate::Resettable for Entry0Spec {
35    const RESET_VALUE: u32 = 0x9f0f_c002;
36}