saml10e16a/dib/
ddevtype.rs1#[doc = "Reader of register DDEVTYPE"]
2pub type R = crate::R<u32, super::DDEVTYPE>;
3#[doc = "Reader of field `MAJOR`"]
4pub type MAJOR_R = crate::R<u8, u8>;
5#[doc = "Reader of field `SUB`"]
6pub type SUB_R = crate::R<u8, u8>;
7impl R {
8 #[doc = "Bits 0:3 - Major type"]
9 #[inline(always)]
10 pub fn major(&self) -> MAJOR_R {
11 MAJOR_R::new((self.bits & 0x0f) as u8)
12 }
13 #[doc = "Bits 4:7 - Sub-type"]
14 #[inline(always)]
15 pub fn sub(&self) -> SUB_R {
16 SUB_R::new(((self.bits >> 4) & 0x0f) as u8)
17 }
18}