#[doc = "Register `QIMR` reader"]
pub type R = crate::R<QimrSpec>;
#[doc = "Field `IDX` reader - Index"]
pub type IdxR = crate::BitReader;
#[doc = "Field `DIRCHG` reader - Direction Change"]
pub type DirchgR = crate::BitReader;
#[doc = "Field `QERR` reader - Quadrature Error"]
pub type QerrR = crate::BitReader;
impl R {
    #[doc = "Bit 0 - Index"]
    #[inline(always)]
    pub fn idx(&self) -> IdxR {
        IdxR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Direction Change"]
    #[inline(always)]
    pub fn dirchg(&self) -> DirchgR {
        DirchgR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Quadrature Error"]
    #[inline(always)]
    pub fn qerr(&self) -> QerrR {
        QerrR::new(((self.bits >> 2) & 1) != 0)
    }
}
#[doc = "QDEC Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`qimr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct QimrSpec;
impl crate::RegisterSpec for QimrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`qimr::R`](R) reader structure"]
impl crate::Readable for QimrSpec {}
#[doc = "`reset()` method sets QIMR to value 0"]
impl crate::Resettable for QimrSpec {
    const RESET_VALUE: u32 = 0;
}