pub type R = crate::R<APORTREQrs>;
pub type Aport1xreqR = crate::BitReader;
pub type Aport1yreqR = crate::BitReader;
impl R {
#[inline(always)]
pub fn aport1xreq(&self) -> Aport1xreqR {
Aport1xreqR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn aport1yreq(&self) -> Aport1yreqR {
Aport1yreqR::new(((self.bits >> 3) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APORTREQ")
.field("aport1xreq", &self.aport1xreq())
.field("aport1yreq", &self.aport1yreq())
.finish()
}
}
pub struct APORTREQrs;
impl crate::RegisterSpec for APORTREQrs {
type Ux = u32;
}
impl crate::Readable for APORTREQrs {}
impl crate::Resettable for APORTREQrs {}