cc430f5137 0.1.0

Peripheral access API for CC430F5137 microcontroller
#[doc = "Register `RTCMIN` reader"]
pub type R = crate::R<RtcminSpec>;
#[doc = "Register `RTCMIN` writer"]
pub type W = crate::W<RtcminSpec>;
#[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>;
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)
    }
}
impl W {
    #[doc = "Bit 0 - Real Time Clock Minutes Bit: 0"]
    #[inline(always)]
    pub fn minutes0(&mut self) -> Minutes0W<'_, RtcminSpec> {
        Minutes0W::new(self, 0)
    }
    #[doc = "Bit 1 - Real Time Clock Minutes Bit: 1"]
    #[inline(always)]
    pub fn minutes1(&mut self) -> Minutes1W<'_, RtcminSpec> {
        Minutes1W::new(self, 1)
    }
    #[doc = "Bit 2 - Real Time Clock Minutes Bit: 2"]
    #[inline(always)]
    pub fn minutes2(&mut self) -> Minutes2W<'_, RtcminSpec> {
        Minutes2W::new(self, 2)
    }
    #[doc = "Bit 3 - Real Time Clock Minutes Bit: 3"]
    #[inline(always)]
    pub fn minutes3(&mut self) -> Minutes3W<'_, RtcminSpec> {
        Minutes3W::new(self, 3)
    }
    #[doc = "Bit 4 - Real Time Clock Minutes Bit: 4"]
    #[inline(always)]
    pub fn minutes4(&mut self) -> Minutes4W<'_, RtcminSpec> {
        Minutes4W::new(self, 4)
    }
    #[doc = "Bit 5 - Real Time Clock Minutes Bit: 5"]
    #[inline(always)]
    pub fn minutes5(&mut self) -> Minutes5W<'_, RtcminSpec> {
        Minutes5W::new(self, 5)
    }
    #[doc = "Bit 6 - Real Time Clock Minutes Bit: 6"]
    #[inline(always)]
    pub fn minutes6(&mut self) -> Minutes6W<'_, RtcminSpec> {
        Minutes6W::new(self, 6)
    }
}
#[doc = "Real Time Clock Minutes\n\nYou can [`read`](crate::Reg::read) this register and get [`rtcmin::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtcmin::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RtcminSpec;
impl crate::RegisterSpec for RtcminSpec {
    type Ux = u8;
}
#[doc = "`read()` method returns [`rtcmin::R`](R) reader structure"]
impl crate::Readable for RtcminSpec {}
#[doc = "`write(|w| ..)` method takes [`rtcmin::W`](W) writer structure"]
impl crate::Writable for RtcminSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RTCMIN to value 0"]
impl crate::Resettable for RtcminSpec {}