#[doc = "Register `RTCADAY` reader"]
pub type R = crate::R<RtcadaySpec>;
#[doc = "Register `RTCADAY` writer"]
pub type W = crate::W<RtcadaySpec>;
#[doc = "Field `DAY0` reader - Real Time Clock Day Bit: 0"]
pub type Day0R = crate::BitReader;
#[doc = "Field `DAY0` writer - Real Time Clock Day Bit: 0"]
pub type Day0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DAY1` reader - Real Time Clock Day Bit: 1"]
pub type Day1R = crate::BitReader;
#[doc = "Field `DAY1` writer - Real Time Clock Day Bit: 1"]
pub type Day1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DAY2` reader - Real Time Clock Day Bit: 2"]
pub type Day2R = crate::BitReader;
#[doc = "Field `DAY2` writer - Real Time Clock Day Bit: 2"]
pub type Day2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DAY3` reader - Real Time Clock Day Bit: 3"]
pub type Day3R = crate::BitReader;
#[doc = "Field `DAY3` writer - Real Time Clock Day Bit: 3"]
pub type Day3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DAY4` reader - Real Time Clock Day Bit: 4"]
pub type Day4R = crate::BitReader;
#[doc = "Field `DAY4` writer - Real Time Clock Day Bit: 4"]
pub type Day4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DAY5` reader - Real Time Clock Day Bit: 5"]
pub type Day5R = crate::BitReader;
#[doc = "Field `DAY5` writer - Real Time Clock Day Bit: 5"]
pub type Day5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DAY6` reader - Real Time Clock Day Bit: 6"]
pub type Day6R = crate::BitReader;
#[doc = "Field `DAY6` writer - Real Time Clock Day Bit: 6"]
pub type Day6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RTCAE` reader - Real Time Clock Alarm enable"]
pub type RtcaeR = crate::BitReader;
#[doc = "Field `RTCAE` writer - Real Time Clock Alarm enable"]
pub type RtcaeW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - Real Time Clock Day Bit: 0"]
#[inline(always)]
pub fn day0(&self) -> Day0R {
Day0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Real Time Clock Day Bit: 1"]
#[inline(always)]
pub fn day1(&self) -> Day1R {
Day1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Real Time Clock Day Bit: 2"]
#[inline(always)]
pub fn day2(&self) -> Day2R {
Day2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Real Time Clock Day Bit: 3"]
#[inline(always)]
pub fn day3(&self) -> Day3R {
Day3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Real Time Clock Day Bit: 4"]
#[inline(always)]
pub fn day4(&self) -> Day4R {
Day4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Real Time Clock Day Bit: 5"]
#[inline(always)]
pub fn day5(&self) -> Day5R {
Day5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Real Time Clock Day Bit: 6"]
#[inline(always)]
pub fn day6(&self) -> Day6R {
Day6R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - Real Time Clock Alarm enable"]
#[inline(always)]
pub fn rtcae(&self) -> RtcaeR {
RtcaeR::new(((self.bits >> 7) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - Real Time Clock Day Bit: 0"]
#[inline(always)]
pub fn day0(&mut self) -> Day0W<'_, RtcadaySpec> {
Day0W::new(self, 0)
}
#[doc = "Bit 1 - Real Time Clock Day Bit: 1"]
#[inline(always)]
pub fn day1(&mut self) -> Day1W<'_, RtcadaySpec> {
Day1W::new(self, 1)
}
#[doc = "Bit 2 - Real Time Clock Day Bit: 2"]
#[inline(always)]
pub fn day2(&mut self) -> Day2W<'_, RtcadaySpec> {
Day2W::new(self, 2)
}
#[doc = "Bit 3 - Real Time Clock Day Bit: 3"]
#[inline(always)]
pub fn day3(&mut self) -> Day3W<'_, RtcadaySpec> {
Day3W::new(self, 3)
}
#[doc = "Bit 4 - Real Time Clock Day Bit: 4"]
#[inline(always)]
pub fn day4(&mut self) -> Day4W<'_, RtcadaySpec> {
Day4W::new(self, 4)
}
#[doc = "Bit 5 - Real Time Clock Day Bit: 5"]
#[inline(always)]
pub fn day5(&mut self) -> Day5W<'_, RtcadaySpec> {
Day5W::new(self, 5)
}
#[doc = "Bit 6 - Real Time Clock Day Bit: 6"]
#[inline(always)]
pub fn day6(&mut self) -> Day6W<'_, RtcadaySpec> {
Day6W::new(self, 6)
}
#[doc = "Bit 7 - Real Time Clock Alarm enable"]
#[inline(always)]
pub fn rtcae(&mut self) -> RtcaeW<'_, RtcadaySpec> {
RtcaeW::new(self, 7)
}
}
#[doc = "Real Time Clock Alarm Day\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcaday::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcaday::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcadaySpec;
impl crate::RegisterSpec for RtcadaySpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`rtcaday::R`](R) reader structure"]
impl crate::Readable for RtcadaySpec {}
#[doc = "`write(|w| ..)` method takes [`rtcaday::W`](W) writer structure"]
impl crate::Writable for RtcadaySpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets RTCADAY to value 0"]
impl crate::Resettable for RtcadaySpec {}