esp32p4/h264_dma/out_ch/
buf_len.rs

1#[doc = "Register `BUF_LEN` reader"]
2pub type R = crate::R<BUF_LEN_SPEC>;
3#[doc = "Field `OUT_CMDFIFO_BUF_LEN_HB` reader - only for debug"]
4pub type OUT_CMDFIFO_BUF_LEN_HB_R = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:12 - only for debug"]
7    #[inline(always)]
8    pub fn out_cmdfifo_buf_len_hb(&self) -> OUT_CMDFIFO_BUF_LEN_HB_R {
9        OUT_CMDFIFO_BUF_LEN_HB_R::new((self.bits & 0x1fff) as u16)
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("BUF_LEN")
16            .field(
17                "out_cmdfifo_buf_len_hb",
18                &format_args!("{}", self.out_cmdfifo_buf_len_hb().bits()),
19            )
20            .finish()
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<BUF_LEN_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 = "TX CHx buf len register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`buf_len::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct BUF_LEN_SPEC;
31impl crate::RegisterSpec for BUF_LEN_SPEC {
32    type Ux = u32;
33}
34#[doc = "`read()` method returns [`buf_len::R`](R) reader structure"]
35impl crate::Readable for BUF_LEN_SPEC {}
36#[doc = "`reset()` method sets BUF_LEN to value 0"]
37impl crate::Resettable for BUF_LEN_SPEC {
38    const RESET_VALUE: u32 = 0;
39}