atsam3s2c/pwm/
cdtyupd3.rs1#[doc = "Register `CDTYUPD3` writer"]
2pub type W = crate::W<Cdtyupd3Spec>;
3#[doc = "Field `CDTYUPD` writer - Channel Duty-Cycle Update"]
4pub type CdtyupdW<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
5impl W {
6 #[doc = "Bits 0:23 - Channel Duty-Cycle Update"]
7 #[inline(always)]
8 #[must_use]
9 pub fn cdtyupd(&mut self) -> CdtyupdW<Cdtyupd3Spec> {
10 CdtyupdW::new(self, 0)
11 }
12}
13#[doc = "PWM Channel Duty Cycle Update Register (ch_num = 3)\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cdtyupd3::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct Cdtyupd3Spec;
15impl crate::RegisterSpec for Cdtyupd3Spec {
16 type Ux = u32;
17}
18#[doc = "`write(|w| ..)` method takes [`cdtyupd3::W`](W) writer structure"]
19impl crate::Writable for Cdtyupd3Spec {
20 type Safety = crate::Unsafe;
21 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
22 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
23}