pub type R = crate::R<APORTREQrs>;
pub type Aport0xreqR = crate::BitReader;
pub type Aport0yreqR = crate::BitReader;
pub type Aport1xreqR = crate::BitReader;
pub type Aport1yreqR = crate::BitReader;
pub type Aport2xreqR = crate::BitReader;
pub type Aport2yreqR = crate::BitReader;
pub type Aport3xreqR = crate::BitReader;
pub type Aport3yreqR = crate::BitReader;
pub type Aport4xreqR = crate::BitReader;
pub type Aport4yreqR = crate::BitReader;
impl R {
#[inline(always)]
pub fn aport0xreq(&self) -> Aport0xreqR {
Aport0xreqR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn aport0yreq(&self) -> Aport0yreqR {
Aport0yreqR::new(((self.bits >> 1) & 1) != 0)
}
#[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)
}
#[inline(always)]
pub fn aport2xreq(&self) -> Aport2xreqR {
Aport2xreqR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn aport2yreq(&self) -> Aport2yreqR {
Aport2yreqR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn aport3xreq(&self) -> Aport3xreqR {
Aport3xreqR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn aport3yreq(&self) -> Aport3yreqR {
Aport3yreqR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn aport4xreq(&self) -> Aport4xreqR {
Aport4xreqR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn aport4yreq(&self) -> Aport4yreqR {
Aport4yreqR::new(((self.bits >> 9) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APORTREQ")
.field("aport0xreq", &self.aport0xreq())
.field("aport0yreq", &self.aport0yreq())
.field("aport1xreq", &self.aport1xreq())
.field("aport1yreq", &self.aport1yreq())
.field("aport2xreq", &self.aport2xreq())
.field("aport2yreq", &self.aport2yreq())
.field("aport3xreq", &self.aport3xreq())
.field("aport3yreq", &self.aport3yreq())
.field("aport4xreq", &self.aport4xreq())
.field("aport4yreq", &self.aport4yreq())
.finish()
}
}
pub struct APORTREQrs;
impl crate::RegisterSpec for APORTREQrs {
type Ux = u32;
}
impl crate::Readable for APORTREQrs {}
impl crate::Resettable for APORTREQrs {}