pub type R = crate::R<DVBUSPULSErs>;
pub type W = crate::W<DVBUSPULSErs>;
pub type DVBUSP_R = crate::FieldReader<u16>;
pub type DVBUSP_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
impl R {
#[inline(always)]
pub fn dvbusp(&self) -> DVBUSP_R {
DVBUSP_R::new((self.bits & 0x0fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DVBUSPULSE")
.field("dvbusp", &self.dvbusp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dvbusp(&mut self) -> DVBUSP_W<DVBUSPULSErs> {
DVBUSP_W::new(self, 0)
}
}
pub struct DVBUSPULSErs;
impl crate::RegisterSpec for DVBUSPULSErs {
type Ux = u32;
}
impl crate::Readable for DVBUSPULSErs {}
impl crate::Writable for DVBUSPULSErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DVBUSPULSErs {
const RESET_VALUE: u32 = 0x05b8;
}