esp32p4/jpeg/
t0qnr.rs

1#[doc = "Register `T0QNR` reader"]
2pub type R = crate::R<T0QNR_SPEC>;
3#[doc = "Field `T0_QNR_VAL` reader - write this reg to configure 64 quantization coefficient in t0 table"]
4pub type T0_QNR_VAL_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - write this reg to configure 64 quantization coefficient in t0 table"]
7    #[inline(always)]
8    pub fn t0_qnr_val(&self) -> T0_QNR_VAL_R {
9        T0_QNR_VAL_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("T0QNR")
16            .field("t0_qnr_val", &format_args!("{}", self.t0_qnr_val().bits()))
17            .finish()
18    }
19}
20#[cfg(feature = "impl-register-debug")]
21impl core::fmt::Debug for crate::generic::Reg<T0QNR_SPEC> {
22    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
23        core::fmt::Debug::fmt(&self.read(), f)
24    }
25}
26#[doc = "Control and configuration registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`t0qnr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct T0QNR_SPEC;
28impl crate::RegisterSpec for T0QNR_SPEC {
29    type Ux = u32;
30}
31#[doc = "`read()` method returns [`t0qnr::R`](R) reader structure"]
32impl crate::Readable for T0QNR_SPEC {}
33#[doc = "`reset()` method sets T0QNR to value 0"]
34impl crate::Resettable for T0QNR_SPEC {
35    const RESET_VALUE: u32 = 0;
36}