pub type R = crate::R<CVRrs>;
pub type W = crate::W<CVRrs>;
pub type CURRENT_R = crate::FieldReader<u32>;
pub type CURRENT_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
impl R {
#[inline(always)]
pub fn current(&self) -> CURRENT_R {
CURRENT_R::new(self.bits & 0x00ff_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CVR")
.field("current", &self.current())
.finish()
}
}
impl W {
#[inline(always)]
pub fn current(&mut self) -> CURRENT_W<CVRrs> {
CURRENT_W::new(self, 0)
}
}
pub struct CVRrs;
impl crate::RegisterSpec for CVRrs {
type Ux = u32;
}
impl crate::Readable for CVRrs {}
impl crate::Writable for CVRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CVRrs {}