#[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 `TXRIS` reader - SSI SSITXINTR raw state (RO) Reset value: 0x1 Gives the raw interrupt state (before masking) of SSITXINTR"]
pub struct TXRIS_R(crate::FieldReader<bool, bool>);
impl TXRIS_R {
pub(crate) fn new(bits: bool) -> Self {
TXRIS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TXRIS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RXRIS` reader - SSI SSIRXINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRXINTR"]
pub struct RXRIS_R(crate::FieldReader<bool, bool>);
impl RXRIS_R {
pub(crate) fn new(bits: bool) -> Self {
RXRIS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RXRIS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RTRIS` reader - SSI SSIRTINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRTINTR"]
pub struct RTRIS_R(crate::FieldReader<bool, bool>);
impl RTRIS_R {
pub(crate) fn new(bits: bool) -> Self {
RTRIS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RTRIS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RORRIS` reader - SSI SSIRORINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRORINTR"]
pub struct RORRIS_R(crate::FieldReader<bool, bool>);
impl RORRIS_R {
pub(crate) fn new(bits: bool) -> Self {
RORRIS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RORRIS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bit 3 - SSI SSITXINTR raw state (RO) Reset value: 0x1 Gives the raw interrupt state (before masking) of SSITXINTR"]
#[inline(always)]
pub fn txris(&self) -> TXRIS_R {
TXRIS_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2 - SSI SSIRXINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRXINTR"]
#[inline(always)]
pub fn rxris(&self) -> RXRIS_R {
RXRIS_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - SSI SSIRTINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRTINTR"]
#[inline(always)]
pub fn rtris(&self) -> RTRIS_R {
RTRIS_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - SSI SSIRORINTR raw state (RO) Reset value: 0x0 Gives the raw interrupt state (before masking) of SSIRORINTR"]
#[inline(always)]
pub fn rorris(&self) -> RORRIS_R {
RORRIS_R::new((self.bits & 0x01) != 0)
}
}
#[doc = "The RIS register is the raw interrupt status register. On a read, this register gives the current raw status value of the corresponding interrupt before masking. A write has no effect.\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 0"]
impl crate::Resettable for RIS_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}