#[doc = "Register `OUTLINK_DSCR` reader"]
pub struct R(crate::R<OUTLINK_DSCR_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<OUTLINK_DSCR_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<OUTLINK_DSCR_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<OUTLINK_DSCR_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `DMA_OUTLINK_DSCR` reader - The content of current out descriptor pointer."]
pub type DMA_OUTLINK_DSCR_R = crate::FieldReader<u32>;
impl R {
#[doc = "Bits 0:31 - The content of current out descriptor pointer."]
#[inline(always)]
pub fn dma_outlink_dscr(&self) -> DMA_OUTLINK_DSCR_R {
DMA_OUTLINK_DSCR_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("OUTLINK_DSCR")
.field(
"dma_outlink_dscr",
&format_args!("{}", self.dma_outlink_dscr().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<OUTLINK_DSCR_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
#[doc = "Current SPI DMA TX descriptor pointer\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [outlink_dscr](index.html) module"]
pub struct OUTLINK_DSCR_SPEC;
impl crate::RegisterSpec for OUTLINK_DSCR_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [outlink_dscr::R](R) reader structure"]
impl crate::Readable for OUTLINK_DSCR_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets OUTLINK_DSCR to value 0"]
impl crate::Resettable for OUTLINK_DSCR_SPEC {
const RESET_VALUE: Self::Ux = 0;
}