esp32p4/isp/
sharp_ctrl1.rs1#[doc = "Register `SHARP_CTRL1` reader"]
2pub type R = crate::R<SHARP_CTRL1_SPEC>;
3#[doc = "Field `SHARP_GRADIENT_MAX` reader - this field configures sharp max gradient, refresh at the end of each frame end"]
4pub type SHARP_GRADIENT_MAX_R = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:7 - this field configures sharp max gradient, refresh at the end of each frame end"]
7 #[inline(always)]
8 pub fn sharp_gradient_max(&self) -> SHARP_GRADIENT_MAX_R {
9 SHARP_GRADIENT_MAX_R::new((self.bits & 0xff) as u8)
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("SHARP_CTRL1")
16 .field(
17 "sharp_gradient_max",
18 &format_args!("{}", self.sharp_gradient_max().bits()),
19 )
20 .finish()
21 }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<SHARP_CTRL1_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 = "sharp control register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sharp_ctrl1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct SHARP_CTRL1_SPEC;
31impl crate::RegisterSpec for SHARP_CTRL1_SPEC {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [`sharp_ctrl1::R`](R) reader structure"]
35impl crate::Readable for SHARP_CTRL1_SPEC {}
36#[doc = "`reset()` method sets SHARP_CTRL1 to value 0"]
37impl crate::Resettable for SHARP_CTRL1_SPEC {
38 const RESET_VALUE: u32 = 0;
39}