#[doc = "Register `SR` reader"]
pub type R = crate::R<SrSpec>;
#[doc = "Field `ACKUPD` reader - Acknowledge for Update"]
pub type AckupdR = crate::BitReader;
#[doc = "Field `ALARM` reader - Alarm Flag"]
pub type AlarmR = crate::BitReader;
#[doc = "Field `SEC` reader - Second Event"]
pub type SecR = crate::BitReader;
#[doc = "Field `TIMEV` reader - Time Event"]
pub type TimevR = crate::BitReader;
#[doc = "Field `CALEV` reader - Calendar Event"]
pub type CalevR = crate::BitReader;
impl R {
#[doc = "Bit 0 - Acknowledge for Update"]
#[inline(always)]
pub fn ackupd(&self) -> AckupdR {
AckupdR::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Alarm Flag"]
#[inline(always)]
pub fn alarm(&self) -> AlarmR {
AlarmR::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Second Event"]
#[inline(always)]
pub fn sec(&self) -> SecR {
SecR::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Time Event"]
#[inline(always)]
pub fn timev(&self) -> TimevR {
TimevR::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Calendar Event"]
#[inline(always)]
pub fn calev(&self) -> CalevR {
CalevR::new(((self.bits >> 4) & 1) != 0)
}
}
#[doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SrSpec;
impl crate::RegisterSpec for SrSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`sr::R`](R) reader structure"]
impl crate::Readable for SrSpec {}
#[doc = "`reset()` method sets SR to value 0"]
impl crate::Resettable for SrSpec {
const RESET_VALUE: u32 = 0;
}