#[doc = "Register `LPENH` reader"]
pub type R = crate::R<LpenhSpec>;
#[doc = "Register `LPENH` writer"]
pub type W = crate::W<LpenhSpec>;
#[doc = "Field `LPEN` reader - LCD Pin Enable"]
pub type LpenR = crate::FieldReader<u32>;
#[doc = "Field `LPEN` writer - LCD Pin Enable"]
pub type LpenW<'a, REG> = crate::FieldWriter<'a, REG, 20, u32>;
impl R {
    #[doc = "Bits 0:19 - LCD Pin Enable"]
    #[inline(always)]
    pub fn lpen(&self) -> LpenR {
        LpenR::new(self.bits & 0x000f_ffff)
    }
}
impl W {
    #[doc = "Bits 0:19 - LCD Pin Enable"]
    #[inline(always)]
    pub fn lpen(&mut self) -> LpenW<LpenhSpec> {
        LpenW::new(self, 0)
    }
}
#[doc = "LCD Pin Enable High\n\nYou can [`read`](crate::Reg::read) this register and get [`lpenh::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lpenh::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LpenhSpec;
impl crate::RegisterSpec for LpenhSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`lpenh::R`](R) reader structure"]
impl crate::Readable for LpenhSpec {}
#[doc = "`write(|w| ..)` method takes [`lpenh::W`](W) writer structure"]
impl crate::Writable for LpenhSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets LPENH to value 0"]
impl crate::Resettable for LpenhSpec {
    const RESET_VALUE: u32 = 0;
}
