msp430f6736 0.1.3

Peripheral access API for MSP430f6736 microcontroller
Documentation
#[doc = "Register `RTCMON` reader"]
pub struct R(crate::R<RTCMON_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<RTCMON_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<RTCMON_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<RTCMON_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `RTCMON` writer"]
pub struct W(crate::W<RTCMON_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<RTCMON_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<RTCMON_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<RTCMON_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `MONTH0` reader - Real Time Clock Month Bit: 0"]
pub type MONTH0_R = crate::BitReader<bool>;
#[doc = "Field `MONTH0` writer - Real Time Clock Month Bit: 0"]
pub type MONTH0_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 0>;
#[doc = "Field `MONTH1` reader - Real Time Clock Month Bit: 1"]
pub type MONTH1_R = crate::BitReader<bool>;
#[doc = "Field `MONTH1` writer - Real Time Clock Month Bit: 1"]
pub type MONTH1_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 1>;
#[doc = "Field `MONTH2` reader - Real Time Clock Month Bit: 2"]
pub type MONTH2_R = crate::BitReader<bool>;
#[doc = "Field `MONTH2` writer - Real Time Clock Month Bit: 2"]
pub type MONTH2_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 2>;
#[doc = "Field `MONTH3` reader - Real Time Clock Month Bit: 3"]
pub type MONTH3_R = crate::BitReader<bool>;
#[doc = "Field `MONTH3` writer - Real Time Clock Month Bit: 3"]
pub type MONTH3_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 3>;
#[doc = "Field `MONTH4` reader - Real Time Clock Month Bit: 4"]
pub type MONTH4_R = crate::BitReader<bool>;
#[doc = "Field `MONTH4` writer - Real Time Clock Month Bit: 4"]
pub type MONTH4_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 4>;
#[doc = "Field `MONTH5` reader - Real Time Clock Month Bit: 5"]
pub type MONTH5_R = crate::BitReader<bool>;
#[doc = "Field `MONTH5` writer - Real Time Clock Month Bit: 5"]
pub type MONTH5_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 5>;
#[doc = "Field `MONTH6` reader - Real Time Clock Month Bit: 6"]
pub type MONTH6_R = crate::BitReader<bool>;
#[doc = "Field `MONTH6` writer - Real Time Clock Month Bit: 6"]
pub type MONTH6_W<'a> = crate::BitWriter<'a, u8, RTCMON_SPEC, bool, 6>;
impl R {
    #[doc = "Bit 0 - Real Time Clock Month Bit: 0"]
    #[inline(always)]
    pub fn month0(&self) -> MONTH0_R {
        MONTH0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Real Time Clock Month Bit: 1"]
    #[inline(always)]
    pub fn month1(&self) -> MONTH1_R {
        MONTH1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Real Time Clock Month Bit: 2"]
    #[inline(always)]
    pub fn month2(&self) -> MONTH2_R {
        MONTH2_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Real Time Clock Month Bit: 3"]
    #[inline(always)]
    pub fn month3(&self) -> MONTH3_R {
        MONTH3_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Real Time Clock Month Bit: 4"]
    #[inline(always)]
    pub fn month4(&self) -> MONTH4_R {
        MONTH4_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Real Time Clock Month Bit: 5"]
    #[inline(always)]
    pub fn month5(&self) -> MONTH5_R {
        MONTH5_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Real Time Clock Month Bit: 6"]
    #[inline(always)]
    pub fn month6(&self) -> MONTH6_R {
        MONTH6_R::new(((self.bits >> 6) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Real Time Clock Month Bit: 0"]
    #[inline(always)]
    pub fn month0(&mut self) -> MONTH0_W {
        MONTH0_W::new(self)
    }
    #[doc = "Bit 1 - Real Time Clock Month Bit: 1"]
    #[inline(always)]
    pub fn month1(&mut self) -> MONTH1_W {
        MONTH1_W::new(self)
    }
    #[doc = "Bit 2 - Real Time Clock Month Bit: 2"]
    #[inline(always)]
    pub fn month2(&mut self) -> MONTH2_W {
        MONTH2_W::new(self)
    }
    #[doc = "Bit 3 - Real Time Clock Month Bit: 3"]
    #[inline(always)]
    pub fn month3(&mut self) -> MONTH3_W {
        MONTH3_W::new(self)
    }
    #[doc = "Bit 4 - Real Time Clock Month Bit: 4"]
    #[inline(always)]
    pub fn month4(&mut self) -> MONTH4_W {
        MONTH4_W::new(self)
    }
    #[doc = "Bit 5 - Real Time Clock Month Bit: 5"]
    #[inline(always)]
    pub fn month5(&mut self) -> MONTH5_W {
        MONTH5_W::new(self)
    }
    #[doc = "Bit 6 - Real Time Clock Month Bit: 6"]
    #[inline(always)]
    pub fn month6(&mut self) -> MONTH6_W {
        MONTH6_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Real Time Clock Month\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rtcmon](index.html) module"]
pub struct RTCMON_SPEC;
impl crate::RegisterSpec for RTCMON_SPEC {
    type Ux = u8;
}
#[doc = "`read()` method returns [rtcmon::R](R) reader structure"]
impl crate::Readable for RTCMON_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [rtcmon::W](W) writer structure"]
impl crate::Writable for RTCMON_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets RTCMON to value 0"]
impl crate::Resettable for RTCMON_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}