pub type R = crate::R<CR2rs>;
pub type W = crate::W<CR2rs>;
pub type USV_R = crate::BitReader;
pub type USV_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn usv(&self) -> USV_R {
USV_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR2").field("usv", &self.usv()).finish()
}
}
impl W {
#[inline(always)]
pub fn usv(&mut self) -> USV_W<CR2rs> {
USV_W::new(self, 10)
}
}
pub struct CR2rs;
impl crate::RegisterSpec for CR2rs {
type Ux = u32;
}
impl crate::Readable for CR2rs {}
impl crate::Writable for CR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CR2rs {}