#[doc = "Register `NDAT1` reader"]
pub type R = crate::R<Ndat1Spec>;
#[doc = "Register `NDAT1` writer"]
pub type W = crate::W<Ndat1Spec>;
#[doc = "Field `ND0` reader - New Data 0"]
pub type Nd0R = crate::BitReader;
#[doc = "Field `ND0` writer - New Data 0"]
pub type Nd0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND1` reader - New Data 1"]
pub type Nd1R = crate::BitReader;
#[doc = "Field `ND1` writer - New Data 1"]
pub type Nd1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND2` reader - New Data 2"]
pub type Nd2R = crate::BitReader;
#[doc = "Field `ND2` writer - New Data 2"]
pub type Nd2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND3` reader - New Data 3"]
pub type Nd3R = crate::BitReader;
#[doc = "Field `ND3` writer - New Data 3"]
pub type Nd3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND4` reader - New Data 4"]
pub type Nd4R = crate::BitReader;
#[doc = "Field `ND4` writer - New Data 4"]
pub type Nd4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND5` reader - New Data 5"]
pub type Nd5R = crate::BitReader;
#[doc = "Field `ND5` writer - New Data 5"]
pub type Nd5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND6` reader - New Data 6"]
pub type Nd6R = crate::BitReader;
#[doc = "Field `ND6` writer - New Data 6"]
pub type Nd6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND7` reader - New Data 7"]
pub type Nd7R = crate::BitReader;
#[doc = "Field `ND7` writer - New Data 7"]
pub type Nd7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND8` reader - New Data 8"]
pub type Nd8R = crate::BitReader;
#[doc = "Field `ND8` writer - New Data 8"]
pub type Nd8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND9` reader - New Data 9"]
pub type Nd9R = crate::BitReader;
#[doc = "Field `ND9` writer - New Data 9"]
pub type Nd9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND10` reader - New Data 10"]
pub type Nd10R = crate::BitReader;
#[doc = "Field `ND10` writer - New Data 10"]
pub type Nd10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND11` reader - New Data 11"]
pub type Nd11R = crate::BitReader;
#[doc = "Field `ND11` writer - New Data 11"]
pub type Nd11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND12` reader - New Data 12"]
pub type Nd12R = crate::BitReader;
#[doc = "Field `ND12` writer - New Data 12"]
pub type Nd12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND13` reader - New Data 13"]
pub type Nd13R = crate::BitReader;
#[doc = "Field `ND13` writer - New Data 13"]
pub type Nd13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND14` reader - New Data 14"]
pub type Nd14R = crate::BitReader;
#[doc = "Field `ND14` writer - New Data 14"]
pub type Nd14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND15` reader - New Data 15"]
pub type Nd15R = crate::BitReader;
#[doc = "Field `ND15` writer - New Data 15"]
pub type Nd15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND16` reader - New Data 16"]
pub type Nd16R = crate::BitReader;
#[doc = "Field `ND16` writer - New Data 16"]
pub type Nd16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND17` reader - New Data 17"]
pub type Nd17R = crate::BitReader;
#[doc = "Field `ND17` writer - New Data 17"]
pub type Nd17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND18` reader - New Data 18"]
pub type Nd18R = crate::BitReader;
#[doc = "Field `ND18` writer - New Data 18"]
pub type Nd18W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND19` reader - New Data 19"]
pub type Nd19R = crate::BitReader;
#[doc = "Field `ND19` writer - New Data 19"]
pub type Nd19W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND20` reader - New Data 20"]
pub type Nd20R = crate::BitReader;
#[doc = "Field `ND20` writer - New Data 20"]
pub type Nd20W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND21` reader - New Data 21"]
pub type Nd21R = crate::BitReader;
#[doc = "Field `ND21` writer - New Data 21"]
pub type Nd21W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND22` reader - New Data 22"]
pub type Nd22R = crate::BitReader;
#[doc = "Field `ND22` writer - New Data 22"]
pub type Nd22W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND23` reader - New Data 23"]
pub type Nd23R = crate::BitReader;
#[doc = "Field `ND23` writer - New Data 23"]
pub type Nd23W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND24` reader - New Data 24"]
pub type Nd24R = crate::BitReader;
#[doc = "Field `ND24` writer - New Data 24"]
pub type Nd24W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND25` reader - New Data 25"]
pub type Nd25R = crate::BitReader;
#[doc = "Field `ND25` writer - New Data 25"]
pub type Nd25W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND26` reader - New Data 26"]
pub type Nd26R = crate::BitReader;
#[doc = "Field `ND26` writer - New Data 26"]
pub type Nd26W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND27` reader - New Data 27"]
pub type Nd27R = crate::BitReader;
#[doc = "Field `ND27` writer - New Data 27"]
pub type Nd27W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND28` reader - New Data 28"]
pub type Nd28R = crate::BitReader;
#[doc = "Field `ND28` writer - New Data 28"]
pub type Nd28W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND29` reader - New Data 29"]
pub type Nd29R = crate::BitReader;
#[doc = "Field `ND29` writer - New Data 29"]
pub type Nd29W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND30` reader - New Data 30"]
pub type Nd30R = crate::BitReader;
#[doc = "Field `ND30` writer - New Data 30"]
pub type Nd30W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND31` reader - New Data 31"]
pub type Nd31R = crate::BitReader;
#[doc = "Field `ND31` writer - New Data 31"]
pub type Nd31W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - New Data 0"]
#[inline(always)]
pub fn nd0(&self) -> Nd0R {
Nd0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - New Data 1"]
#[inline(always)]
pub fn nd1(&self) -> Nd1R {
Nd1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - New Data 2"]
#[inline(always)]
pub fn nd2(&self) -> Nd2R {
Nd2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - New Data 3"]
#[inline(always)]
pub fn nd3(&self) -> Nd3R {
Nd3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - New Data 4"]
#[inline(always)]
pub fn nd4(&self) -> Nd4R {
Nd4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - New Data 5"]
#[inline(always)]
pub fn nd5(&self) -> Nd5R {
Nd5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - New Data 6"]
#[inline(always)]
pub fn nd6(&self) -> Nd6R {
Nd6R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - New Data 7"]
#[inline(always)]
pub fn nd7(&self) -> Nd7R {
Nd7R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - New Data 8"]
#[inline(always)]
pub fn nd8(&self) -> Nd8R {
Nd8R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - New Data 9"]
#[inline(always)]
pub fn nd9(&self) -> Nd9R {
Nd9R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - New Data 10"]
#[inline(always)]
pub fn nd10(&self) -> Nd10R {
Nd10R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - New Data 11"]
#[inline(always)]
pub fn nd11(&self) -> Nd11R {
Nd11R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - New Data 12"]
#[inline(always)]
pub fn nd12(&self) -> Nd12R {
Nd12R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - New Data 13"]
#[inline(always)]
pub fn nd13(&self) -> Nd13R {
Nd13R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - New Data 14"]
#[inline(always)]
pub fn nd14(&self) -> Nd14R {
Nd14R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - New Data 15"]
#[inline(always)]
pub fn nd15(&self) -> Nd15R {
Nd15R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 16 - New Data 16"]
#[inline(always)]
pub fn nd16(&self) -> Nd16R {
Nd16R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - New Data 17"]
#[inline(always)]
pub fn nd17(&self) -> Nd17R {
Nd17R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - New Data 18"]
#[inline(always)]
pub fn nd18(&self) -> Nd18R {
Nd18R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - New Data 19"]
#[inline(always)]
pub fn nd19(&self) -> Nd19R {
Nd19R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 20 - New Data 20"]
#[inline(always)]
pub fn nd20(&self) -> Nd20R {
Nd20R::new(((self.bits >> 20) & 1) != 0)
}
#[doc = "Bit 21 - New Data 21"]
#[inline(always)]
pub fn nd21(&self) -> Nd21R {
Nd21R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - New Data 22"]
#[inline(always)]
pub fn nd22(&self) -> Nd22R {
Nd22R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - New Data 23"]
#[inline(always)]
pub fn nd23(&self) -> Nd23R {
Nd23R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - New Data 24"]
#[inline(always)]
pub fn nd24(&self) -> Nd24R {
Nd24R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - New Data 25"]
#[inline(always)]
pub fn nd25(&self) -> Nd25R {
Nd25R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - New Data 26"]
#[inline(always)]
pub fn nd26(&self) -> Nd26R {
Nd26R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - New Data 27"]
#[inline(always)]
pub fn nd27(&self) -> Nd27R {
Nd27R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - New Data 28"]
#[inline(always)]
pub fn nd28(&self) -> Nd28R {
Nd28R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - New Data 29"]
#[inline(always)]
pub fn nd29(&self) -> Nd29R {
Nd29R::new(((self.bits >> 29) & 1) != 0)
}
#[doc = "Bit 30 - New Data 30"]
#[inline(always)]
pub fn nd30(&self) -> Nd30R {
Nd30R::new(((self.bits >> 30) & 1) != 0)
}
#[doc = "Bit 31 - New Data 31"]
#[inline(always)]
pub fn nd31(&self) -> Nd31R {
Nd31R::new(((self.bits >> 31) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - New Data 0"]
#[inline(always)]
#[must_use]
pub fn nd0(&mut self) -> Nd0W<Ndat1Spec> {
Nd0W::new(self, 0)
}
#[doc = "Bit 1 - New Data 1"]
#[inline(always)]
#[must_use]
pub fn nd1(&mut self) -> Nd1W<Ndat1Spec> {
Nd1W::new(self, 1)
}
#[doc = "Bit 2 - New Data 2"]
#[inline(always)]
#[must_use]
pub fn nd2(&mut self) -> Nd2W<Ndat1Spec> {
Nd2W::new(self, 2)
}
#[doc = "Bit 3 - New Data 3"]
#[inline(always)]
#[must_use]
pub fn nd3(&mut self) -> Nd3W<Ndat1Spec> {
Nd3W::new(self, 3)
}
#[doc = "Bit 4 - New Data 4"]
#[inline(always)]
#[must_use]
pub fn nd4(&mut self) -> Nd4W<Ndat1Spec> {
Nd4W::new(self, 4)
}
#[doc = "Bit 5 - New Data 5"]
#[inline(always)]
#[must_use]
pub fn nd5(&mut self) -> Nd5W<Ndat1Spec> {
Nd5W::new(self, 5)
}
#[doc = "Bit 6 - New Data 6"]
#[inline(always)]
#[must_use]
pub fn nd6(&mut self) -> Nd6W<Ndat1Spec> {
Nd6W::new(self, 6)
}
#[doc = "Bit 7 - New Data 7"]
#[inline(always)]
#[must_use]
pub fn nd7(&mut self) -> Nd7W<Ndat1Spec> {
Nd7W::new(self, 7)
}
#[doc = "Bit 8 - New Data 8"]
#[inline(always)]
#[must_use]
pub fn nd8(&mut self) -> Nd8W<Ndat1Spec> {
Nd8W::new(self, 8)
}
#[doc = "Bit 9 - New Data 9"]
#[inline(always)]
#[must_use]
pub fn nd9(&mut self) -> Nd9W<Ndat1Spec> {
Nd9W::new(self, 9)
}
#[doc = "Bit 10 - New Data 10"]
#[inline(always)]
#[must_use]
pub fn nd10(&mut self) -> Nd10W<Ndat1Spec> {
Nd10W::new(self, 10)
}
#[doc = "Bit 11 - New Data 11"]
#[inline(always)]
#[must_use]
pub fn nd11(&mut self) -> Nd11W<Ndat1Spec> {
Nd11W::new(self, 11)
}
#[doc = "Bit 12 - New Data 12"]
#[inline(always)]
#[must_use]
pub fn nd12(&mut self) -> Nd12W<Ndat1Spec> {
Nd12W::new(self, 12)
}
#[doc = "Bit 13 - New Data 13"]
#[inline(always)]
#[must_use]
pub fn nd13(&mut self) -> Nd13W<Ndat1Spec> {
Nd13W::new(self, 13)
}
#[doc = "Bit 14 - New Data 14"]
#[inline(always)]
#[must_use]
pub fn nd14(&mut self) -> Nd14W<Ndat1Spec> {
Nd14W::new(self, 14)
}
#[doc = "Bit 15 - New Data 15"]
#[inline(always)]
#[must_use]
pub fn nd15(&mut self) -> Nd15W<Ndat1Spec> {
Nd15W::new(self, 15)
}
#[doc = "Bit 16 - New Data 16"]
#[inline(always)]
#[must_use]
pub fn nd16(&mut self) -> Nd16W<Ndat1Spec> {
Nd16W::new(self, 16)
}
#[doc = "Bit 17 - New Data 17"]
#[inline(always)]
#[must_use]
pub fn nd17(&mut self) -> Nd17W<Ndat1Spec> {
Nd17W::new(self, 17)
}
#[doc = "Bit 18 - New Data 18"]
#[inline(always)]
#[must_use]
pub fn nd18(&mut self) -> Nd18W<Ndat1Spec> {
Nd18W::new(self, 18)
}
#[doc = "Bit 19 - New Data 19"]
#[inline(always)]
#[must_use]
pub fn nd19(&mut self) -> Nd19W<Ndat1Spec> {
Nd19W::new(self, 19)
}
#[doc = "Bit 20 - New Data 20"]
#[inline(always)]
#[must_use]
pub fn nd20(&mut self) -> Nd20W<Ndat1Spec> {
Nd20W::new(self, 20)
}
#[doc = "Bit 21 - New Data 21"]
#[inline(always)]
#[must_use]
pub fn nd21(&mut self) -> Nd21W<Ndat1Spec> {
Nd21W::new(self, 21)
}
#[doc = "Bit 22 - New Data 22"]
#[inline(always)]
#[must_use]
pub fn nd22(&mut self) -> Nd22W<Ndat1Spec> {
Nd22W::new(self, 22)
}
#[doc = "Bit 23 - New Data 23"]
#[inline(always)]
#[must_use]
pub fn nd23(&mut self) -> Nd23W<Ndat1Spec> {
Nd23W::new(self, 23)
}
#[doc = "Bit 24 - New Data 24"]
#[inline(always)]
#[must_use]
pub fn nd24(&mut self) -> Nd24W<Ndat1Spec> {
Nd24W::new(self, 24)
}
#[doc = "Bit 25 - New Data 25"]
#[inline(always)]
#[must_use]
pub fn nd25(&mut self) -> Nd25W<Ndat1Spec> {
Nd25W::new(self, 25)
}
#[doc = "Bit 26 - New Data 26"]
#[inline(always)]
#[must_use]
pub fn nd26(&mut self) -> Nd26W<Ndat1Spec> {
Nd26W::new(self, 26)
}
#[doc = "Bit 27 - New Data 27"]
#[inline(always)]
#[must_use]
pub fn nd27(&mut self) -> Nd27W<Ndat1Spec> {
Nd27W::new(self, 27)
}
#[doc = "Bit 28 - New Data 28"]
#[inline(always)]
#[must_use]
pub fn nd28(&mut self) -> Nd28W<Ndat1Spec> {
Nd28W::new(self, 28)
}
#[doc = "Bit 29 - New Data 29"]
#[inline(always)]
#[must_use]
pub fn nd29(&mut self) -> Nd29W<Ndat1Spec> {
Nd29W::new(self, 29)
}
#[doc = "Bit 30 - New Data 30"]
#[inline(always)]
#[must_use]
pub fn nd30(&mut self) -> Nd30W<Ndat1Spec> {
Nd30W::new(self, 30)
}
#[doc = "Bit 31 - New Data 31"]
#[inline(always)]
#[must_use]
pub fn nd31(&mut self) -> Nd31W<Ndat1Spec> {
Nd31W::new(self, 31)
}
}
#[doc = "New Data 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ndat1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ndat1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Ndat1Spec;
impl crate::RegisterSpec for Ndat1Spec {
type Ux = u32;
}
#[doc = "`read()` method returns [`ndat1::R`](R) reader structure"]
impl crate::Readable for Ndat1Spec {}
#[doc = "`write(|w| ..)` method takes [`ndat1::W`](W) writer structure"]
impl crate::Writable for Ndat1Spec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets NDAT1 to value 0"]
impl crate::Resettable for Ndat1Spec {
const RESET_VALUE: u32 = 0;
}