d1_pac/tcon_lcd0/
lcd_cpu_wr.rs

1#[doc = "Register `lcd_cpu_wr` reader"]
2pub type R = crate::R<LCD_CPU_WR_SPEC>;
3#[doc = "Register `lcd_cpu_wr` writer"]
4pub type W = crate::W<LCD_CPU_WR_SPEC>;
5#[doc = "Field `data_wr` writer - Data write on 8080 bus, launch a write operation on 8080 bus."]
6pub type DATA_WR_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
7impl W {
8    #[doc = "Bits 0:23 - Data write on 8080 bus, launch a write operation on 8080 bus."]
9    #[inline(always)]
10    #[must_use]
11    pub fn data_wr(&mut self) -> DATA_WR_W<LCD_CPU_WR_SPEC> {
12        DATA_WR_W::new(self, 0)
13    }
14    #[doc = r" Writes raw bits to the register."]
15    #[doc = r""]
16    #[doc = r" # Safety"]
17    #[doc = r""]
18    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
19    #[inline(always)]
20    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
21        self.bits = bits;
22        self
23    }
24}
25#[doc = "LCD CPU Panel Write Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lcd_cpu_wr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lcd_cpu_wr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
26pub struct LCD_CPU_WR_SPEC;
27impl crate::RegisterSpec for LCD_CPU_WR_SPEC {
28    type Ux = u32;
29}
30#[doc = "`read()` method returns [`lcd_cpu_wr::R`](R) reader structure"]
31impl crate::Readable for LCD_CPU_WR_SPEC {}
32#[doc = "`write(|w| ..)` method takes [`lcd_cpu_wr::W`](W) writer structure"]
33impl crate::Writable for LCD_CPU_WR_SPEC {
34    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
35    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
36}
37#[doc = "`reset()` method sets lcd_cpu_wr to value 0"]
38impl crate::Resettable for LCD_CPU_WR_SPEC {
39    const RESET_VALUE: Self::Ux = 0;
40}