xmc4200/usb0/
dvbuspulse.rs1#[doc = "Register `DVBUSPULSE` reader"]
2pub type R = crate::R<DVBUSPULSE_SPEC>;
3#[doc = "Register `DVBUSPULSE` writer"]
4pub type W = crate::W<DVBUSPULSE_SPEC>;
5#[doc = "Field `DVBUSPulse` reader - Device Vbus Pulsing Time"]
6pub type DVBUSPULSE_R = crate::FieldReader<u16>;
7#[doc = "Field `DVBUSPulse` writer - Device Vbus Pulsing Time"]
8pub type DVBUSPULSE_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
9impl R {
10 #[doc = "Bits 0:11 - Device Vbus Pulsing Time"]
11 #[inline(always)]
12 pub fn dvbuspulse(&self) -> DVBUSPULSE_R {
13 DVBUSPULSE_R::new((self.bits & 0x0fff) as u16)
14 }
15}
16impl W {
17 #[doc = "Bits 0:11 - Device Vbus Pulsing Time"]
18 #[inline(always)]
19 pub fn dvbuspulse(&mut self) -> DVBUSPULSE_W<DVBUSPULSE_SPEC> {
20 DVBUSPULSE_W::new(self, 0)
21 }
22}
23#[doc = "Device VBUS Pulsing Time Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dvbuspulse::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dvbuspulse::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct DVBUSPULSE_SPEC;
25impl crate::RegisterSpec for DVBUSPULSE_SPEC {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`dvbuspulse::R`](R) reader structure"]
29impl crate::Readable for DVBUSPULSE_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`dvbuspulse::W`](W) writer structure"]
31impl crate::Writable for DVBUSPULSE_SPEC {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets DVBUSPULSE to value 0x05b8"]
37impl crate::Resettable for DVBUSPULSE_SPEC {
38 const RESET_VALUE: u32 = 0x05b8;
39}