cc430f5137 0.1.0

Peripheral access API for CC430F5137 microcontroller
#[doc = "Register `RTCMON` reader"]
pub type R = crate::R<RtcmonSpec>;
#[doc = "Register `RTCMON` writer"]
pub type W = crate::W<RtcmonSpec>;
#[doc = "Field `MONTH0` reader - Real Time Clock Month Bit: 0"]
pub type Month0R = crate::BitReader;
#[doc = "Field `MONTH0` writer - Real Time Clock Month Bit: 0"]
pub type Month0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MONTH1` reader - Real Time Clock Month Bit: 1"]
pub type Month1R = crate::BitReader;
#[doc = "Field `MONTH1` writer - Real Time Clock Month Bit: 1"]
pub type Month1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MONTH2` reader - Real Time Clock Month Bit: 2"]
pub type Month2R = crate::BitReader;
#[doc = "Field `MONTH2` writer - Real Time Clock Month Bit: 2"]
pub type Month2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MONTH3` reader - Real Time Clock Month Bit: 3"]
pub type Month3R = crate::BitReader;
#[doc = "Field `MONTH3` writer - Real Time Clock Month Bit: 3"]
pub type Month3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MONTH4` reader - Real Time Clock Month Bit: 4"]
pub type Month4R = crate::BitReader;
#[doc = "Field `MONTH4` writer - Real Time Clock Month Bit: 4"]
pub type Month4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MONTH5` reader - Real Time Clock Month Bit: 5"]
pub type Month5R = crate::BitReader;
#[doc = "Field `MONTH5` writer - Real Time Clock Month Bit: 5"]
pub type Month5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MONTH6` reader - Real Time Clock Month Bit: 6"]
pub type Month6R = crate::BitReader;
#[doc = "Field `MONTH6` writer - Real Time Clock Month Bit: 6"]
pub type Month6W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Real Time Clock Month Bit: 0"]
    #[inline(always)]
    pub fn month0(&self) -> Month0R {
        Month0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Real Time Clock Month Bit: 1"]
    #[inline(always)]
    pub fn month1(&self) -> Month1R {
        Month1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Real Time Clock Month Bit: 2"]
    #[inline(always)]
    pub fn month2(&self) -> Month2R {
        Month2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Real Time Clock Month Bit: 3"]
    #[inline(always)]
    pub fn month3(&self) -> Month3R {
        Month3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Real Time Clock Month Bit: 4"]
    #[inline(always)]
    pub fn month4(&self) -> Month4R {
        Month4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Real Time Clock Month Bit: 5"]
    #[inline(always)]
    pub fn month5(&self) -> Month5R {
        Month5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Real Time Clock Month Bit: 6"]
    #[inline(always)]
    pub fn month6(&self) -> Month6R {
        Month6R::new(((self.bits >> 6) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Real Time Clock Month Bit: 0"]
    #[inline(always)]
    pub fn month0(&mut self) -> Month0W<'_, RtcmonSpec> {
        Month0W::new(self, 0)
    }
    #[doc = "Bit 1 - Real Time Clock Month Bit: 1"]
    #[inline(always)]
    pub fn month1(&mut self) -> Month1W<'_, RtcmonSpec> {
        Month1W::new(self, 1)
    }
    #[doc = "Bit 2 - Real Time Clock Month Bit: 2"]
    #[inline(always)]
    pub fn month2(&mut self) -> Month2W<'_, RtcmonSpec> {
        Month2W::new(self, 2)
    }
    #[doc = "Bit 3 - Real Time Clock Month Bit: 3"]
    #[inline(always)]
    pub fn month3(&mut self) -> Month3W<'_, RtcmonSpec> {
        Month3W::new(self, 3)
    }
    #[doc = "Bit 4 - Real Time Clock Month Bit: 4"]
    #[inline(always)]
    pub fn month4(&mut self) -> Month4W<'_, RtcmonSpec> {
        Month4W::new(self, 4)
    }
    #[doc = "Bit 5 - Real Time Clock Month Bit: 5"]
    #[inline(always)]
    pub fn month5(&mut self) -> Month5W<'_, RtcmonSpec> {
        Month5W::new(self, 5)
    }
    #[doc = "Bit 6 - Real Time Clock Month Bit: 6"]
    #[inline(always)]
    pub fn month6(&mut self) -> Month6W<'_, RtcmonSpec> {
        Month6W::new(self, 6)
    }
}
#[doc = "Real Time Clock Month\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcmon::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcmon::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcmonSpec;
impl crate::RegisterSpec for RtcmonSpec {
    type Ux = u8;
}
#[doc = "`read()` method returns [`rtcmon::R`](R) reader structure"]
impl crate::Readable for RtcmonSpec {}
#[doc = "`write(|w| ..)` method takes [`rtcmon::W`](W) writer structure"]
impl crate::Writable for RtcmonSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RTCMON to value 0"]
impl crate::Resettable for RtcmonSpec {}