#[doc = "Register `RTCAHOUR` reader"]
pub type R = crate::R<RtcahourSpec>;
#[doc = "Register `RTCAHOUR` writer"]
pub type W = crate::W<RtcahourSpec>;
#[doc = "Field `HOUR0` reader - Real Time Clock Hour Bit: 0"]
pub type Hour0R = crate::BitReader;
#[doc = "Field `HOUR0` writer - Real Time Clock Hour Bit: 0"]
pub type Hour0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HOUR1` reader - Real Time Clock Hour Bit: 1"]
pub type Hour1R = crate::BitReader;
#[doc = "Field `HOUR1` writer - Real Time Clock Hour Bit: 1"]
pub type Hour1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HOUR2` reader - Real Time Clock Hour Bit: 2"]
pub type Hour2R = crate::BitReader;
#[doc = "Field `HOUR2` writer - Real Time Clock Hour Bit: 2"]
pub type Hour2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HOUR3` reader - Real Time Clock Hour Bit: 3"]
pub type Hour3R = crate::BitReader;
#[doc = "Field `HOUR3` writer - Real Time Clock Hour Bit: 3"]
pub type Hour3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HOUR4` reader - Real Time Clock Hour Bit: 4"]
pub type Hour4R = crate::BitReader;
#[doc = "Field `HOUR4` writer - Real Time Clock Hour Bit: 4"]
pub type Hour4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HOUR5` reader - Real Time Clock Hour Bit: 5"]
pub type Hour5R = crate::BitReader;
#[doc = "Field `HOUR5` writer - Real Time Clock Hour Bit: 5"]
pub type Hour5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HOUR6` reader - Real Time Clock Hour Bit: 6"]
pub type Hour6R = crate::BitReader;
#[doc = "Field `HOUR6` writer - Real Time Clock Hour Bit: 6"]
pub type Hour6W<'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 Hour Bit: 0"]
#[inline(always)]
pub fn hour0(&self) -> Hour0R {
Hour0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Real Time Clock Hour Bit: 1"]
#[inline(always)]
pub fn hour1(&self) -> Hour1R {
Hour1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Real Time Clock Hour Bit: 2"]
#[inline(always)]
pub fn hour2(&self) -> Hour2R {
Hour2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Real Time Clock Hour Bit: 3"]
#[inline(always)]
pub fn hour3(&self) -> Hour3R {
Hour3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Real Time Clock Hour Bit: 4"]
#[inline(always)]
pub fn hour4(&self) -> Hour4R {
Hour4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Real Time Clock Hour Bit: 5"]
#[inline(always)]
pub fn hour5(&self) -> Hour5R {
Hour5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Real Time Clock Hour Bit: 6"]
#[inline(always)]
pub fn hour6(&self) -> Hour6R {
Hour6R::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 Hour Bit: 0"]
#[inline(always)]
pub fn hour0(&mut self) -> Hour0W<'_, RtcahourSpec> {
Hour0W::new(self, 0)
}
#[doc = "Bit 1 - Real Time Clock Hour Bit: 1"]
#[inline(always)]
pub fn hour1(&mut self) -> Hour1W<'_, RtcahourSpec> {
Hour1W::new(self, 1)
}
#[doc = "Bit 2 - Real Time Clock Hour Bit: 2"]
#[inline(always)]
pub fn hour2(&mut self) -> Hour2W<'_, RtcahourSpec> {
Hour2W::new(self, 2)
}
#[doc = "Bit 3 - Real Time Clock Hour Bit: 3"]
#[inline(always)]
pub fn hour3(&mut self) -> Hour3W<'_, RtcahourSpec> {
Hour3W::new(self, 3)
}
#[doc = "Bit 4 - Real Time Clock Hour Bit: 4"]
#[inline(always)]
pub fn hour4(&mut self) -> Hour4W<'_, RtcahourSpec> {
Hour4W::new(self, 4)
}
#[doc = "Bit 5 - Real Time Clock Hour Bit: 5"]
#[inline(always)]
pub fn hour5(&mut self) -> Hour5W<'_, RtcahourSpec> {
Hour5W::new(self, 5)
}
#[doc = "Bit 6 - Real Time Clock Hour Bit: 6"]
#[inline(always)]
pub fn hour6(&mut self) -> Hour6W<'_, RtcahourSpec> {
Hour6W::new(self, 6)
}
#[doc = "Bit 7 - Real Time Clock Alarm enable"]
#[inline(always)]
pub fn rtcae(&mut self) -> RtcaeW<'_, RtcahourSpec> {
RtcaeW::new(self, 7)
}
}
#[doc = "Real Time Clock Alarm Hour\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcahour::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcahour::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcahourSpec;
impl crate::RegisterSpec for RtcahourSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`rtcahour::R`](R) reader structure"]
impl crate::Readable for RtcahourSpec {}
#[doc = "`write(|w| ..)` method takes [`rtcahour::W`](W) writer structure"]
impl crate::Writable for RtcahourSpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets RTCAHOUR to value 0"]
impl crate::Resettable for RtcahourSpec {}