msp430f6736 0.1.3

Peripheral access API for MSP430f6736 microcontroller
Documentation
#[doc = "Register `LCDCPCTL1` reader"]
pub struct R(crate::R<LCDCPCTL1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<LCDCPCTL1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<LCDCPCTL1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<LCDCPCTL1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `LCDCPCTL1` writer"]
pub struct W(crate::W<LCDCPCTL1_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<LCDCPCTL1_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<LCDCPCTL1_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<LCDCPCTL1_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `LCDS16` reader - LCD Segment 16 enable."]
pub type LCDS16_R = crate::BitReader<bool>;
#[doc = "Field `LCDS16` writer - LCD Segment 16 enable."]
pub type LCDS16_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 0>;
#[doc = "Field `LCDS17` reader - LCD Segment 17 enable."]
pub type LCDS17_R = crate::BitReader<bool>;
#[doc = "Field `LCDS17` writer - LCD Segment 17 enable."]
pub type LCDS17_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 1>;
#[doc = "Field `LCDS18` reader - LCD Segment 18 enable."]
pub type LCDS18_R = crate::BitReader<bool>;
#[doc = "Field `LCDS18` writer - LCD Segment 18 enable."]
pub type LCDS18_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 2>;
#[doc = "Field `LCDS19` reader - LCD Segment 19 enable."]
pub type LCDS19_R = crate::BitReader<bool>;
#[doc = "Field `LCDS19` writer - LCD Segment 19 enable."]
pub type LCDS19_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 3>;
#[doc = "Field `LCDS20` reader - LCD Segment 20 enable."]
pub type LCDS20_R = crate::BitReader<bool>;
#[doc = "Field `LCDS20` writer - LCD Segment 20 enable."]
pub type LCDS20_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 4>;
#[doc = "Field `LCDS21` reader - LCD Segment 21 enable."]
pub type LCDS21_R = crate::BitReader<bool>;
#[doc = "Field `LCDS21` writer - LCD Segment 21 enable."]
pub type LCDS21_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 5>;
#[doc = "Field `LCDS22` reader - LCD Segment 22 enable."]
pub type LCDS22_R = crate::BitReader<bool>;
#[doc = "Field `LCDS22` writer - LCD Segment 22 enable."]
pub type LCDS22_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 6>;
#[doc = "Field `LCDS23` reader - LCD Segment 23 enable."]
pub type LCDS23_R = crate::BitReader<bool>;
#[doc = "Field `LCDS23` writer - LCD Segment 23 enable."]
pub type LCDS23_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 7>;
#[doc = "Field `LCDS24` reader - LCD Segment 24 enable."]
pub type LCDS24_R = crate::BitReader<bool>;
#[doc = "Field `LCDS24` writer - LCD Segment 24 enable."]
pub type LCDS24_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 8>;
#[doc = "Field `LCDS25` reader - LCD Segment 25 enable."]
pub type LCDS25_R = crate::BitReader<bool>;
#[doc = "Field `LCDS25` writer - LCD Segment 25 enable."]
pub type LCDS25_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 9>;
#[doc = "Field `LCDS26` reader - LCD Segment 26 enable."]
pub type LCDS26_R = crate::BitReader<bool>;
#[doc = "Field `LCDS26` writer - LCD Segment 26 enable."]
pub type LCDS26_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 10>;
#[doc = "Field `LCDS27` reader - LCD Segment 27 enable."]
pub type LCDS27_R = crate::BitReader<bool>;
#[doc = "Field `LCDS27` writer - LCD Segment 27 enable."]
pub type LCDS27_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 11>;
#[doc = "Field `LCDS28` reader - LCD Segment 28 enable."]
pub type LCDS28_R = crate::BitReader<bool>;
#[doc = "Field `LCDS28` writer - LCD Segment 28 enable."]
pub type LCDS28_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 12>;
#[doc = "Field `LCDS29` reader - LCD Segment 29 enable."]
pub type LCDS29_R = crate::BitReader<bool>;
#[doc = "Field `LCDS29` writer - LCD Segment 29 enable."]
pub type LCDS29_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 13>;
#[doc = "Field `LCDS30` reader - LCD Segment 30 enable."]
pub type LCDS30_R = crate::BitReader<bool>;
#[doc = "Field `LCDS30` writer - LCD Segment 30 enable."]
pub type LCDS30_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 14>;
#[doc = "Field `LCDS31` reader - LCD Segment 31 enable."]
pub type LCDS31_R = crate::BitReader<bool>;
#[doc = "Field `LCDS31` writer - LCD Segment 31 enable."]
pub type LCDS31_W<'a> = crate::BitWriter<'a, u16, LCDCPCTL1_SPEC, bool, 15>;
impl R {
    #[doc = "Bit 0 - LCD Segment 16 enable."]
    #[inline(always)]
    pub fn lcds16(&self) -> LCDS16_R {
        LCDS16_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - LCD Segment 17 enable."]
    #[inline(always)]
    pub fn lcds17(&self) -> LCDS17_R {
        LCDS17_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - LCD Segment 18 enable."]
    #[inline(always)]
    pub fn lcds18(&self) -> LCDS18_R {
        LCDS18_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - LCD Segment 19 enable."]
    #[inline(always)]
    pub fn lcds19(&self) -> LCDS19_R {
        LCDS19_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - LCD Segment 20 enable."]
    #[inline(always)]
    pub fn lcds20(&self) -> LCDS20_R {
        LCDS20_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - LCD Segment 21 enable."]
    #[inline(always)]
    pub fn lcds21(&self) -> LCDS21_R {
        LCDS21_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - LCD Segment 22 enable."]
    #[inline(always)]
    pub fn lcds22(&self) -> LCDS22_R {
        LCDS22_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - LCD Segment 23 enable."]
    #[inline(always)]
    pub fn lcds23(&self) -> LCDS23_R {
        LCDS23_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - LCD Segment 24 enable."]
    #[inline(always)]
    pub fn lcds24(&self) -> LCDS24_R {
        LCDS24_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - LCD Segment 25 enable."]
    #[inline(always)]
    pub fn lcds25(&self) -> LCDS25_R {
        LCDS25_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - LCD Segment 26 enable."]
    #[inline(always)]
    pub fn lcds26(&self) -> LCDS26_R {
        LCDS26_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - LCD Segment 27 enable."]
    #[inline(always)]
    pub fn lcds27(&self) -> LCDS27_R {
        LCDS27_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - LCD Segment 28 enable."]
    #[inline(always)]
    pub fn lcds28(&self) -> LCDS28_R {
        LCDS28_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - LCD Segment 29 enable."]
    #[inline(always)]
    pub fn lcds29(&self) -> LCDS29_R {
        LCDS29_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - LCD Segment 30 enable."]
    #[inline(always)]
    pub fn lcds30(&self) -> LCDS30_R {
        LCDS30_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - LCD Segment 31 enable."]
    #[inline(always)]
    pub fn lcds31(&self) -> LCDS31_R {
        LCDS31_R::new(((self.bits >> 15) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - LCD Segment 16 enable."]
    #[inline(always)]
    pub fn lcds16(&mut self) -> LCDS16_W {
        LCDS16_W::new(self)
    }
    #[doc = "Bit 1 - LCD Segment 17 enable."]
    #[inline(always)]
    pub fn lcds17(&mut self) -> LCDS17_W {
        LCDS17_W::new(self)
    }
    #[doc = "Bit 2 - LCD Segment 18 enable."]
    #[inline(always)]
    pub fn lcds18(&mut self) -> LCDS18_W {
        LCDS18_W::new(self)
    }
    #[doc = "Bit 3 - LCD Segment 19 enable."]
    #[inline(always)]
    pub fn lcds19(&mut self) -> LCDS19_W {
        LCDS19_W::new(self)
    }
    #[doc = "Bit 4 - LCD Segment 20 enable."]
    #[inline(always)]
    pub fn lcds20(&mut self) -> LCDS20_W {
        LCDS20_W::new(self)
    }
    #[doc = "Bit 5 - LCD Segment 21 enable."]
    #[inline(always)]
    pub fn lcds21(&mut self) -> LCDS21_W {
        LCDS21_W::new(self)
    }
    #[doc = "Bit 6 - LCD Segment 22 enable."]
    #[inline(always)]
    pub fn lcds22(&mut self) -> LCDS22_W {
        LCDS22_W::new(self)
    }
    #[doc = "Bit 7 - LCD Segment 23 enable."]
    #[inline(always)]
    pub fn lcds23(&mut self) -> LCDS23_W {
        LCDS23_W::new(self)
    }
    #[doc = "Bit 8 - LCD Segment 24 enable."]
    #[inline(always)]
    pub fn lcds24(&mut self) -> LCDS24_W {
        LCDS24_W::new(self)
    }
    #[doc = "Bit 9 - LCD Segment 25 enable."]
    #[inline(always)]
    pub fn lcds25(&mut self) -> LCDS25_W {
        LCDS25_W::new(self)
    }
    #[doc = "Bit 10 - LCD Segment 26 enable."]
    #[inline(always)]
    pub fn lcds26(&mut self) -> LCDS26_W {
        LCDS26_W::new(self)
    }
    #[doc = "Bit 11 - LCD Segment 27 enable."]
    #[inline(always)]
    pub fn lcds27(&mut self) -> LCDS27_W {
        LCDS27_W::new(self)
    }
    #[doc = "Bit 12 - LCD Segment 28 enable."]
    #[inline(always)]
    pub fn lcds28(&mut self) -> LCDS28_W {
        LCDS28_W::new(self)
    }
    #[doc = "Bit 13 - LCD Segment 29 enable."]
    #[inline(always)]
    pub fn lcds29(&mut self) -> LCDS29_W {
        LCDS29_W::new(self)
    }
    #[doc = "Bit 14 - LCD Segment 30 enable."]
    #[inline(always)]
    pub fn lcds30(&mut self) -> LCDS30_W {
        LCDS30_W::new(self)
    }
    #[doc = "Bit 15 - LCD Segment 31 enable."]
    #[inline(always)]
    pub fn lcds31(&mut self) -> LCDS31_W {
        LCDS31_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u16) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "LCD_C Port Control Register 1\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 [lcdcpctl1](index.html) module"]
pub struct LCDCPCTL1_SPEC;
impl crate::RegisterSpec for LCDCPCTL1_SPEC {
    type Ux = u16;
}
#[doc = "`read()` method returns [lcdcpctl1::R](R) reader structure"]
impl crate::Readable for LCDCPCTL1_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [lcdcpctl1::W](W) writer structure"]
impl crate::Writable for LCDCPCTL1_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets LCDCPCTL1 to value 0"]
impl crate::Resettable for LCDCPCTL1_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}