///Register `MPCBB1_PRIVCFGR%s` reader
pub type R = crate::R<MPCBB1_PRIVCFGRrs>;
///Register `MPCBB1_PRIVCFGR%s` writer
pub type W = crate::W<MPCBB1_PRIVCFGRrs>;
///Field `PRIV(0-31)` reader - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
pub type PRIV_R = crate::BitReader;
///Field `PRIV(0-31)` writer - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
pub type PRIV_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    ///
    ///<div class="warning">`n` is number of field in register. `n == 0` corresponds to `PRIV0` field.</div>
    #[inline(always)]
    pub fn priv_(&self, n: u8) -> PRIV_R {
        #[allow(clippy::no_effect)] [(); 32][n as usize];
        PRIV_R::new(((self.bits >> n) & 1) != 0)
    }
    ///Iterator for array of:
    ///Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv__iter(&self) -> impl Iterator<Item = PRIV_R> + '_ {
        (0..32).map(move |n| PRIV_R::new(((self.bits >> n) & 1) != 0))
    }
    ///Bit 0 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv0(&self) -> PRIV_R {
        PRIV_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv1(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv2(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv3(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv4(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv5(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv6(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv7(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 8 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv8(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv9(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 9) & 1) != 0)
    }
    ///Bit 10 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv10(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv11(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bit 12 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv12(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 12) & 1) != 0)
    }
    ///Bit 13 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv13(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv14(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv15(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bit 16 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv16(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv17(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv18(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 18) & 1) != 0)
    }
    ///Bit 19 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv19(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 19) & 1) != 0)
    }
    ///Bit 20 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv20(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 20) & 1) != 0)
    }
    ///Bit 21 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv21(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 21) & 1) != 0)
    }
    ///Bit 22 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv22(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 22) & 1) != 0)
    }
    ///Bit 23 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv23(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 23) & 1) != 0)
    }
    ///Bit 24 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv24(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 24) & 1) != 0)
    }
    ///Bit 25 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv25(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 25) & 1) != 0)
    }
    ///Bit 26 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv26(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 26) & 1) != 0)
    }
    ///Bit 27 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv27(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 27) & 1) != 0)
    }
    ///Bit 28 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv28(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 28) & 1) != 0)
    }
    ///Bit 29 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv29(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 29) & 1) != 0)
    }
    ///Bit 30 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv30(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 30) & 1) != 0)
    }
    ///Bit 31 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv31(&self) -> PRIV_R {
        PRIV_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("MPCBB1_PRIVCFGR")
            .field("priv0", &self.priv0())
            .field("priv1", &self.priv1())
            .field("priv2", &self.priv2())
            .field("priv3", &self.priv3())
            .field("priv4", &self.priv4())
            .field("priv5", &self.priv5())
            .field("priv6", &self.priv6())
            .field("priv7", &self.priv7())
            .field("priv8", &self.priv8())
            .field("priv9", &self.priv9())
            .field("priv10", &self.priv10())
            .field("priv11", &self.priv11())
            .field("priv12", &self.priv12())
            .field("priv13", &self.priv13())
            .field("priv14", &self.priv14())
            .field("priv15", &self.priv15())
            .field("priv16", &self.priv16())
            .field("priv17", &self.priv17())
            .field("priv18", &self.priv18())
            .field("priv19", &self.priv19())
            .field("priv20", &self.priv20())
            .field("priv21", &self.priv21())
            .field("priv22", &self.priv22())
            .field("priv23", &self.priv23())
            .field("priv24", &self.priv24())
            .field("priv25", &self.priv25())
            .field("priv26", &self.priv26())
            .field("priv27", &self.priv27())
            .field("priv28", &self.priv28())
            .field("priv29", &self.priv29())
            .field("priv30", &self.priv30())
            .field("priv31", &self.priv31())
            .finish()
    }
}
impl W {
    ///Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    ///
    ///<div class="warning">`n` is number of field in register. `n == 0` corresponds to `PRIV0` field.</div>
    #[inline(always)]
    pub fn priv_(&mut self, n: u8) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        #[allow(clippy::no_effect)] [(); 32][n as usize];
        PRIV_W::new(self, n)
    }
    ///Bit 0 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv0(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 0)
    }
    ///Bit 1 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv1(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 1)
    }
    ///Bit 2 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv2(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 2)
    }
    ///Bit 3 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv3(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 3)
    }
    ///Bit 4 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv4(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 4)
    }
    ///Bit 5 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv5(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 5)
    }
    ///Bit 6 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv6(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 6)
    }
    ///Bit 7 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv7(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 7)
    }
    ///Bit 8 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv8(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 8)
    }
    ///Bit 9 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv9(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 9)
    }
    ///Bit 10 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv10(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 10)
    }
    ///Bit 11 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv11(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 11)
    }
    ///Bit 12 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv12(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 12)
    }
    ///Bit 13 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv13(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 13)
    }
    ///Bit 14 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv14(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 14)
    }
    ///Bit 15 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv15(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 15)
    }
    ///Bit 16 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv16(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 16)
    }
    ///Bit 17 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv17(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 17)
    }
    ///Bit 18 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv18(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 18)
    }
    ///Bit 19 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv19(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 19)
    }
    ///Bit 20 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv20(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 20)
    }
    ///Bit 21 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv21(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 21)
    }
    ///Bit 22 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv22(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 22)
    }
    ///Bit 23 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv23(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 23)
    }
    ///Bit 24 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv24(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 24)
    }
    ///Bit 25 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv25(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 25)
    }
    ///Bit 26 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv26(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 26)
    }
    ///Bit 27 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv27(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 27)
    }
    ///Bit 28 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv28(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 28)
    }
    ///Bit 29 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv29(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 29)
    }
    ///Bit 30 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv30(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 30)
    }
    ///Bit 31 - Privileged configuration for block y, belonging to super-block x (y = 31 to 0).
    #[inline(always)]
    pub fn priv31(&mut self) -> PRIV_W<MPCBB1_PRIVCFGRrs> {
        PRIV_W::new(self, 31)
    }
}
/**SRAM1 MPCBB privileged configuration for super-block %s register

You can [`read`](crate::Reg::read) this register and get [`mpcbb1_privcfgr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mpcbb1_privcfgr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct MPCBB1_PRIVCFGRrs;
impl crate::RegisterSpec for MPCBB1_PRIVCFGRrs {
    type Ux = u32;
}
///`read()` method returns [`mpcbb1_privcfgr::R`](R) reader structure
impl crate::Readable for MPCBB1_PRIVCFGRrs {}
///`write(|w| ..)` method takes [`mpcbb1_privcfgr::W`](W) writer structure
impl crate::Writable for MPCBB1_PRIVCFGRrs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets MPCBB1_PRIVCFGR%s to value 0
impl crate::Resettable for MPCBB1_PRIVCFGRrs {
    const RESET_VALUE: u32 = 0;
}
