pub type R = crate::R<STATUSrs>;
pub type RxensR = crate::BitReader;
pub type TxensR = crate::BitReader;
pub type RxblockR = crate::BitReader;
pub type TxcR = crate::BitReader;
pub type TxblR = crate::BitReader;
pub type RxdatavR = crate::BitReader;
pub type TxidleR = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxens(&self) -> RxensR {
RxensR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn txens(&self) -> TxensR {
TxensR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rxblock(&self) -> RxblockR {
RxblockR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn txc(&self) -> TxcR {
TxcR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn txbl(&self) -> TxblR {
TxblR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rxdatav(&self) -> RxdatavR {
RxdatavR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn txidle(&self) -> TxidleR {
TxidleR::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STATUS")
.field("rxens", &self.rxens())
.field("txens", &self.txens())
.field("rxblock", &self.rxblock())
.field("txc", &self.txc())
.field("txbl", &self.txbl())
.field("rxdatav", &self.rxdatav())
.field("txidle", &self.txidle())
.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 = 0x50;
}