1#[doc = "Register `ppcntr%s` reader"]
2pub type R = crate::R<PPCNTR_SPEC>;
3#[doc = "Field `pwm_pul_counter_status` reader - On PWM output, reading this register could get the current value of the PWM pulse counter."]
4pub type PWM_PUL_COUNTER_STATUS_R = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - On PWM output, reading this register could get the current value of the PWM pulse counter."]
7 #[inline(always)]
8 pub fn pwm_pul_counter_status(&self) -> PWM_PUL_COUNTER_STATUS_R {
9 PWM_PUL_COUNTER_STATUS_R::new((self.bits & 0xffff) as u16)
10 }
11}
12#[doc = "PWM Pulse Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ppcntr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct PPCNTR_SPEC;
14impl crate::RegisterSpec for PPCNTR_SPEC {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`ppcntr::R`](R) reader structure"]
18impl crate::Readable for PPCNTR_SPEC {}
19#[doc = "`reset()` method sets ppcntr%s to value 0"]
20impl crate::Resettable for PPCNTR_SPEC {
21 const RESET_VALUE: Self::Ux = 0;
22}