d1_pac/ledc/
ledc_data.rs

1#[doc = "Register `ledc_data` writer"]
2pub type W = crate::W<LEDC_DATA_SPEC>;
3impl core::fmt::Debug for crate::generic::Reg<LEDC_DATA_SPEC> {
4    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
5        write!(f, "(not readable)")
6    }
7}
8impl W {
9    #[doc = r" Writes raw bits to the register."]
10    #[doc = r""]
11    #[doc = r" # Safety"]
12    #[doc = r""]
13    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
14    #[inline(always)]
15    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
16        self.bits = bits;
17        self
18    }
19}
20#[doc = "LEDC Data Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ledc_data::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct LEDC_DATA_SPEC;
22impl crate::RegisterSpec for LEDC_DATA_SPEC {
23    type Ux = u32;
24}
25#[doc = "`write(|w| ..)` method takes [`ledc_data::W`](W) writer structure"]
26impl crate::Writable for LEDC_DATA_SPEC {
27    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
28    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
29}
30#[doc = "`reset()` method sets ledc_data to value 0"]
31impl crate::Resettable for LEDC_DATA_SPEC {
32    const RESET_VALUE: Self::Ux = 0;
33}