#[doc = "Register `NDAT2` reader"]
pub type R = crate::R<Ndat2Spec>;
#[doc = "Register `NDAT2` writer"]
pub type W = crate::W<Ndat2Spec>;
#[doc = "Field `ND32` reader - New Data 32"]
pub type Nd32R = crate::BitReader;
#[doc = "Field `ND32` writer - New Data 32"]
pub type Nd32W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND33` reader - New Data 33"]
pub type Nd33R = crate::BitReader;
#[doc = "Field `ND33` writer - New Data 33"]
pub type Nd33W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND34` reader - New Data 34"]
pub type Nd34R = crate::BitReader;
#[doc = "Field `ND34` writer - New Data 34"]
pub type Nd34W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND35` reader - New Data 35"]
pub type Nd35R = crate::BitReader;
#[doc = "Field `ND35` writer - New Data 35"]
pub type Nd35W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND36` reader - New Data 36"]
pub type Nd36R = crate::BitReader;
#[doc = "Field `ND36` writer - New Data 36"]
pub type Nd36W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND37` reader - New Data 37"]
pub type Nd37R = crate::BitReader;
#[doc = "Field `ND37` writer - New Data 37"]
pub type Nd37W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND38` reader - New Data 38"]
pub type Nd38R = crate::BitReader;
#[doc = "Field `ND38` writer - New Data 38"]
pub type Nd38W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND39` reader - New Data 39"]
pub type Nd39R = crate::BitReader;
#[doc = "Field `ND39` writer - New Data 39"]
pub type Nd39W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND40` reader - New Data 40"]
pub type Nd40R = crate::BitReader;
#[doc = "Field `ND40` writer - New Data 40"]
pub type Nd40W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND41` reader - New Data 41"]
pub type Nd41R = crate::BitReader;
#[doc = "Field `ND41` writer - New Data 41"]
pub type Nd41W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND42` reader - New Data 42"]
pub type Nd42R = crate::BitReader;
#[doc = "Field `ND42` writer - New Data 42"]
pub type Nd42W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND43` reader - New Data 43"]
pub type Nd43R = crate::BitReader;
#[doc = "Field `ND43` writer - New Data 43"]
pub type Nd43W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND44` reader - New Data 44"]
pub type Nd44R = crate::BitReader;
#[doc = "Field `ND44` writer - New Data 44"]
pub type Nd44W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND45` reader - New Data 45"]
pub type Nd45R = crate::BitReader;
#[doc = "Field `ND45` writer - New Data 45"]
pub type Nd45W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND46` reader - New Data 46"]
pub type Nd46R = crate::BitReader;
#[doc = "Field `ND46` writer - New Data 46"]
pub type Nd46W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND47` reader - New Data 47"]
pub type Nd47R = crate::BitReader;
#[doc = "Field `ND47` writer - New Data 47"]
pub type Nd47W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND48` reader - New Data 48"]
pub type Nd48R = crate::BitReader;
#[doc = "Field `ND48` writer - New Data 48"]
pub type Nd48W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND49` reader - New Data 49"]
pub type Nd49R = crate::BitReader;
#[doc = "Field `ND49` writer - New Data 49"]
pub type Nd49W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND50` reader - New Data 50"]
pub type Nd50R = crate::BitReader;
#[doc = "Field `ND50` writer - New Data 50"]
pub type Nd50W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND51` reader - New Data 51"]
pub type Nd51R = crate::BitReader;
#[doc = "Field `ND51` writer - New Data 51"]
pub type Nd51W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND52` reader - New Data 52"]
pub type Nd52R = crate::BitReader;
#[doc = "Field `ND52` writer - New Data 52"]
pub type Nd52W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND53` reader - New Data 53"]
pub type Nd53R = crate::BitReader;
#[doc = "Field `ND53` writer - New Data 53"]
pub type Nd53W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND54` reader - New Data 54"]
pub type Nd54R = crate::BitReader;
#[doc = "Field `ND54` writer - New Data 54"]
pub type Nd54W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND55` reader - New Data 55"]
pub type Nd55R = crate::BitReader;
#[doc = "Field `ND55` writer - New Data 55"]
pub type Nd55W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND56` reader - New Data 56"]
pub type Nd56R = crate::BitReader;
#[doc = "Field `ND56` writer - New Data 56"]
pub type Nd56W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND57` reader - New Data 57"]
pub type Nd57R = crate::BitReader;
#[doc = "Field `ND57` writer - New Data 57"]
pub type Nd57W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND58` reader - New Data 58"]
pub type Nd58R = crate::BitReader;
#[doc = "Field `ND58` writer - New Data 58"]
pub type Nd58W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND59` reader - New Data 59"]
pub type Nd59R = crate::BitReader;
#[doc = "Field `ND59` writer - New Data 59"]
pub type Nd59W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND60` reader - New Data 60"]
pub type Nd60R = crate::BitReader;
#[doc = "Field `ND60` writer - New Data 60"]
pub type Nd60W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND61` reader - New Data 61"]
pub type Nd61R = crate::BitReader;
#[doc = "Field `ND61` writer - New Data 61"]
pub type Nd61W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND62` reader - New Data 62"]
pub type Nd62R = crate::BitReader;
#[doc = "Field `ND62` writer - New Data 62"]
pub type Nd62W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ND63` reader - New Data 63"]
pub type Nd63R = crate::BitReader;
#[doc = "Field `ND63` writer - New Data 63"]
pub type Nd63W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - New Data 32"]
#[inline(always)]
pub fn nd32(&self) -> Nd32R {
Nd32R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - New Data 33"]
#[inline(always)]
pub fn nd33(&self) -> Nd33R {
Nd33R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - New Data 34"]
#[inline(always)]
pub fn nd34(&self) -> Nd34R {
Nd34R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - New Data 35"]
#[inline(always)]
pub fn nd35(&self) -> Nd35R {
Nd35R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - New Data 36"]
#[inline(always)]
pub fn nd36(&self) -> Nd36R {
Nd36R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - New Data 37"]
#[inline(always)]
pub fn nd37(&self) -> Nd37R {
Nd37R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - New Data 38"]
#[inline(always)]
pub fn nd38(&self) -> Nd38R {
Nd38R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - New Data 39"]
#[inline(always)]
pub fn nd39(&self) -> Nd39R {
Nd39R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - New Data 40"]
#[inline(always)]
pub fn nd40(&self) -> Nd40R {
Nd40R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - New Data 41"]
#[inline(always)]
pub fn nd41(&self) -> Nd41R {
Nd41R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - New Data 42"]
#[inline(always)]
pub fn nd42(&self) -> Nd42R {
Nd42R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - New Data 43"]
#[inline(always)]
pub fn nd43(&self) -> Nd43R {
Nd43R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - New Data 44"]
#[inline(always)]
pub fn nd44(&self) -> Nd44R {
Nd44R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - New Data 45"]
#[inline(always)]
pub fn nd45(&self) -> Nd45R {
Nd45R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - New Data 46"]
#[inline(always)]
pub fn nd46(&self) -> Nd46R {
Nd46R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - New Data 47"]
#[inline(always)]
pub fn nd47(&self) -> Nd47R {
Nd47R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 16 - New Data 48"]
#[inline(always)]
pub fn nd48(&self) -> Nd48R {
Nd48R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - New Data 49"]
#[inline(always)]
pub fn nd49(&self) -> Nd49R {
Nd49R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - New Data 50"]
#[inline(always)]
pub fn nd50(&self) -> Nd50R {
Nd50R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - New Data 51"]
#[inline(always)]
pub fn nd51(&self) -> Nd51R {
Nd51R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 20 - New Data 52"]
#[inline(always)]
pub fn nd52(&self) -> Nd52R {
Nd52R::new(((self.bits >> 20) & 1) != 0)
}
#[doc = "Bit 21 - New Data 53"]
#[inline(always)]
pub fn nd53(&self) -> Nd53R {
Nd53R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - New Data 54"]
#[inline(always)]
pub fn nd54(&self) -> Nd54R {
Nd54R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - New Data 55"]
#[inline(always)]
pub fn nd55(&self) -> Nd55R {
Nd55R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - New Data 56"]
#[inline(always)]
pub fn nd56(&self) -> Nd56R {
Nd56R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - New Data 57"]
#[inline(always)]
pub fn nd57(&self) -> Nd57R {
Nd57R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - New Data 58"]
#[inline(always)]
pub fn nd58(&self) -> Nd58R {
Nd58R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - New Data 59"]
#[inline(always)]
pub fn nd59(&self) -> Nd59R {
Nd59R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - New Data 60"]
#[inline(always)]
pub fn nd60(&self) -> Nd60R {
Nd60R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - New Data 61"]
#[inline(always)]
pub fn nd61(&self) -> Nd61R {
Nd61R::new(((self.bits >> 29) & 1) != 0)
}
#[doc = "Bit 30 - New Data 62"]
#[inline(always)]
pub fn nd62(&self) -> Nd62R {
Nd62R::new(((self.bits >> 30) & 1) != 0)
}
#[doc = "Bit 31 - New Data 63"]
#[inline(always)]
pub fn nd63(&self) -> Nd63R {
Nd63R::new(((self.bits >> 31) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - New Data 32"]
#[inline(always)]
#[must_use]
pub fn nd32(&mut self) -> Nd32W<Ndat2Spec> {
Nd32W::new(self, 0)
}
#[doc = "Bit 1 - New Data 33"]
#[inline(always)]
#[must_use]
pub fn nd33(&mut self) -> Nd33W<Ndat2Spec> {
Nd33W::new(self, 1)
}
#[doc = "Bit 2 - New Data 34"]
#[inline(always)]
#[must_use]
pub fn nd34(&mut self) -> Nd34W<Ndat2Spec> {
Nd34W::new(self, 2)
}
#[doc = "Bit 3 - New Data 35"]
#[inline(always)]
#[must_use]
pub fn nd35(&mut self) -> Nd35W<Ndat2Spec> {
Nd35W::new(self, 3)
}
#[doc = "Bit 4 - New Data 36"]
#[inline(always)]
#[must_use]
pub fn nd36(&mut self) -> Nd36W<Ndat2Spec> {
Nd36W::new(self, 4)
}
#[doc = "Bit 5 - New Data 37"]
#[inline(always)]
#[must_use]
pub fn nd37(&mut self) -> Nd37W<Ndat2Spec> {
Nd37W::new(self, 5)
}
#[doc = "Bit 6 - New Data 38"]
#[inline(always)]
#[must_use]
pub fn nd38(&mut self) -> Nd38W<Ndat2Spec> {
Nd38W::new(self, 6)
}
#[doc = "Bit 7 - New Data 39"]
#[inline(always)]
#[must_use]
pub fn nd39(&mut self) -> Nd39W<Ndat2Spec> {
Nd39W::new(self, 7)
}
#[doc = "Bit 8 - New Data 40"]
#[inline(always)]
#[must_use]
pub fn nd40(&mut self) -> Nd40W<Ndat2Spec> {
Nd40W::new(self, 8)
}
#[doc = "Bit 9 - New Data 41"]
#[inline(always)]
#[must_use]
pub fn nd41(&mut self) -> Nd41W<Ndat2Spec> {
Nd41W::new(self, 9)
}
#[doc = "Bit 10 - New Data 42"]
#[inline(always)]
#[must_use]
pub fn nd42(&mut self) -> Nd42W<Ndat2Spec> {
Nd42W::new(self, 10)
}
#[doc = "Bit 11 - New Data 43"]
#[inline(always)]
#[must_use]
pub fn nd43(&mut self) -> Nd43W<Ndat2Spec> {
Nd43W::new(self, 11)
}
#[doc = "Bit 12 - New Data 44"]
#[inline(always)]
#[must_use]
pub fn nd44(&mut self) -> Nd44W<Ndat2Spec> {
Nd44W::new(self, 12)
}
#[doc = "Bit 13 - New Data 45"]
#[inline(always)]
#[must_use]
pub fn nd45(&mut self) -> Nd45W<Ndat2Spec> {
Nd45W::new(self, 13)
}
#[doc = "Bit 14 - New Data 46"]
#[inline(always)]
#[must_use]
pub fn nd46(&mut self) -> Nd46W<Ndat2Spec> {
Nd46W::new(self, 14)
}
#[doc = "Bit 15 - New Data 47"]
#[inline(always)]
#[must_use]
pub fn nd47(&mut self) -> Nd47W<Ndat2Spec> {
Nd47W::new(self, 15)
}
#[doc = "Bit 16 - New Data 48"]
#[inline(always)]
#[must_use]
pub fn nd48(&mut self) -> Nd48W<Ndat2Spec> {
Nd48W::new(self, 16)
}
#[doc = "Bit 17 - New Data 49"]
#[inline(always)]
#[must_use]
pub fn nd49(&mut self) -> Nd49W<Ndat2Spec> {
Nd49W::new(self, 17)
}
#[doc = "Bit 18 - New Data 50"]
#[inline(always)]
#[must_use]
pub fn nd50(&mut self) -> Nd50W<Ndat2Spec> {
Nd50W::new(self, 18)
}
#[doc = "Bit 19 - New Data 51"]
#[inline(always)]
#[must_use]
pub fn nd51(&mut self) -> Nd51W<Ndat2Spec> {
Nd51W::new(self, 19)
}
#[doc = "Bit 20 - New Data 52"]
#[inline(always)]
#[must_use]
pub fn nd52(&mut self) -> Nd52W<Ndat2Spec> {
Nd52W::new(self, 20)
}
#[doc = "Bit 21 - New Data 53"]
#[inline(always)]
#[must_use]
pub fn nd53(&mut self) -> Nd53W<Ndat2Spec> {
Nd53W::new(self, 21)
}
#[doc = "Bit 22 - New Data 54"]
#[inline(always)]
#[must_use]
pub fn nd54(&mut self) -> Nd54W<Ndat2Spec> {
Nd54W::new(self, 22)
}
#[doc = "Bit 23 - New Data 55"]
#[inline(always)]
#[must_use]
pub fn nd55(&mut self) -> Nd55W<Ndat2Spec> {
Nd55W::new(self, 23)
}
#[doc = "Bit 24 - New Data 56"]
#[inline(always)]
#[must_use]
pub fn nd56(&mut self) -> Nd56W<Ndat2Spec> {
Nd56W::new(self, 24)
}
#[doc = "Bit 25 - New Data 57"]
#[inline(always)]
#[must_use]
pub fn nd57(&mut self) -> Nd57W<Ndat2Spec> {
Nd57W::new(self, 25)
}
#[doc = "Bit 26 - New Data 58"]
#[inline(always)]
#[must_use]
pub fn nd58(&mut self) -> Nd58W<Ndat2Spec> {
Nd58W::new(self, 26)
}
#[doc = "Bit 27 - New Data 59"]
#[inline(always)]
#[must_use]
pub fn nd59(&mut self) -> Nd59W<Ndat2Spec> {
Nd59W::new(self, 27)
}
#[doc = "Bit 28 - New Data 60"]
#[inline(always)]
#[must_use]
pub fn nd60(&mut self) -> Nd60W<Ndat2Spec> {
Nd60W::new(self, 28)
}
#[doc = "Bit 29 - New Data 61"]
#[inline(always)]
#[must_use]
pub fn nd61(&mut self) -> Nd61W<Ndat2Spec> {
Nd61W::new(self, 29)
}
#[doc = "Bit 30 - New Data 62"]
#[inline(always)]
#[must_use]
pub fn nd62(&mut self) -> Nd62W<Ndat2Spec> {
Nd62W::new(self, 30)
}
#[doc = "Bit 31 - New Data 63"]
#[inline(always)]
#[must_use]
pub fn nd63(&mut self) -> Nd63W<Ndat2Spec> {
Nd63W::new(self, 31)
}
}
#[doc = "New Data 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ndat2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ndat2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Ndat2Spec;
impl crate::RegisterSpec for Ndat2Spec {
type Ux = u32;
}
#[doc = "`read()` method returns [`ndat2::R`](R) reader structure"]
impl crate::Readable for Ndat2Spec {}
#[doc = "`write(|w| ..)` method takes [`ndat2::W`](W) writer structure"]
impl crate::Writable for Ndat2Spec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets NDAT2 to value 0"]
impl crate::Resettable for Ndat2Spec {
const RESET_VALUE: u32 = 0;
}