#[doc = "Register `INT_ST_CH0` reader"]
pub struct R(crate::R<INT_ST_CH0_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<INT_ST_CH0_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<INT_ST_CH0_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<INT_ST_CH0_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `IN_DONE_CH0_INT_ST` reader - The raw interrupt status bit for the IN_DONE_CH_INT interrupt."]
pub struct IN_DONE_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl IN_DONE_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
IN_DONE_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for IN_DONE_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `IN_SUC_EOF_CH0_INT_ST` reader - The raw interrupt status bit for the IN_SUC_EOF_CH_INT interrupt."]
pub struct IN_SUC_EOF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl IN_SUC_EOF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
IN_SUC_EOF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for IN_SUC_EOF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `IN_ERR_EOF_CH0_INT_ST` reader - The raw interrupt status bit for the IN_ERR_EOF_CH_INT interrupt."]
pub struct IN_ERR_EOF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl IN_ERR_EOF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
IN_ERR_EOF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for IN_ERR_EOF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OUT_DONE_CH0_INT_ST` reader - The raw interrupt status bit for the OUT_DONE_CH_INT interrupt."]
pub struct OUT_DONE_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl OUT_DONE_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
OUT_DONE_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OUT_DONE_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OUT_EOF_CH0_INT_ST` reader - The raw interrupt status bit for the OUT_EOF_CH_INT interrupt."]
pub struct OUT_EOF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl OUT_EOF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
OUT_EOF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OUT_EOF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `IN_DSCR_ERR_CH0_INT_ST` reader - The raw interrupt status bit for the IN_DSCR_ERR_CH_INT interrupt."]
pub struct IN_DSCR_ERR_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl IN_DSCR_ERR_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
IN_DSCR_ERR_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for IN_DSCR_ERR_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OUT_DSCR_ERR_CH0_INT_ST` reader - The raw interrupt status bit for the OUT_DSCR_ERR_CH_INT interrupt."]
pub struct OUT_DSCR_ERR_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl OUT_DSCR_ERR_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
OUT_DSCR_ERR_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OUT_DSCR_ERR_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `IN_DSCR_EMPTY_CH0_INT_ST` reader - The raw interrupt status bit for the IN_DSCR_EMPTY_CH_INT interrupt."]
pub struct IN_DSCR_EMPTY_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl IN_DSCR_EMPTY_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
IN_DSCR_EMPTY_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for IN_DSCR_EMPTY_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OUT_TOTAL_EOF_CH0_INT_ST` reader - The raw interrupt status bit for the OUT_TOTAL_EOF_CH_INT interrupt."]
pub struct OUT_TOTAL_EOF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl OUT_TOTAL_EOF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
OUT_TOTAL_EOF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OUT_TOTAL_EOF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `INFIFO_OVF_CH0_INT_ST` reader - The raw interrupt status bit for the INFIFO_OVF_L1_CH_INT interrupt."]
pub struct INFIFO_OVF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl INFIFO_OVF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
INFIFO_OVF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for INFIFO_OVF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `INFIFO_UDF_CH0_INT_ST` reader - The raw interrupt status bit for the INFIFO_UDF_L1_CH_INT interrupt."]
pub struct INFIFO_UDF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl INFIFO_UDF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
INFIFO_UDF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for INFIFO_UDF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OUTFIFO_OVF_CH0_INT_ST` reader - The raw interrupt status bit for the OUTFIFO_OVF_L1_CH_INT interrupt."]
pub struct OUTFIFO_OVF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl OUTFIFO_OVF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
OUTFIFO_OVF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OUTFIFO_OVF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OUTFIFO_UDF_CH0_INT_ST` reader - The raw interrupt status bit for the OUTFIFO_UDF_L1_CH_INT interrupt."]
pub struct OUTFIFO_UDF_CH0_INT_ST_R(crate::FieldReader<bool, bool>);
impl OUTFIFO_UDF_CH0_INT_ST_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
OUTFIFO_UDF_CH0_INT_ST_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OUTFIFO_UDF_CH0_INT_ST_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bit 0 - The raw interrupt status bit for the IN_DONE_CH_INT interrupt."]
#[inline(always)]
pub fn in_done_ch0_int_st(&self) -> IN_DONE_CH0_INT_ST_R {
IN_DONE_CH0_INT_ST_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - The raw interrupt status bit for the IN_SUC_EOF_CH_INT interrupt."]
#[inline(always)]
pub fn in_suc_eof_ch0_int_st(&self) -> IN_SUC_EOF_CH0_INT_ST_R {
IN_SUC_EOF_CH0_INT_ST_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - The raw interrupt status bit for the IN_ERR_EOF_CH_INT interrupt."]
#[inline(always)]
pub fn in_err_eof_ch0_int_st(&self) -> IN_ERR_EOF_CH0_INT_ST_R {
IN_ERR_EOF_CH0_INT_ST_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - The raw interrupt status bit for the OUT_DONE_CH_INT interrupt."]
#[inline(always)]
pub fn out_done_ch0_int_st(&self) -> OUT_DONE_CH0_INT_ST_R {
OUT_DONE_CH0_INT_ST_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - The raw interrupt status bit for the OUT_EOF_CH_INT interrupt."]
#[inline(always)]
pub fn out_eof_ch0_int_st(&self) -> OUT_EOF_CH0_INT_ST_R {
OUT_EOF_CH0_INT_ST_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - The raw interrupt status bit for the IN_DSCR_ERR_CH_INT interrupt."]
#[inline(always)]
pub fn in_dscr_err_ch0_int_st(&self) -> IN_DSCR_ERR_CH0_INT_ST_R {
IN_DSCR_ERR_CH0_INT_ST_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - The raw interrupt status bit for the OUT_DSCR_ERR_CH_INT interrupt."]
#[inline(always)]
pub fn out_dscr_err_ch0_int_st(&self) -> OUT_DSCR_ERR_CH0_INT_ST_R {
OUT_DSCR_ERR_CH0_INT_ST_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - The raw interrupt status bit for the IN_DSCR_EMPTY_CH_INT interrupt."]
#[inline(always)]
pub fn in_dscr_empty_ch0_int_st(&self) -> IN_DSCR_EMPTY_CH0_INT_ST_R {
IN_DSCR_EMPTY_CH0_INT_ST_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - The raw interrupt status bit for the OUT_TOTAL_EOF_CH_INT interrupt."]
#[inline(always)]
pub fn out_total_eof_ch0_int_st(&self) -> OUT_TOTAL_EOF_CH0_INT_ST_R {
OUT_TOTAL_EOF_CH0_INT_ST_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - The raw interrupt status bit for the INFIFO_OVF_L1_CH_INT interrupt."]
#[inline(always)]
pub fn infifo_ovf_ch0_int_st(&self) -> INFIFO_OVF_CH0_INT_ST_R {
INFIFO_OVF_CH0_INT_ST_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - The raw interrupt status bit for the INFIFO_UDF_L1_CH_INT interrupt."]
#[inline(always)]
pub fn infifo_udf_ch0_int_st(&self) -> INFIFO_UDF_CH0_INT_ST_R {
INFIFO_UDF_CH0_INT_ST_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - The raw interrupt status bit for the OUTFIFO_OVF_L1_CH_INT interrupt."]
#[inline(always)]
pub fn outfifo_ovf_ch0_int_st(&self) -> OUTFIFO_OVF_CH0_INT_ST_R {
OUTFIFO_OVF_CH0_INT_ST_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - The raw interrupt status bit for the OUTFIFO_UDF_L1_CH_INT interrupt."]
#[inline(always)]
pub fn outfifo_udf_ch0_int_st(&self) -> OUTFIFO_UDF_CH0_INT_ST_R {
OUTFIFO_UDF_CH0_INT_ST_R::new(((self.bits >> 12) & 1) != 0)
}
}
#[doc = "DMA_INT_ST_CH0_REG.\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 [int_st_ch0]
(index.html) module"]
pub struct INT_ST_CH0_SPEC;
impl crate::RegisterSpec for INT_ST_CH0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [int_st_ch0::R]
(R) reader structure"]
impl crate::Readable for INT_ST_CH0_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets INT_ST_CH0 to value 0"]
impl crate::Resettable for INT_ST_CH0_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}