#[doc = "Register `STATUS1` reader"]
pub type R = crate::R<STATUS1_SPEC>;
#[doc = "Field `CH1_DATA_LEFT_IN_FIFO` reader - NA"]
pub type CH1_DATA_LEFT_IN_FIFO_R = crate::FieldReader<u16>;
impl R {
#[doc = "Bits 0:14 - NA"]
#[inline(always)]
pub fn ch1_data_left_in_fifo(&self) -> CH1_DATA_LEFT_IN_FIFO_R {
CH1_DATA_LEFT_IN_FIFO_R::new((self.bits & 0x7fff) as u16)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STATUS1")
.field(
"ch1_data_left_in_fifo",
&format_args!("{}", self.ch1_data_left_in_fifo().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<STATUS1_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATUS1_SPEC;
impl crate::RegisterSpec for STATUS1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`status1::R`](R) reader structure"]
impl crate::Readable for STATUS1_SPEC {}
#[doc = "`reset()` method sets STATUS1 to value 0"]
impl crate::Resettable for STATUS1_SPEC {
const RESET_VALUE: u32 = 0;
}