pub type R = crate::R<ISRrs>;
pub type RXBFF_R = crate::BitReader;
pub type TXBEF_R = crate::BitReader;
pub type RXBERF_R = crate::BitReader;
pub type RXOVRF_R = crate::BitReader;
pub type TXUNRF_R = crate::BitReader;
pub type RXNE_R = crate::BitReader;
pub type TXE_R = crate::BitReader;
pub type TCF_R = crate::BitReader;
pub type SRF_R = crate::BitReader;
pub type SUSP_R = crate::BitReader;
pub type DEACTF_R = crate::BitReader;
pub type RDYF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxbff(&self) -> RXBFF_R {
RXBFF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn txbef(&self) -> TXBEF_R {
TXBEF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rxberf(&self) -> RXBERF_R {
RXBERF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rxovrf(&self) -> RXOVRF_R {
RXOVRF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn txunrf(&self) -> TXUNRF_R {
TXUNRF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rxne(&self) -> RXNE_R {
RXNE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn txe(&self) -> TXE_R {
TXE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn tcf(&self) -> TCF_R {
TCF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn srf(&self) -> SRF_R {
SRF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn susp(&self) -> SUSP_R {
SUSP_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn deactf(&self) -> DEACTF_R {
DEACTF_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn rdyf(&self) -> RDYF_R {
RDYF_R::new(((self.bits >> 11) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ISR")
.field("rxbff", &self.rxbff())
.field("txbef", &self.txbef())
.field("rxberf", &self.rxberf())
.field("rxovrf", &self.rxovrf())
.field("txunrf", &self.txunrf())
.field("rxne", &self.rxne())
.field("txe", &self.txe())
.field("tcf", &self.tcf())
.field("srf", &self.srf())
.field("susp", &self.susp())
.field("deactf", &self.deactf())
.field("rdyf", &self.rdyf())
.finish()
}
}
pub struct ISRrs;
impl crate::RegisterSpec for ISRrs {
type Ux = u32;
}
impl crate::Readable for ISRrs {}
impl crate::Resettable for ISRrs {
const RESET_VALUE: u32 = 0x02c2;
}