pub type R = crate::R<PRIVCFGR1rs>;
pub type W = crate::W<PRIVCFGR1rs>;
pub type PRIV0_R = crate::BitReader;
pub type PRIV0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV1_R = crate::BitReader;
pub type PRIV1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV2_R = crate::BitReader;
pub type PRIV2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV3_R = crate::BitReader;
pub type PRIV3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV4_R = crate::BitReader;
pub type PRIV4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV5_R = crate::BitReader;
pub type PRIV5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV6_R = crate::BitReader;
pub type PRIV6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV7_R = crate::BitReader;
pub type PRIV7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV8_R = crate::BitReader;
pub type PRIV8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV9_R = crate::BitReader;
pub type PRIV9_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV10_R = crate::BitReader;
pub type PRIV10_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV11_R = crate::BitReader;
pub type PRIV11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV12_R = crate::BitReader;
pub type PRIV12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV13_R = crate::BitReader;
pub type PRIV13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV14_R = crate::BitReader;
pub type PRIV14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV15_R = crate::BitReader;
pub type PRIV15_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV16_R = crate::BitReader;
pub type PRIV16_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV17_R = crate::BitReader;
pub type PRIV17_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV18_R = crate::BitReader;
pub type PRIV18_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV19_R = crate::BitReader;
pub type PRIV19_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV20_R = crate::BitReader;
pub type PRIV20_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV21_R = crate::BitReader;
pub type PRIV21_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV22_R = crate::BitReader;
pub type PRIV22_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV23_R = crate::BitReader;
pub type PRIV23_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV24_R = crate::BitReader;
pub type PRIV24_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV25_R = crate::BitReader;
pub type PRIV25_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV26_R = crate::BitReader;
pub type PRIV26_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV27_R = crate::BitReader;
pub type PRIV27_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV28_R = crate::BitReader;
pub type PRIV28_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV29_R = crate::BitReader;
pub type PRIV29_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV30_R = crate::BitReader;
pub type PRIV30_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV31_R = crate::BitReader;
pub type PRIV31_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn priv0(&self) -> PRIV0_R {
PRIV0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn priv1(&self) -> PRIV1_R {
PRIV1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn priv2(&self) -> PRIV2_R {
PRIV2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn priv3(&self) -> PRIV3_R {
PRIV3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn priv4(&self) -> PRIV4_R {
PRIV4_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn priv5(&self) -> PRIV5_R {
PRIV5_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn priv6(&self) -> PRIV6_R {
PRIV6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn priv7(&self) -> PRIV7_R {
PRIV7_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn priv8(&self) -> PRIV8_R {
PRIV8_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn priv9(&self) -> PRIV9_R {
PRIV9_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn priv10(&self) -> PRIV10_R {
PRIV10_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn priv11(&self) -> PRIV11_R {
PRIV11_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn priv12(&self) -> PRIV12_R {
PRIV12_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn priv13(&self) -> PRIV13_R {
PRIV13_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn priv14(&self) -> PRIV14_R {
PRIV14_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn priv15(&self) -> PRIV15_R {
PRIV15_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn priv16(&self) -> PRIV16_R {
PRIV16_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn priv17(&self) -> PRIV17_R {
PRIV17_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn priv18(&self) -> PRIV18_R {
PRIV18_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn priv19(&self) -> PRIV19_R {
PRIV19_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn priv20(&self) -> PRIV20_R {
PRIV20_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn priv21(&self) -> PRIV21_R {
PRIV21_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn priv22(&self) -> PRIV22_R {
PRIV22_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn priv23(&self) -> PRIV23_R {
PRIV23_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn priv24(&self) -> PRIV24_R {
PRIV24_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn priv25(&self) -> PRIV25_R {
PRIV25_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn priv26(&self) -> PRIV26_R {
PRIV26_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn priv27(&self) -> PRIV27_R {
PRIV27_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn priv28(&self) -> PRIV28_R {
PRIV28_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn priv29(&self) -> PRIV29_R {
PRIV29_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn priv30(&self) -> PRIV30_R {
PRIV30_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn priv31(&self) -> PRIV31_R {
PRIV31_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("PRIVCFGR1")
.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 {
#[inline(always)]
pub fn priv0(&mut self) -> PRIV0_W<PRIVCFGR1rs> {
PRIV0_W::new(self, 0)
}
#[inline(always)]
pub fn priv1(&mut self) -> PRIV1_W<PRIVCFGR1rs> {
PRIV1_W::new(self, 1)
}
#[inline(always)]
pub fn priv2(&mut self) -> PRIV2_W<PRIVCFGR1rs> {
PRIV2_W::new(self, 2)
}
#[inline(always)]
pub fn priv3(&mut self) -> PRIV3_W<PRIVCFGR1rs> {
PRIV3_W::new(self, 3)
}
#[inline(always)]
pub fn priv4(&mut self) -> PRIV4_W<PRIVCFGR1rs> {
PRIV4_W::new(self, 4)
}
#[inline(always)]
pub fn priv5(&mut self) -> PRIV5_W<PRIVCFGR1rs> {
PRIV5_W::new(self, 5)
}
#[inline(always)]
pub fn priv6(&mut self) -> PRIV6_W<PRIVCFGR1rs> {
PRIV6_W::new(self, 6)
}
#[inline(always)]
pub fn priv7(&mut self) -> PRIV7_W<PRIVCFGR1rs> {
PRIV7_W::new(self, 7)
}
#[inline(always)]
pub fn priv8(&mut self) -> PRIV8_W<PRIVCFGR1rs> {
PRIV8_W::new(self, 8)
}
#[inline(always)]
pub fn priv9(&mut self) -> PRIV9_W<PRIVCFGR1rs> {
PRIV9_W::new(self, 9)
}
#[inline(always)]
pub fn priv10(&mut self) -> PRIV10_W<PRIVCFGR1rs> {
PRIV10_W::new(self, 10)
}
#[inline(always)]
pub fn priv11(&mut self) -> PRIV11_W<PRIVCFGR1rs> {
PRIV11_W::new(self, 11)
}
#[inline(always)]
pub fn priv12(&mut self) -> PRIV12_W<PRIVCFGR1rs> {
PRIV12_W::new(self, 12)
}
#[inline(always)]
pub fn priv13(&mut self) -> PRIV13_W<PRIVCFGR1rs> {
PRIV13_W::new(self, 13)
}
#[inline(always)]
pub fn priv14(&mut self) -> PRIV14_W<PRIVCFGR1rs> {
PRIV14_W::new(self, 14)
}
#[inline(always)]
pub fn priv15(&mut self) -> PRIV15_W<PRIVCFGR1rs> {
PRIV15_W::new(self, 15)
}
#[inline(always)]
pub fn priv16(&mut self) -> PRIV16_W<PRIVCFGR1rs> {
PRIV16_W::new(self, 16)
}
#[inline(always)]
pub fn priv17(&mut self) -> PRIV17_W<PRIVCFGR1rs> {
PRIV17_W::new(self, 17)
}
#[inline(always)]
pub fn priv18(&mut self) -> PRIV18_W<PRIVCFGR1rs> {
PRIV18_W::new(self, 18)
}
#[inline(always)]
pub fn priv19(&mut self) -> PRIV19_W<PRIVCFGR1rs> {
PRIV19_W::new(self, 19)
}
#[inline(always)]
pub fn priv20(&mut self) -> PRIV20_W<PRIVCFGR1rs> {
PRIV20_W::new(self, 20)
}
#[inline(always)]
pub fn priv21(&mut self) -> PRIV21_W<PRIVCFGR1rs> {
PRIV21_W::new(self, 21)
}
#[inline(always)]
pub fn priv22(&mut self) -> PRIV22_W<PRIVCFGR1rs> {
PRIV22_W::new(self, 22)
}
#[inline(always)]
pub fn priv23(&mut self) -> PRIV23_W<PRIVCFGR1rs> {
PRIV23_W::new(self, 23)
}
#[inline(always)]
pub fn priv24(&mut self) -> PRIV24_W<PRIVCFGR1rs> {
PRIV24_W::new(self, 24)
}
#[inline(always)]
pub fn priv25(&mut self) -> PRIV25_W<PRIVCFGR1rs> {
PRIV25_W::new(self, 25)
}
#[inline(always)]
pub fn priv26(&mut self) -> PRIV26_W<PRIVCFGR1rs> {
PRIV26_W::new(self, 26)
}
#[inline(always)]
pub fn priv27(&mut self) -> PRIV27_W<PRIVCFGR1rs> {
PRIV27_W::new(self, 27)
}
#[inline(always)]
pub fn priv28(&mut self) -> PRIV28_W<PRIVCFGR1rs> {
PRIV28_W::new(self, 28)
}
#[inline(always)]
pub fn priv29(&mut self) -> PRIV29_W<PRIVCFGR1rs> {
PRIV29_W::new(self, 29)
}
#[inline(always)]
pub fn priv30(&mut self) -> PRIV30_W<PRIVCFGR1rs> {
PRIV30_W::new(self, 30)
}
#[inline(always)]
pub fn priv31(&mut self) -> PRIV31_W<PRIVCFGR1rs> {
PRIV31_W::new(self, 31)
}
}
pub struct PRIVCFGR1rs;
impl crate::RegisterSpec for PRIVCFGR1rs {
type Ux = u32;
}
impl crate::Readable for PRIVCFGR1rs {}
impl crate::Writable for PRIVCFGR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PRIVCFGR1rs {}