#[doc = "Register `RTCAMIN` reader"]
pub type R = crate::R<RtcaminSpec>;
#[doc = "Register `RTCAMIN` writer"]
pub type W = crate::W<RtcaminSpec>;
#[doc = "Field `MINUTES0` reader - Real Time Clock Minutes Bit: 0"]
pub type Minutes0R = crate::BitReader;
#[doc = "Field `MINUTES0` writer - Real Time Clock Minutes Bit: 0"]
pub type Minutes0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MINUTES1` reader - Real Time Clock Minutes Bit: 1"]
pub type Minutes1R = crate::BitReader;
#[doc = "Field `MINUTES1` writer - Real Time Clock Minutes Bit: 1"]
pub type Minutes1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MINUTES2` reader - Real Time Clock Minutes Bit: 2"]
pub type Minutes2R = crate::BitReader;
#[doc = "Field `MINUTES2` writer - Real Time Clock Minutes Bit: 2"]
pub type Minutes2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MINUTES3` reader - Real Time Clock Minutes Bit: 3"]
pub type Minutes3R = crate::BitReader;
#[doc = "Field `MINUTES3` writer - Real Time Clock Minutes Bit: 3"]
pub type Minutes3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MINUTES4` reader - Real Time Clock Minutes Bit: 4"]
pub type Minutes4R = crate::BitReader;
#[doc = "Field `MINUTES4` writer - Real Time Clock Minutes Bit: 4"]
pub type Minutes4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MINUTES5` reader - Real Time Clock Minutes Bit: 5"]
pub type Minutes5R = crate::BitReader;
#[doc = "Field `MINUTES5` writer - Real Time Clock Minutes Bit: 5"]
pub type Minutes5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MINUTES6` reader - Real Time Clock Minutes Bit: 6"]
pub type Minutes6R = crate::BitReader;
#[doc = "Field `MINUTES6` writer - Real Time Clock Minutes Bit: 6"]
pub type Minutes6W<'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 Minutes Bit: 0"]
#[inline(always)]
pub fn minutes0(&self) -> Minutes0R {
Minutes0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Real Time Clock Minutes Bit: 1"]
#[inline(always)]
pub fn minutes1(&self) -> Minutes1R {
Minutes1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Real Time Clock Minutes Bit: 2"]
#[inline(always)]
pub fn minutes2(&self) -> Minutes2R {
Minutes2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Real Time Clock Minutes Bit: 3"]
#[inline(always)]
pub fn minutes3(&self) -> Minutes3R {
Minutes3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Real Time Clock Minutes Bit: 4"]
#[inline(always)]
pub fn minutes4(&self) -> Minutes4R {
Minutes4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Real Time Clock Minutes Bit: 5"]
#[inline(always)]
pub fn minutes5(&self) -> Minutes5R {
Minutes5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Real Time Clock Minutes Bit: 6"]
#[inline(always)]
pub fn minutes6(&self) -> Minutes6R {
Minutes6R::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 Minutes Bit: 0"]
#[inline(always)]
pub fn minutes0(&mut self) -> Minutes0W<'_, RtcaminSpec> {
Minutes0W::new(self, 0)
}
#[doc = "Bit 1 - Real Time Clock Minutes Bit: 1"]
#[inline(always)]
pub fn minutes1(&mut self) -> Minutes1W<'_, RtcaminSpec> {
Minutes1W::new(self, 1)
}
#[doc = "Bit 2 - Real Time Clock Minutes Bit: 2"]
#[inline(always)]
pub fn minutes2(&mut self) -> Minutes2W<'_, RtcaminSpec> {
Minutes2W::new(self, 2)
}
#[doc = "Bit 3 - Real Time Clock Minutes Bit: 3"]
#[inline(always)]
pub fn minutes3(&mut self) -> Minutes3W<'_, RtcaminSpec> {
Minutes3W::new(self, 3)
}
#[doc = "Bit 4 - Real Time Clock Minutes Bit: 4"]
#[inline(always)]
pub fn minutes4(&mut self) -> Minutes4W<'_, RtcaminSpec> {
Minutes4W::new(self, 4)
}
#[doc = "Bit 5 - Real Time Clock Minutes Bit: 5"]
#[inline(always)]
pub fn minutes5(&mut self) -> Minutes5W<'_, RtcaminSpec> {
Minutes5W::new(self, 5)
}
#[doc = "Bit 6 - Real Time Clock Minutes Bit: 6"]
#[inline(always)]
pub fn minutes6(&mut self) -> Minutes6W<'_, RtcaminSpec> {
Minutes6W::new(self, 6)
}
#[doc = "Bit 7 - Real Time Clock Alarm enable"]
#[inline(always)]
pub fn rtcae(&mut self) -> RtcaeW<'_, RtcaminSpec> {
RtcaeW::new(self, 7)
}
}
#[doc = "Real Time Clock Alarm Min\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcamin::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcamin::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcaminSpec;
impl crate::RegisterSpec for RtcaminSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`rtcamin::R`](R) reader structure"]
impl crate::Readable for RtcaminSpec {}
#[doc = "`write(|w| ..)` method takes [`rtcamin::W`](W) writer structure"]
impl crate::Writable for RtcaminSpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets RTCAMIN to value 0"]
impl crate::Resettable for RtcaminSpec {}