pub type R = crate::R<DVBUSDISrs>;
pub type W = crate::W<DVBUSDISrs>;
pub type VBUSDT_R = crate::FieldReader<u16>;
pub type VBUSDT_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn vbusdt(&self) -> VBUSDT_R {
VBUSDT_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DVBUSDIS")
.field("vbusdt", &self.vbusdt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn vbusdt(&mut self) -> VBUSDT_W<DVBUSDISrs> {
VBUSDT_W::new(self, 0)
}
}
pub struct DVBUSDISrs;
impl crate::RegisterSpec for DVBUSDISrs {
type Ux = u32;
}
impl crate::Readable for DVBUSDISrs {}
impl crate::Writable for DVBUSDISrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DVBUSDISrs {
const RESET_VALUE: u32 = 0x17d7;
}