#[doc = "Register `MASK[%s]` reader"]
pub type R = crate::R<MaskSpec>;
#[doc = "Register `MASK[%s]` writer"]
pub type W = crate::W<MaskSpec>;
#[doc = "Field `MASK` reader - Mask bits."]
pub type MaskR = crate::FieldReader;
#[doc = "Field `MASK` writer - Mask bits."]
pub type MaskW<'a, REG> = crate::FieldWriter<'a, REG, 7>;
impl R {
    #[doc = "Bits 1:7 - Mask bits."]
    #[inline(always)]
    pub fn mask(&self) -> MaskR {
        MaskR::new(((self.bits >> 1) & 0x7f) as u8)
    }
}
impl W {
    #[doc = "Bits 1:7 - Mask bits."]
    #[inline(always)]
    pub fn mask(&mut self) -> MaskW<'_, MaskSpec> {
        MaskW::new(self, 1)
    }
}
#[doc = "I2C Slave address mask register\n\nYou can [`read`](crate::Reg::read) this register and get [`mask::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mask::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MaskSpec;
impl crate::RegisterSpec for MaskSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`mask::R`](R) reader structure"]
impl crate::Readable for MaskSpec {}
#[doc = "`write(|w| ..)` method takes [`mask::W`](W) writer structure"]
impl crate::Writable for MaskSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets MASK[%s] to value 0"]
impl crate::Resettable for MaskSpec {}
