#[doc = "Register `NDAT1` reader"]
pub type R = crate::R<NDAT1_SPEC>;
#[doc = "Register `NDAT1` writer"]
pub type W = crate::W<NDAT1_SPEC>;
#[doc = "Field `ND0` reader - New Data 0"]
pub type ND0_R = crate::BitReader;
#[doc = "Field `ND0` writer - New Data 0"]
pub type ND0_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND1` reader - New Data 1"]
pub type ND1_R = crate::BitReader;
#[doc = "Field `ND1` writer - New Data 1"]
pub type ND1_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND2` reader - New Data 2"]
pub type ND2_R = crate::BitReader;
#[doc = "Field `ND2` writer - New Data 2"]
pub type ND2_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND3` reader - New Data 3"]
pub type ND3_R = crate::BitReader;
#[doc = "Field `ND3` writer - New Data 3"]
pub type ND3_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND4` reader - New Data 4"]
pub type ND4_R = crate::BitReader;
#[doc = "Field `ND4` writer - New Data 4"]
pub type ND4_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND5` reader - New Data 5"]
pub type ND5_R = crate::BitReader;
#[doc = "Field `ND5` writer - New Data 5"]
pub type ND5_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND6` reader - New Data 6"]
pub type ND6_R = crate::BitReader;
#[doc = "Field `ND6` writer - New Data 6"]
pub type ND6_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND7` reader - New Data 7"]
pub type ND7_R = crate::BitReader;
#[doc = "Field `ND7` writer - New Data 7"]
pub type ND7_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND8` reader - New Data 8"]
pub type ND8_R = crate::BitReader;
#[doc = "Field `ND8` writer - New Data 8"]
pub type ND8_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND9` reader - New Data 9"]
pub type ND9_R = crate::BitReader;
#[doc = "Field `ND9` writer - New Data 9"]
pub type ND9_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND10` reader - New Data 10"]
pub type ND10_R = crate::BitReader;
#[doc = "Field `ND10` writer - New Data 10"]
pub type ND10_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND11` reader - New Data 11"]
pub type ND11_R = crate::BitReader;
#[doc = "Field `ND11` writer - New Data 11"]
pub type ND11_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND12` reader - New Data 12"]
pub type ND12_R = crate::BitReader;
#[doc = "Field `ND12` writer - New Data 12"]
pub type ND12_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND13` reader - New Data 13"]
pub type ND13_R = crate::BitReader;
#[doc = "Field `ND13` writer - New Data 13"]
pub type ND13_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND14` reader - New Data 14"]
pub type ND14_R = crate::BitReader;
#[doc = "Field `ND14` writer - New Data 14"]
pub type ND14_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND15` reader - New Data 15"]
pub type ND15_R = crate::BitReader;
#[doc = "Field `ND15` writer - New Data 15"]
pub type ND15_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND16` reader - New Data 16"]
pub type ND16_R = crate::BitReader;
#[doc = "Field `ND16` writer - New Data 16"]
pub type ND16_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND17` reader - New Data 17"]
pub type ND17_R = crate::BitReader;
#[doc = "Field `ND17` writer - New Data 17"]
pub type ND17_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND18` reader - New Data 18"]
pub type ND18_R = crate::BitReader;
#[doc = "Field `ND18` writer - New Data 18"]
pub type ND18_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND19` reader - New Data 19"]
pub type ND19_R = crate::BitReader;
#[doc = "Field `ND19` writer - New Data 19"]
pub type ND19_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND20` reader - New Data 20"]
pub type ND20_R = crate::BitReader;
#[doc = "Field `ND20` writer - New Data 20"]
pub type ND20_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND21` reader - New Data 21"]
pub type ND21_R = crate::BitReader;
#[doc = "Field `ND21` writer - New Data 21"]
pub type ND21_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND22` reader - New Data 22"]
pub type ND22_R = crate::BitReader;
#[doc = "Field `ND22` writer - New Data 22"]
pub type ND22_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND23` reader - New Data 23"]
pub type ND23_R = crate::BitReader;
#[doc = "Field `ND23` writer - New Data 23"]
pub type ND23_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND24` reader - New Data 24"]
pub type ND24_R = crate::BitReader;
#[doc = "Field `ND24` writer - New Data 24"]
pub type ND24_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND25` reader - New Data 25"]
pub type ND25_R = crate::BitReader;
#[doc = "Field `ND25` writer - New Data 25"]
pub type ND25_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND26` reader - New Data 26"]
pub type ND26_R = crate::BitReader;
#[doc = "Field `ND26` writer - New Data 26"]
pub type ND26_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND27` reader - New Data 27"]
pub type ND27_R = crate::BitReader;
#[doc = "Field `ND27` writer - New Data 27"]
pub type ND27_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND28` reader - New Data 28"]
pub type ND28_R = crate::BitReader;
#[doc = "Field `ND28` writer - New Data 28"]
pub type ND28_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND29` reader - New Data 29"]
pub type ND29_R = crate::BitReader;
#[doc = "Field `ND29` writer - New Data 29"]
pub type ND29_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND30` reader - New Data 30"]
pub type ND30_R = crate::BitReader;
#[doc = "Field `ND30` writer - New Data 30"]
pub type ND30_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `ND31` reader - New Data 31"]
pub type ND31_R = crate::BitReader;
#[doc = "Field `ND31` writer - New Data 31"]
pub type ND31_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl R {
#[doc = "Bit 0 - New Data 0"]
#[inline(always)]
pub fn nd0(&self) -> ND0_R {
ND0_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - New Data 1"]
#[inline(always)]
pub fn nd1(&self) -> ND1_R {
ND1_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - New Data 2"]
#[inline(always)]
pub fn nd2(&self) -> ND2_R {
ND2_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - New Data 3"]
#[inline(always)]
pub fn nd3(&self) -> ND3_R {
ND3_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - New Data 4"]
#[inline(always)]
pub fn nd4(&self) -> ND4_R {
ND4_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - New Data 5"]
#[inline(always)]
pub fn nd5(&self) -> ND5_R {
ND5_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - New Data 6"]
#[inline(always)]
pub fn nd6(&self) -> ND6_R {
ND6_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - New Data 7"]
#[inline(always)]
pub fn nd7(&self) -> ND7_R {
ND7_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - New Data 8"]
#[inline(always)]
pub fn nd8(&self) -> ND8_R {
ND8_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - New Data 9"]
#[inline(always)]
pub fn nd9(&self) -> ND9_R {
ND9_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - New Data 10"]
#[inline(always)]
pub fn nd10(&self) -> ND10_R {
ND10_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - New Data 11"]
#[inline(always)]
pub fn nd11(&self) -> ND11_R {
ND11_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - New Data 12"]
#[inline(always)]
pub fn nd12(&self) -> ND12_R {
ND12_R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - New Data 13"]
#[inline(always)]
pub fn nd13(&self) -> ND13_R {
ND13_R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - New Data 14"]
#[inline(always)]
pub fn nd14(&self) -> ND14_R {
ND14_R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - New Data 15"]
#[inline(always)]
pub fn nd15(&self) -> ND15_R {
ND15_R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 16 - New Data 16"]
#[inline(always)]
pub fn nd16(&self) -> ND16_R {
ND16_R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - New Data 17"]
#[inline(always)]
pub fn nd17(&self) -> ND17_R {
ND17_R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - New Data 18"]
#[inline(always)]
pub fn nd18(&self) -> ND18_R {
ND18_R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - New Data 19"]
#[inline(always)]
pub fn nd19(&self) -> ND19_R {
ND19_R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 20 - New Data 20"]
#[inline(always)]
pub fn nd20(&self) -> ND20_R {
ND20_R::new(((self.bits >> 20) & 1) != 0)
}
#[doc = "Bit 21 - New Data 21"]
#[inline(always)]
pub fn nd21(&self) -> ND21_R {
ND21_R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - New Data 22"]
#[inline(always)]
pub fn nd22(&self) -> ND22_R {
ND22_R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - New Data 23"]
#[inline(always)]
pub fn nd23(&self) -> ND23_R {
ND23_R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - New Data 24"]
#[inline(always)]
pub fn nd24(&self) -> ND24_R {
ND24_R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - New Data 25"]
#[inline(always)]
pub fn nd25(&self) -> ND25_R {
ND25_R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - New Data 26"]
#[inline(always)]
pub fn nd26(&self) -> ND26_R {
ND26_R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - New Data 27"]
#[inline(always)]
pub fn nd27(&self) -> ND27_R {
ND27_R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - New Data 28"]
#[inline(always)]
pub fn nd28(&self) -> ND28_R {
ND28_R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - New Data 29"]
#[inline(always)]
pub fn nd29(&self) -> ND29_R {
ND29_R::new(((self.bits >> 29) & 1) != 0)
}
#[doc = "Bit 30 - New Data 30"]
#[inline(always)]
pub fn nd30(&self) -> ND30_R {
ND30_R::new(((self.bits >> 30) & 1) != 0)
}
#[doc = "Bit 31 - New Data 31"]
#[inline(always)]
pub fn nd31(&self) -> ND31_R {
ND31_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - New Data 0"]
#[inline(always)]
#[must_use]
pub fn nd0(&mut self) -> ND0_W<NDAT1_SPEC, 0> {
ND0_W::new(self)
}
#[doc = "Bit 1 - New Data 1"]
#[inline(always)]
#[must_use]
pub fn nd1(&mut self) -> ND1_W<NDAT1_SPEC, 1> {
ND1_W::new(self)
}
#[doc = "Bit 2 - New Data 2"]
#[inline(always)]
#[must_use]
pub fn nd2(&mut self) -> ND2_W<NDAT1_SPEC, 2> {
ND2_W::new(self)
}
#[doc = "Bit 3 - New Data 3"]
#[inline(always)]
#[must_use]
pub fn nd3(&mut self) -> ND3_W<NDAT1_SPEC, 3> {
ND3_W::new(self)
}
#[doc = "Bit 4 - New Data 4"]
#[inline(always)]
#[must_use]
pub fn nd4(&mut self) -> ND4_W<NDAT1_SPEC, 4> {
ND4_W::new(self)
}
#[doc = "Bit 5 - New Data 5"]
#[inline(always)]
#[must_use]
pub fn nd5(&mut self) -> ND5_W<NDAT1_SPEC, 5> {
ND5_W::new(self)
}
#[doc = "Bit 6 - New Data 6"]
#[inline(always)]
#[must_use]
pub fn nd6(&mut self) -> ND6_W<NDAT1_SPEC, 6> {
ND6_W::new(self)
}
#[doc = "Bit 7 - New Data 7"]
#[inline(always)]
#[must_use]
pub fn nd7(&mut self) -> ND7_W<NDAT1_SPEC, 7> {
ND7_W::new(self)
}
#[doc = "Bit 8 - New Data 8"]
#[inline(always)]
#[must_use]
pub fn nd8(&mut self) -> ND8_W<NDAT1_SPEC, 8> {
ND8_W::new(self)
}
#[doc = "Bit 9 - New Data 9"]
#[inline(always)]
#[must_use]
pub fn nd9(&mut self) -> ND9_W<NDAT1_SPEC, 9> {
ND9_W::new(self)
}
#[doc = "Bit 10 - New Data 10"]
#[inline(always)]
#[must_use]
pub fn nd10(&mut self) -> ND10_W<NDAT1_SPEC, 10> {
ND10_W::new(self)
}
#[doc = "Bit 11 - New Data 11"]
#[inline(always)]
#[must_use]
pub fn nd11(&mut self) -> ND11_W<NDAT1_SPEC, 11> {
ND11_W::new(self)
}
#[doc = "Bit 12 - New Data 12"]
#[inline(always)]
#[must_use]
pub fn nd12(&mut self) -> ND12_W<NDAT1_SPEC, 12> {
ND12_W::new(self)
}
#[doc = "Bit 13 - New Data 13"]
#[inline(always)]
#[must_use]
pub fn nd13(&mut self) -> ND13_W<NDAT1_SPEC, 13> {
ND13_W::new(self)
}
#[doc = "Bit 14 - New Data 14"]
#[inline(always)]
#[must_use]
pub fn nd14(&mut self) -> ND14_W<NDAT1_SPEC, 14> {
ND14_W::new(self)
}
#[doc = "Bit 15 - New Data 15"]
#[inline(always)]
#[must_use]
pub fn nd15(&mut self) -> ND15_W<NDAT1_SPEC, 15> {
ND15_W::new(self)
}
#[doc = "Bit 16 - New Data 16"]
#[inline(always)]
#[must_use]
pub fn nd16(&mut self) -> ND16_W<NDAT1_SPEC, 16> {
ND16_W::new(self)
}
#[doc = "Bit 17 - New Data 17"]
#[inline(always)]
#[must_use]
pub fn nd17(&mut self) -> ND17_W<NDAT1_SPEC, 17> {
ND17_W::new(self)
}
#[doc = "Bit 18 - New Data 18"]
#[inline(always)]
#[must_use]
pub fn nd18(&mut self) -> ND18_W<NDAT1_SPEC, 18> {
ND18_W::new(self)
}
#[doc = "Bit 19 - New Data 19"]
#[inline(always)]
#[must_use]
pub fn nd19(&mut self) -> ND19_W<NDAT1_SPEC, 19> {
ND19_W::new(self)
}
#[doc = "Bit 20 - New Data 20"]
#[inline(always)]
#[must_use]
pub fn nd20(&mut self) -> ND20_W<NDAT1_SPEC, 20> {
ND20_W::new(self)
}
#[doc = "Bit 21 - New Data 21"]
#[inline(always)]
#[must_use]
pub fn nd21(&mut self) -> ND21_W<NDAT1_SPEC, 21> {
ND21_W::new(self)
}
#[doc = "Bit 22 - New Data 22"]
#[inline(always)]
#[must_use]
pub fn nd22(&mut self) -> ND22_W<NDAT1_SPEC, 22> {
ND22_W::new(self)
}
#[doc = "Bit 23 - New Data 23"]
#[inline(always)]
#[must_use]
pub fn nd23(&mut self) -> ND23_W<NDAT1_SPEC, 23> {
ND23_W::new(self)
}
#[doc = "Bit 24 - New Data 24"]
#[inline(always)]
#[must_use]
pub fn nd24(&mut self) -> ND24_W<NDAT1_SPEC, 24> {
ND24_W::new(self)
}
#[doc = "Bit 25 - New Data 25"]
#[inline(always)]
#[must_use]
pub fn nd25(&mut self) -> ND25_W<NDAT1_SPEC, 25> {
ND25_W::new(self)
}
#[doc = "Bit 26 - New Data 26"]
#[inline(always)]
#[must_use]
pub fn nd26(&mut self) -> ND26_W<NDAT1_SPEC, 26> {
ND26_W::new(self)
}
#[doc = "Bit 27 - New Data 27"]
#[inline(always)]
#[must_use]
pub fn nd27(&mut self) -> ND27_W<NDAT1_SPEC, 27> {
ND27_W::new(self)
}
#[doc = "Bit 28 - New Data 28"]
#[inline(always)]
#[must_use]
pub fn nd28(&mut self) -> ND28_W<NDAT1_SPEC, 28> {
ND28_W::new(self)
}
#[doc = "Bit 29 - New Data 29"]
#[inline(always)]
#[must_use]
pub fn nd29(&mut self) -> ND29_W<NDAT1_SPEC, 29> {
ND29_W::new(self)
}
#[doc = "Bit 30 - New Data 30"]
#[inline(always)]
#[must_use]
pub fn nd30(&mut self) -> ND30_W<NDAT1_SPEC, 30> {
ND30_W::new(self)
}
#[doc = "Bit 31 - New Data 31"]
#[inline(always)]
#[must_use]
pub fn nd31(&mut self) -> ND31_W<NDAT1_SPEC, 31> {
ND31_W::new(self)
}
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "New Data 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ndat1::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ndat1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct NDAT1_SPEC;
impl crate::RegisterSpec for NDAT1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`ndat1::R`](R) reader structure"]
impl crate::Readable for NDAT1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`ndat1::W`](W) writer structure"]
impl crate::Writable for NDAT1_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets NDAT1 to value 0"]
impl crate::Resettable for NDAT1_SPEC {
const RESET_VALUE: Self::Ux = 0;
}