pub type R = crate::R<DRrs>;
pub type BYTE0_R = crate::FieldReader;
pub type BYTE1_R = crate::FieldReader;
pub type BYTE2_R = crate::FieldReader;
pub type BYTE3_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn byte0(&self) -> BYTE0_R {
BYTE0_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn byte1(&self) -> BYTE1_R {
BYTE1_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn byte2(&self) -> BYTE2_R {
BYTE2_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn byte3(&self) -> BYTE3_R {
BYTE3_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DR")
.field("byte3", &self.byte3())
.field("byte2", &self.byte2())
.field("byte1", &self.byte1())
.field("byte0", &self.byte0())
.finish()
}
}
pub struct DRrs;
impl crate::RegisterSpec for DRrs {
type Ux = u32;
}
impl crate::Readable for DRrs {}
impl crate::Resettable for DRrs {
const RESET_VALUE: u32 = 0;
}