#[doc = "Register `LCDCMEMCTL` reader"] pub struct R(crate::R); impl core::ops::Deref for R { type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl From> for R { #[inline(always)] fn from(reader: crate::R) -> Self { R(reader) } } #[doc = "Register `LCDCMEMCTL` writer"] pub struct W(crate::W); impl core::ops::Deref for W { type Target = crate::W; #[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> for W { #[inline(always)] fn from(writer: crate::W) -> Self { W(writer) } } #[doc = "Field `LCDDISP` reader - LCD_C LCD memory registers for display"] pub type LCDDISP_R = crate::BitReader; #[doc = "Field `LCDDISP` writer - LCD_C LCD memory registers for display"] pub type LCDDISP_W<'a> = crate::BitWriter<'a, u16, LCDCMEMCTL_SPEC, bool, 0>; #[doc = "Field `LCDCLRM` reader - LCD_C Clear LCD memory"] pub type LCDCLRM_R = crate::BitReader; #[doc = "Field `LCDCLRM` writer - LCD_C Clear LCD memory"] pub type LCDCLRM_W<'a> = crate::BitWriter<'a, u16, LCDCMEMCTL_SPEC, bool, 1>; #[doc = "Field `LCDCLRBM` reader - LCD_C Clear LCD blinking memory"] pub type LCDCLRBM_R = crate::BitReader; #[doc = "Field `LCDCLRBM` writer - LCD_C Clear LCD blinking memory"] pub type LCDCLRBM_W<'a> = crate::BitWriter<'a, u16, LCDCMEMCTL_SPEC, bool, 2>; impl R { #[doc = "Bit 0 - LCD_C LCD memory registers for display"] #[inline(always)] pub fn lcddisp(&self) -> LCDDISP_R { LCDDISP_R::new((self.bits & 1) != 0) } #[doc = "Bit 1 - LCD_C Clear LCD memory"] #[inline(always)] pub fn lcdclrm(&self) -> LCDCLRM_R { LCDCLRM_R::new(((self.bits >> 1) & 1) != 0) } #[doc = "Bit 2 - LCD_C Clear LCD blinking memory"] #[inline(always)] pub fn lcdclrbm(&self) -> LCDCLRBM_R { LCDCLRBM_R::new(((self.bits >> 2) & 1) != 0) } } impl W { #[doc = "Bit 0 - LCD_C LCD memory registers for display"] #[inline(always)] pub fn lcddisp(&mut self) -> LCDDISP_W { LCDDISP_W::new(self) } #[doc = "Bit 1 - LCD_C Clear LCD memory"] #[inline(always)] pub fn lcdclrm(&mut self) -> LCDCLRM_W { LCDCLRM_W::new(self) } #[doc = "Bit 2 - LCD_C Clear LCD blinking memory"] #[inline(always)] pub fn lcdclrbm(&mut self) -> LCDCLRBM_W { LCDCLRBM_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 memory control register\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 [lcdcmemctl](index.html) module"] pub struct LCDCMEMCTL_SPEC; impl crate::RegisterSpec for LCDCMEMCTL_SPEC { type Ux = u16; } #[doc = "`read()` method returns [lcdcmemctl::R](R) reader structure"] impl crate::Readable for LCDCMEMCTL_SPEC { type Reader = R; } #[doc = "`write(|w| ..)` method takes [lcdcmemctl::W](W) writer structure"] impl crate::Writable for LCDCMEMCTL_SPEC { type Writer = W; } #[doc = "`reset()` method sets LCDCMEMCTL to value 0"] impl crate::Resettable for LCDCMEMCTL_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 } }