pub type R = crate::R<UR4rs>;
pub type W = crate::W<UR4rs>;
pub type BCM4_ADD1_R = crate::FieldReader<u16>;
pub type BCM4_ADD1_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type MEPAD_1_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn bcm4_add1(&self) -> BCM4_ADD1_R {
BCM4_ADD1_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn mepad_1(&self) -> MEPAD_1_R {
MEPAD_1_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UR4")
.field("bcm4_add1", &self.bcm4_add1())
.field("mepad_1", &self.mepad_1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bcm4_add1(&mut self) -> BCM4_ADD1_W<UR4rs> {
BCM4_ADD1_W::new(self, 0)
}
}
pub struct UR4rs;
impl crate::RegisterSpec for UR4rs {
type Ux = u32;
}
impl crate::Readable for UR4rs {}
impl crate::Writable for UR4rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for UR4rs {}