#[doc = "Register `BLK1_WDATA3` reader"]
pub struct R(crate::R<BLK1_WDATA3_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<BLK1_WDATA3_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<BLK1_WDATA3_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<BLK1_WDATA3_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `BLK1_WDATA3` writer"]
pub struct W(crate::W<BLK1_WDATA3_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<BLK1_WDATA3_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<BLK1_WDATA3_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<BLK1_WDATA3_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `BLK1_DIN3` reader - "]
pub type BLK1_DIN3_R = crate::FieldReader<u32>;
#[doc = "Field `BLK1_DIN3` writer - "]
pub type BLK1_DIN3_W<'a, const O: u8> = crate::FieldWriter<'a, BLK1_WDATA3_SPEC, 32, O, u32>;
impl R {
#[doc = "Bits 0:31"]
#[inline(always)]
pub fn blk1_din3(&self) -> BLK1_DIN3_R {
BLK1_DIN3_R::new(self.bits)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BLK1_WDATA3")
.field("blk1_din3", &format_args!("{}", self.blk1_din3().bits()))
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<BLK1_WDATA3_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
impl W {
#[doc = "Bits 0:31"]
#[inline(always)]
#[must_use]
pub fn blk1_din3(&mut self) -> BLK1_DIN3_W<0> {
BLK1_DIN3_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [blk1_wdata3](index.html) module"]
pub struct BLK1_WDATA3_SPEC;
impl crate::RegisterSpec for BLK1_WDATA3_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [blk1_wdata3::R](R) reader structure"]
impl crate::Readable for BLK1_WDATA3_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [blk1_wdata3::W](W) writer structure"]
impl crate::Writable for BLK1_WDATA3_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets BLK1_WDATA3 to value 0"]
impl crate::Resettable for BLK1_WDATA3_SPEC {
const RESET_VALUE: Self::Ux = 0;
}