#[doc = "Register `RTCDAY` reader"]
pub type R = crate::R<RtcdaySpec>;
#[doc = "Register `RTCDAY` writer"]
pub type W = crate::W<RtcdaySpec>;
#[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>;
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)
}
}
impl W {
#[doc = "Bit 0 - Real Time Clock Day Bit: 0"]
#[inline(always)]
pub fn day0(&mut self) -> Day0W<'_, RtcdaySpec> {
Day0W::new(self, 0)
}
#[doc = "Bit 1 - Real Time Clock Day Bit: 1"]
#[inline(always)]
pub fn day1(&mut self) -> Day1W<'_, RtcdaySpec> {
Day1W::new(self, 1)
}
#[doc = "Bit 2 - Real Time Clock Day Bit: 2"]
#[inline(always)]
pub fn day2(&mut self) -> Day2W<'_, RtcdaySpec> {
Day2W::new(self, 2)
}
#[doc = "Bit 3 - Real Time Clock Day Bit: 3"]
#[inline(always)]
pub fn day3(&mut self) -> Day3W<'_, RtcdaySpec> {
Day3W::new(self, 3)
}
#[doc = "Bit 4 - Real Time Clock Day Bit: 4"]
#[inline(always)]
pub fn day4(&mut self) -> Day4W<'_, RtcdaySpec> {
Day4W::new(self, 4)
}
#[doc = "Bit 5 - Real Time Clock Day Bit: 5"]
#[inline(always)]
pub fn day5(&mut self) -> Day5W<'_, RtcdaySpec> {
Day5W::new(self, 5)
}
#[doc = "Bit 6 - Real Time Clock Day Bit: 6"]
#[inline(always)]
pub fn day6(&mut self) -> Day6W<'_, RtcdaySpec> {
Day6W::new(self, 6)
}
}
#[doc = "Real Time Clock Day\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcday::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcday::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcdaySpec;
impl crate::RegisterSpec for RtcdaySpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`rtcday::R`](R) reader structure"]
impl crate::Readable for RtcdaySpec {}
#[doc = "`write(|w| ..)` method takes [`rtcday::W`](W) writer structure"]
impl crate::Writable for RtcdaySpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RTCDAY to value 0"]
impl crate::Resettable for RtcdaySpec {}