d1_pac/spi_dbi/
dbi_debug_1.rs1#[doc = "Register `dbi_debug_1` reader"]
2pub type R = crate::R<DBI_DEBUG_1_SPEC>;
3#[doc = "Field `ccnt` reader - "]
4pub type CCNT_R = crate::FieldReader<u16>;
5#[doc = "Field `lcnt` reader - "]
6pub type LCNT_R = crate::FieldReader<u16>;
7impl R {
8 #[doc = "Bits 0:11"]
9 #[inline(always)]
10 pub fn ccnt(&self) -> CCNT_R {
11 CCNT_R::new((self.bits & 0x0fff) as u16)
12 }
13 #[doc = "Bits 16:25"]
14 #[inline(always)]
15 pub fn lcnt(&self) -> LCNT_R {
16 LCNT_R::new(((self.bits >> 16) & 0x03ff) as u16)
17 }
18}
19#[doc = "DBI BEBUG 1 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dbi_debug_1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct DBI_DEBUG_1_SPEC;
21impl crate::RegisterSpec for DBI_DEBUG_1_SPEC {
22 type Ux = u32;
23}
24#[doc = "`read()` method returns [`dbi_debug_1::R`](R) reader structure"]
25impl crate::Readable for DBI_DEBUG_1_SPEC {}
26#[doc = "`reset()` method sets dbi_debug_1 to value 0"]
27impl crate::Resettable for DBI_DEBUG_1_SPEC {
28 const RESET_VALUE: Self::Ux = 0;
29}