#[doc = "Register `RIS` reader"]
pub struct R(crate::R<RIS_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<RIS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<RIS_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<RIS_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `RORRIS` reader - This bit is 1 if another frame was completely received while the RxFIFO was full. The ARM spec implies that the preceding frame data is overwritten by the new frame data when this occurs."]
pub type RORRIS_R = crate::BitReader<bool>;
#[doc = "Field `RTRIS` reader - This bit is 1 if the Rx FIFO is not empty, and has not been read for a time-out period. The time-out period is the same for master and slave modes and is determined by the SSP bit rate: 32 bits at PCLK / (CPSDVSR x \\[SCR+1\\])."]
pub type RTRIS_R = crate::BitReader<bool>;
#[doc = "Field `RXRIS` reader - This bit is 1 if the Rx FIFO is at least half full."]
pub type RXRIS_R = crate::BitReader<bool>;
#[doc = "Field `TXRIS` reader - This bit is 1 if the Tx FIFO is at least half empty."]
pub type TXRIS_R = crate::BitReader<bool>;
impl R {
#[doc = "Bit 0 - This bit is 1 if another frame was completely received while the RxFIFO was full. The ARM spec implies that the preceding frame data is overwritten by the new frame data when this occurs."]
#[inline(always)]
pub fn rorris(&self) -> RORRIS_R {
RORRIS_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - This bit is 1 if the Rx FIFO is not empty, and has not been read for a time-out period. The time-out period is the same for master and slave modes and is determined by the SSP bit rate: 32 bits at PCLK / (CPSDVSR x \\[SCR+1\\])."]
#[inline(always)]
pub fn rtris(&self) -> RTRIS_R {
RTRIS_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - This bit is 1 if the Rx FIFO is at least half full."]
#[inline(always)]
pub fn rxris(&self) -> RXRIS_R {
RXRIS_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - This bit is 1 if the Tx FIFO is at least half empty."]
#[inline(always)]
pub fn txris(&self) -> TXRIS_R {
TXRIS_R::new(((self.bits >> 3) & 1) != 0)
}
}
#[doc = "Raw Interrupt Status Register.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ris](index.html) module"]
pub struct RIS_SPEC;
impl crate::RegisterSpec for RIS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [ris::R](R) reader structure"]
impl crate::Readable for RIS_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets RIS to value 0x08"]
impl crate::Resettable for RIS_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x08
}
}