#[doc = "Register `lcd_gint1` reader"]
pub type R = crate::R<LCD_GINT1_SPEC>;
#[doc = "Register `lcd_gint1` writer"]
pub type W = crate::W<LCD_GINT1_SPEC>;
#[doc = "Field `lcd_line_int_num` reader - Scan line for LCD line trigger (including inactive lines).\n\nSetting it for the specified line for trigger0.\n\nNote: SY0 is writable only when LINE_TRG0 is disabled."]
pub type LCD_LINE_INT_NUM_R = crate::FieldReader<u16>;
#[doc = "Field `lcd_line_int_num` writer - Scan line for LCD line trigger (including inactive lines).\n\nSetting it for the specified line for trigger0.\n\nNote: SY0 is writable only when LINE_TRG0 is disabled."]
pub type LCD_LINE_INT_NUM_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
impl R {
#[doc = "Bits 16:27 - Scan line for LCD line trigger (including inactive lines).\n\nSetting it for the specified line for trigger0.\n\nNote: SY0 is writable only when LINE_TRG0 is disabled."]
#[inline(always)]
pub fn lcd_line_int_num(&self) -> LCD_LINE_INT_NUM_R {
LCD_LINE_INT_NUM_R::new(((self.bits >> 16) & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 16:27 - Scan line for LCD line trigger (including inactive lines).\n\nSetting it for the specified line for trigger0.\n\nNote: SY0 is writable only when LINE_TRG0 is disabled."]
#[inline(always)]
#[must_use]
pub fn lcd_line_int_num(&mut self) -> LCD_LINE_INT_NUM_W<LCD_GINT1_SPEC> {
LCD_LINE_INT_NUM_W::new(self, 16)
}
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "LCD Global Interrupt Register1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lcd_gint1::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_gint1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LCD_GINT1_SPEC;
impl crate::RegisterSpec for LCD_GINT1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`lcd_gint1::R`](R) reader structure"]
impl crate::Readable for LCD_GINT1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`lcd_gint1::W`](W) writer structure"]
impl crate::Writable for LCD_GINT1_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets lcd_gint1 to value 0"]
impl crate::Resettable for LCD_GINT1_SPEC {
const RESET_VALUE: Self::Ux = 0;
}