esp32p4/jpeg/
dht_totlen_dc0.rs

1#[doc = "Register `DHT_TOTLEN_DC0` reader"]
2pub type R = crate::R<DHT_TOTLEN_DC0_SPEC>;
3#[doc = "Field `DHT_TOTLEN_DC0` reader - write the numbers of 1~n codeword length sum from 1~16 of dc0 table"]
4pub type DHT_TOTLEN_DC0_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - write the numbers of 1~n codeword length sum from 1~16 of dc0 table"]
7    #[inline(always)]
8    pub fn dht_totlen_dc0(&self) -> DHT_TOTLEN_DC0_R {
9        DHT_TOTLEN_DC0_R::new(self.bits)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("DHT_TOTLEN_DC0")
16            .field(
17                "dht_totlen_dc0",
18                &format_args!("{}", self.dht_totlen_dc0().bits()),
19            )
20            .finish()
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<DHT_TOTLEN_DC0_SPEC> {
25    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
26        core::fmt::Debug::fmt(&self.read(), f)
27    }
28}
29#[doc = "Trace and Debug registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dht_totlen_dc0::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct DHT_TOTLEN_DC0_SPEC;
31impl crate::RegisterSpec for DHT_TOTLEN_DC0_SPEC {
32    type Ux = u32;
33}
34#[doc = "`read()` method returns [`dht_totlen_dc0::R`](R) reader structure"]
35impl crate::Readable for DHT_TOTLEN_DC0_SPEC {}
36#[doc = "`reset()` method sets DHT_TOTLEN_DC0 to value 0"]
37impl crate::Resettable for DHT_TOTLEN_DC0_SPEC {
38    const RESET_VALUE: u32 = 0;
39}