1#[doc = "Register `CAP_CH%s` reader"]
2pub type R = crate::R<CAP_CH_SPEC>;
3#[doc = "Field `VALUE` reader - Value of last capture on channel 0"]
4pub type VALUE_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - Value of last capture on channel 0"]
7 #[inline(always)]
8 pub fn value(&self) -> VALUE_R {
9 VALUE_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("CAP_CH")
16 .field("value", &self.value())
17 .finish()
18 }
19}
20#[doc = "Value of last capture on channel %s\n\nYou can [`read`](crate::Reg::read) this register and get [`cap_ch::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct CAP_CH_SPEC;
22impl crate::RegisterSpec for CAP_CH_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`cap_ch::R`](R) reader structure"]
26impl crate::Readable for CAP_CH_SPEC {}
27#[doc = "`reset()` method sets CAP_CH%s to value 0"]
28impl crate::Resettable for CAP_CH_SPEC {
29 const RESET_VALUE: u32 = 0;
30}