#[doc = "Register `CH5ADDR` reader"]
pub struct R(crate::R<CH5ADDR_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<CH5ADDR_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<CH5ADDR_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<CH5ADDR_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `APB_MEM_ADDR` reader - The ram relative address in channel5 by apb fifo access"]
pub type APB_MEM_ADDR_R = crate::FieldReader<u32>;
impl R {
#[doc = "Bits 0:31 - The ram relative address in channel5 by apb fifo access"]
#[inline(always)]
pub fn apb_mem_addr(&self) -> APB_MEM_ADDR_R {
APB_MEM_ADDR_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("CH5ADDR")
.field(
"apb_mem_addr",
&format_args!("{}", self.apb_mem_addr().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<CH5ADDR_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
#[doc = "\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 [ch5addr](index.html) module"]
pub struct CH5ADDR_SPEC;
impl crate::RegisterSpec for CH5ADDR_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [ch5addr::R](R) reader structure"]
impl crate::Readable for CH5ADDR_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets CH5ADDR to value 0"]
impl crate::Resettable for CH5ADDR_SPEC {
const RESET_VALUE: Self::Ux = 0;
}