#[doc = "Register `CMINDEX` reader"]
pub type R = crate::R<CmindexSpec>;
#[doc = "Register `CMINDEX` writer"]
pub type W = crate::W<CmindexSpec>;
#[doc = "Field `SINDEX` reader - SEG Line Index"]
pub type SindexR = crate::FieldReader;
#[doc = "Field `SINDEX` writer - SEG Line Index"]
pub type SindexW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
#[doc = "Field `CINDEX` reader - COM Line Index"]
pub type CindexR = crate::FieldReader;
#[doc = "Field `CINDEX` writer - COM Line Index"]
pub type CindexW<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
    #[doc = "Bits 0:5 - SEG Line Index"]
    #[inline(always)]
    pub fn sindex(&self) -> SindexR {
        SindexR::new((self.bits & 0x3f) as u8)
    }
    #[doc = "Bits 8:10 - COM Line Index"]
    #[inline(always)]
    pub fn cindex(&self) -> CindexR {
        CindexR::new(((self.bits >> 8) & 7) as u8)
    }
}
impl W {
    #[doc = "Bits 0:5 - SEG Line Index"]
    #[inline(always)]
    pub fn sindex(&mut self) -> SindexW<CmindexSpec> {
        SindexW::new(self, 0)
    }
    #[doc = "Bits 8:10 - COM Line Index"]
    #[inline(always)]
    pub fn cindex(&mut self) -> CindexW<CmindexSpec> {
        CindexW::new(self, 8)
    }
}
#[doc = "Character Mapping SEG/COM Index\n\nYou can [`read`](crate::Reg::read) this register and get [`cmindex::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmindex::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CmindexSpec;
impl crate::RegisterSpec for CmindexSpec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`cmindex::R`](R) reader structure"]
impl crate::Readable for CmindexSpec {}
#[doc = "`write(|w| ..)` method takes [`cmindex::W`](W) writer structure"]
impl crate::Writable for CmindexSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
}
#[doc = "`reset()` method sets CMINDEX to value 0"]
impl crate::Resettable for CmindexSpec {
    const RESET_VALUE: u16 = 0;
}
