pub type R = crate::R<RXF0Srs>;
pub type F0FL_R = crate::FieldReader;
pub type F0GI_R = crate::FieldReader;
pub type F0PI_R = crate::FieldReader;
pub type F0F_R = crate::BitReader;
pub type RF0L_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn f0fl(&self) -> F0FL_R {
F0FL_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn f0gi(&self) -> F0GI_R {
F0GI_R::new(((self.bits >> 8) & 3) as u8)
}
#[inline(always)]
pub fn f0pi(&self) -> F0PI_R {
F0PI_R::new(((self.bits >> 16) & 3) as u8)
}
#[inline(always)]
pub fn f0f(&self) -> F0F_R {
F0F_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn rf0l(&self) -> RF0L_R {
RF0L_R::new(((self.bits >> 25) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RXF0S")
.field("f0fl", &self.f0fl())
.field("f0gi", &self.f0gi())
.field("f0pi", &self.f0pi())
.field("f0f", &self.f0f())
.field("rf0l", &self.rf0l())
.finish()
}
}
pub struct RXF0Srs;
impl crate::RegisterSpec for RXF0Srs {
type Ux = u32;
}
impl crate::Readable for RXF0Srs {}
impl crate::Resettable for RXF0Srs {}