pub type R = crate::R<ORrs>;
pub type W = crate::W<ORrs>;
pub type RTC_ALARM_TYPE_R = crate::BitReader;
pub type RTC_ALARM_TYPE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RTC_OUT_RMP_R = crate::BitReader;
pub type RTC_OUT_RMP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rtc_alarm_type(&self) -> RTC_ALARM_TYPE_R {
RTC_ALARM_TYPE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rtc_out_rmp(&self) -> RTC_OUT_RMP_R {
RTC_OUT_RMP_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("OR")
.field("rtc_out_rmp", &self.rtc_out_rmp())
.field("rtc_alarm_type", &self.rtc_alarm_type())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rtc_alarm_type(&mut self) -> RTC_ALARM_TYPE_W<ORrs> {
RTC_ALARM_TYPE_W::new(self, 0)
}
#[inline(always)]
pub fn rtc_out_rmp(&mut self) -> RTC_OUT_RMP_W<ORrs> {
RTC_OUT_RMP_W::new(self, 1)
}
}
pub struct ORrs;
impl crate::RegisterSpec for ORrs {
type Ux = u32;
}
impl crate::Readable for ORrs {}
impl crate::Writable for ORrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ORrs {}