#[doc = "Register `ODATAR[%s]` reader"]
pub struct R(crate::R<ODATAR_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<ODATAR_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<ODATAR_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<ODATAR_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `ODATA` reader - Output Data"]
pub type ODATA_R = crate::FieldReader<u32, u32>;
impl R {
#[doc = "Bits 0:31 - Output Data"]
#[inline(always)]
pub fn odata(&self) -> ODATA_R {
ODATA_R::new(self.bits)
}
}
#[doc = "Output Data Register\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 [odatar](index.html) module"]
pub struct ODATAR_SPEC;
impl crate::RegisterSpec for ODATAR_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [odatar::R](R) reader structure"]
impl crate::Readable for ODATAR_SPEC {
type Reader = R;
}