#[doc = "Register `RTCSEC` reader"]
pub type R = crate::R<RtcsecSpec>;
#[doc = "Register `RTCSEC` writer"]
pub type W = crate::W<RtcsecSpec>;
#[doc = "Field `SECONDS0` reader - Real Time Clock Seconds Bit: 0"]
pub type Seconds0R = crate::BitReader;
#[doc = "Field `SECONDS0` writer - Real Time Clock Seconds Bit: 0"]
pub type Seconds0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SECONDS1` reader - Real Time Clock Seconds Bit: 1"]
pub type Seconds1R = crate::BitReader;
#[doc = "Field `SECONDS1` writer - Real Time Clock Seconds Bit: 1"]
pub type Seconds1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SECONDS2` reader - Real Time Clock Seconds Bit: 2"]
pub type Seconds2R = crate::BitReader;
#[doc = "Field `SECONDS2` writer - Real Time Clock Seconds Bit: 2"]
pub type Seconds2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SECONDS3` reader - Real Time Clock Seconds Bit: 3"]
pub type Seconds3R = crate::BitReader;
#[doc = "Field `SECONDS3` writer - Real Time Clock Seconds Bit: 3"]
pub type Seconds3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SECONDS4` reader - Real Time Clock Seconds Bit: 4"]
pub type Seconds4R = crate::BitReader;
#[doc = "Field `SECONDS4` writer - Real Time Clock Seconds Bit: 4"]
pub type Seconds4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SECONDS5` reader - Real Time Clock Seconds Bit: 5"]
pub type Seconds5R = crate::BitReader;
#[doc = "Field `SECONDS5` writer - Real Time Clock Seconds Bit: 5"]
pub type Seconds5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SECONDS6` reader - Real Time Clock Seconds Bit: 6"]
pub type Seconds6R = crate::BitReader;
#[doc = "Field `SECONDS6` writer - Real Time Clock Seconds Bit: 6"]
pub type Seconds6W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - Real Time Clock Seconds Bit: 0"]
#[inline(always)]
pub fn seconds0(&self) -> Seconds0R {
Seconds0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Real Time Clock Seconds Bit: 1"]
#[inline(always)]
pub fn seconds1(&self) -> Seconds1R {
Seconds1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Real Time Clock Seconds Bit: 2"]
#[inline(always)]
pub fn seconds2(&self) -> Seconds2R {
Seconds2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Real Time Clock Seconds Bit: 3"]
#[inline(always)]
pub fn seconds3(&self) -> Seconds3R {
Seconds3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Real Time Clock Seconds Bit: 4"]
#[inline(always)]
pub fn seconds4(&self) -> Seconds4R {
Seconds4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Real Time Clock Seconds Bit: 5"]
#[inline(always)]
pub fn seconds5(&self) -> Seconds5R {
Seconds5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Real Time Clock Seconds Bit: 6"]
#[inline(always)]
pub fn seconds6(&self) -> Seconds6R {
Seconds6R::new(((self.bits >> 6) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - Real Time Clock Seconds Bit: 0"]
#[inline(always)]
pub fn seconds0(&mut self) -> Seconds0W<'_, RtcsecSpec> {
Seconds0W::new(self, 0)
}
#[doc = "Bit 1 - Real Time Clock Seconds Bit: 1"]
#[inline(always)]
pub fn seconds1(&mut self) -> Seconds1W<'_, RtcsecSpec> {
Seconds1W::new(self, 1)
}
#[doc = "Bit 2 - Real Time Clock Seconds Bit: 2"]
#[inline(always)]
pub fn seconds2(&mut self) -> Seconds2W<'_, RtcsecSpec> {
Seconds2W::new(self, 2)
}
#[doc = "Bit 3 - Real Time Clock Seconds Bit: 3"]
#[inline(always)]
pub fn seconds3(&mut self) -> Seconds3W<'_, RtcsecSpec> {
Seconds3W::new(self, 3)
}
#[doc = "Bit 4 - Real Time Clock Seconds Bit: 4"]
#[inline(always)]
pub fn seconds4(&mut self) -> Seconds4W<'_, RtcsecSpec> {
Seconds4W::new(self, 4)
}
#[doc = "Bit 5 - Real Time Clock Seconds Bit: 5"]
#[inline(always)]
pub fn seconds5(&mut self) -> Seconds5W<'_, RtcsecSpec> {
Seconds5W::new(self, 5)
}
#[doc = "Bit 6 - Real Time Clock Seconds Bit: 6"]
#[inline(always)]
pub fn seconds6(&mut self) -> Seconds6W<'_, RtcsecSpec> {
Seconds6W::new(self, 6)
}
}
#[doc = "Real Time Clock Seconds\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcsec::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcsec::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcsecSpec;
impl crate::RegisterSpec for RtcsecSpec {
type Ux = u8;
}
#[doc = "`read()` method returns [`rtcsec::R`](R) reader structure"]
impl crate::Readable for RtcsecSpec {}
#[doc = "`write(|w| ..)` method takes [`rtcsec::W`](W) writer structure"]
impl crate::Writable for RtcsecSpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RTCSEC to value 0"]
impl crate::Resettable for RtcsecSpec {}