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