pub type R = crate::R<STATUSrs>;
pub type PstartR = crate::BitReader;
pub type PstopR = crate::BitReader;
pub type PackR = crate::BitReader;
pub type PnackR = crate::BitReader;
pub type PcontR = crate::BitReader;
pub type PabortR = crate::BitReader;
pub type TxcR = crate::BitReader;
pub type TxblR = crate::BitReader;
pub type RxdatavR = crate::BitReader;
pub type RxfullR = crate::BitReader;
impl R {
#[inline(always)]
pub fn pstart(&self) -> PstartR {
PstartR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pstop(&self) -> PstopR {
PstopR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pack(&self) -> PackR {
PackR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn pnack(&self) -> PnackR {
PnackR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pcont(&self) -> PcontR {
PcontR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pabort(&self) -> PabortR {
PabortR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn txc(&self) -> TxcR {
TxcR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn txbl(&self) -> TxblR {
TxblR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn rxdatav(&self) -> RxdatavR {
RxdatavR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn rxfull(&self) -> RxfullR {
RxfullR::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("STATUS")
.field("pstart", &self.pstart())
.field("pstop", &self.pstop())
.field("pack", &self.pack())
.field("pnack", &self.pnack())
.field("pcont", &self.pcont())
.field("pabort", &self.pabort())
.field("txc", &self.txc())
.field("txbl", &self.txbl())
.field("rxdatav", &self.rxdatav())
.field("rxfull", &self.rxfull())
.finish()
}
}
pub struct STATUSrs;
impl crate::RegisterSpec for STATUSrs {
type Ux = u32;
}
impl crate::Readable for STATUSrs {}
impl crate::Resettable for STATUSrs {
const RESET_VALUE: u32 = 0x80;
}