pub type R = crate::R<ISRrs>;
pub type W = crate::W<ISRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ADRDYR {
NotReady = 0,
Ready = 1,
}
impl From<ADRDYR> for bool {
#[inline(always)]
fn from(variant: ADRDYR) -> Self {
variant as u8 != 0
}
}
pub type ADRDY_R = crate::BitReader<ADRDYR>;
impl ADRDY_R {
#[inline(always)]
pub const fn variant(&self) -> ADRDYR {
match self.bits {
false => ADRDYR::NotReady,
true => ADRDYR::Ready,
}
}
#[inline(always)]
pub fn is_not_ready(&self) -> bool {
*self == ADRDYR::NotReady
}
#[inline(always)]
pub fn is_ready(&self) -> bool {
*self == ADRDYR::Ready
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ADRDYW {
Clear = 1,
}
impl From<ADRDYW> for bool {
#[inline(always)]
fn from(variant: ADRDYW) -> Self {
variant as u8 != 0
}
}
pub type ADRDY_W<'a, REG> = crate::BitWriter1C<'a, REG, ADRDYW>;
impl<'a, REG> ADRDY_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ADRDYW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOSMPR {
NotEnded = 0,
Ended = 1,
}
impl From<EOSMPR> for bool {
#[inline(always)]
fn from(variant: EOSMPR) -> Self {
variant as u8 != 0
}
}
pub type EOSMP_R = crate::BitReader<EOSMPR>;
impl EOSMP_R {
#[inline(always)]
pub const fn variant(&self) -> EOSMPR {
match self.bits {
false => EOSMPR::NotEnded,
true => EOSMPR::Ended,
}
}
#[inline(always)]
pub fn is_not_ended(&self) -> bool {
*self == EOSMPR::NotEnded
}
#[inline(always)]
pub fn is_ended(&self) -> bool {
*self == EOSMPR::Ended
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOSMPW {
Clear = 1,
}
impl From<EOSMPW> for bool {
#[inline(always)]
fn from(variant: EOSMPW) -> Self {
variant as u8 != 0
}
}
pub type EOSMP_W<'a, REG> = crate::BitWriter1C<'a, REG, EOSMPW>;
impl<'a, REG> EOSMP_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(EOSMPW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOCR {
NotComplete = 0,
Complete = 1,
}
impl From<EOCR> for bool {
#[inline(always)]
fn from(variant: EOCR) -> Self {
variant as u8 != 0
}
}
pub type EOC_R = crate::BitReader<EOCR>;
impl EOC_R {
#[inline(always)]
pub const fn variant(&self) -> EOCR {
match self.bits {
false => EOCR::NotComplete,
true => EOCR::Complete,
}
}
#[inline(always)]
pub fn is_not_complete(&self) -> bool {
*self == EOCR::NotComplete
}
#[inline(always)]
pub fn is_complete(&self) -> bool {
*self == EOCR::Complete
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOCW {
Clear = 1,
}
impl From<EOCW> for bool {
#[inline(always)]
fn from(variant: EOCW) -> Self {
variant as u8 != 0
}
}
pub type EOC_W<'a, REG> = crate::BitWriter1C<'a, REG, EOCW>;
impl<'a, REG> EOC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(EOCW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOSR {
NotComplete = 0,
Complete = 1,
}
impl From<EOSR> for bool {
#[inline(always)]
fn from(variant: EOSR) -> Self {
variant as u8 != 0
}
}
pub type EOS_R = crate::BitReader<EOSR>;
impl EOS_R {
#[inline(always)]
pub const fn variant(&self) -> EOSR {
match self.bits {
false => EOSR::NotComplete,
true => EOSR::Complete,
}
}
#[inline(always)]
pub fn is_not_complete(&self) -> bool {
*self == EOSR::NotComplete
}
#[inline(always)]
pub fn is_complete(&self) -> bool {
*self == EOSR::Complete
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOSW {
Clear = 1,
}
impl From<EOSW> for bool {
#[inline(always)]
fn from(variant: EOSW) -> Self {
variant as u8 != 0
}
}
pub type EOS_W<'a, REG> = crate::BitWriter1C<'a, REG, EOSW>;
impl<'a, REG> EOS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(EOSW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OVRR {
NoOverrun = 0,
Overrun = 1,
}
impl From<OVRR> for bool {
#[inline(always)]
fn from(variant: OVRR) -> Self {
variant as u8 != 0
}
}
pub type OVR_R = crate::BitReader<OVRR>;
impl OVR_R {
#[inline(always)]
pub const fn variant(&self) -> OVRR {
match self.bits {
false => OVRR::NoOverrun,
true => OVRR::Overrun,
}
}
#[inline(always)]
pub fn is_no_overrun(&self) -> bool {
*self == OVRR::NoOverrun
}
#[inline(always)]
pub fn is_overrun(&self) -> bool {
*self == OVRR::Overrun
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OVRW {
Clear = 1,
}
impl From<OVRW> for bool {
#[inline(always)]
fn from(variant: OVRW) -> Self {
variant as u8 != 0
}
}
pub type OVR_W<'a, REG> = crate::BitWriter1C<'a, REG, OVRW>;
impl<'a, REG> OVR_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(OVRW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JEOCR {
NotComplete = 0,
Complete = 1,
}
impl From<JEOCR> for bool {
#[inline(always)]
fn from(variant: JEOCR) -> Self {
variant as u8 != 0
}
}
pub type JEOC_R = crate::BitReader<JEOCR>;
impl JEOC_R {
#[inline(always)]
pub const fn variant(&self) -> JEOCR {
match self.bits {
false => JEOCR::NotComplete,
true => JEOCR::Complete,
}
}
#[inline(always)]
pub fn is_not_complete(&self) -> bool {
*self == JEOCR::NotComplete
}
#[inline(always)]
pub fn is_complete(&self) -> bool {
*self == JEOCR::Complete
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JEOCW {
Clear = 1,
}
impl From<JEOCW> for bool {
#[inline(always)]
fn from(variant: JEOCW) -> Self {
variant as u8 != 0
}
}
pub type JEOC_W<'a, REG> = crate::BitWriter1C<'a, REG, JEOCW>;
impl<'a, REG> JEOC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(JEOCW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JEOSR {
NotComplete = 0,
Complete = 1,
}
impl From<JEOSR> for bool {
#[inline(always)]
fn from(variant: JEOSR) -> Self {
variant as u8 != 0
}
}
pub type JEOS_R = crate::BitReader<JEOSR>;
impl JEOS_R {
#[inline(always)]
pub const fn variant(&self) -> JEOSR {
match self.bits {
false => JEOSR::NotComplete,
true => JEOSR::Complete,
}
}
#[inline(always)]
pub fn is_not_complete(&self) -> bool {
*self == JEOSR::NotComplete
}
#[inline(always)]
pub fn is_complete(&self) -> bool {
*self == JEOSR::Complete
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JEOSW {
Clear = 1,
}
impl From<JEOSW> for bool {
#[inline(always)]
fn from(variant: JEOSW) -> Self {
variant as u8 != 0
}
}
pub type JEOS_W<'a, REG> = crate::BitWriter1C<'a, REG, JEOSW>;
impl<'a, REG> JEOS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(JEOSW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AWD1R {
NoEvent = 0,
Event = 1,
}
impl From<AWD1R> for bool {
#[inline(always)]
fn from(variant: AWD1R) -> Self {
variant as u8 != 0
}
}
pub type AWD_R = crate::BitReader<AWD1R>;
impl AWD_R {
#[inline(always)]
pub const fn variant(&self) -> AWD1R {
match self.bits {
false => AWD1R::NoEvent,
true => AWD1R::Event,
}
}
#[inline(always)]
pub fn is_no_event(&self) -> bool {
*self == AWD1R::NoEvent
}
#[inline(always)]
pub fn is_event(&self) -> bool {
*self == AWD1R::Event
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AWD1W {
Clear = 1,
}
impl From<AWD1W> for bool {
#[inline(always)]
fn from(variant: AWD1W) -> Self {
variant as u8 != 0
}
}
pub type AWD_W<'a, REG> = crate::BitWriter1C<'a, REG, AWD1W>;
impl<'a, REG> AWD_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(AWD1W::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JQOVFR {
NoOverflow = 0,
Overflow = 1,
}
impl From<JQOVFR> for bool {
#[inline(always)]
fn from(variant: JQOVFR) -> Self {
variant as u8 != 0
}
}
pub type JQOVF_R = crate::BitReader<JQOVFR>;
impl JQOVF_R {
#[inline(always)]
pub const fn variant(&self) -> JQOVFR {
match self.bits {
false => JQOVFR::NoOverflow,
true => JQOVFR::Overflow,
}
}
#[inline(always)]
pub fn is_no_overflow(&self) -> bool {
*self == JQOVFR::NoOverflow
}
#[inline(always)]
pub fn is_overflow(&self) -> bool {
*self == JQOVFR::Overflow
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JQOVFW {
Clear = 1,
}
impl From<JQOVFW> for bool {
#[inline(always)]
fn from(variant: JQOVFW) -> Self {
variant as u8 != 0
}
}
pub type JQOVF_W<'a, REG> = crate::BitWriter1C<'a, REG, JQOVFW>;
impl<'a, REG> JQOVF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(JQOVFW::Clear)
}
}
impl R {
#[inline(always)]
pub fn adrdy(&self) -> ADRDY_R {
ADRDY_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn eosmp(&self) -> EOSMP_R {
EOSMP_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn eoc(&self) -> EOC_R {
EOC_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn eos(&self) -> EOS_R {
EOS_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ovr(&self) -> OVR_R {
OVR_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn jeoc(&self) -> JEOC_R {
JEOC_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn jeos(&self) -> JEOS_R {
JEOS_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn awd(&self, n: u8) -> AWD_R {
#[allow(clippy::no_effect)] [(); 3][n as usize];
AWD_R::new(((self.bits >> (n + 7)) & 1) != 0)
}
#[inline(always)]
pub fn awd_iter(&self) -> impl Iterator<Item = AWD_R> + '_ {
(0..3).map(move |n| AWD_R::new(((self.bits >> (n + 7)) & 1) != 0))
}
#[inline(always)]
pub fn awd1(&self) -> AWD_R {
AWD_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn awd2(&self) -> AWD_R {
AWD_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn awd3(&self) -> AWD_R {
AWD_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn jqovf(&self) -> JQOVF_R {
JQOVF_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ISR")
.field("adrdy", &self.adrdy())
.field("eosmp", &self.eosmp())
.field("eoc", &self.eoc())
.field("eos", &self.eos())
.field("ovr", &self.ovr())
.field("jeoc", &self.jeoc())
.field("jeos", &self.jeos())
.field("awd1", &self.awd1())
.field("awd2", &self.awd2())
.field("awd3", &self.awd3())
.field("jqovf", &self.jqovf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn adrdy(&mut self) -> ADRDY_W<ISRrs> {
ADRDY_W::new(self, 0)
}
#[inline(always)]
pub fn eosmp(&mut self) -> EOSMP_W<ISRrs> {
EOSMP_W::new(self, 1)
}
#[inline(always)]
pub fn eoc(&mut self) -> EOC_W<ISRrs> {
EOC_W::new(self, 2)
}
#[inline(always)]
pub fn eos(&mut self) -> EOS_W<ISRrs> {
EOS_W::new(self, 3)
}
#[inline(always)]
pub fn ovr(&mut self) -> OVR_W<ISRrs> {
OVR_W::new(self, 4)
}
#[inline(always)]
pub fn jeoc(&mut self) -> JEOC_W<ISRrs> {
JEOC_W::new(self, 5)
}
#[inline(always)]
pub fn jeos(&mut self) -> JEOS_W<ISRrs> {
JEOS_W::new(self, 6)
}
#[inline(always)]
pub fn awd(&mut self, n: u8) -> AWD_W<ISRrs> {
#[allow(clippy::no_effect)] [(); 3][n as usize];
AWD_W::new(self, n + 7)
}
#[inline(always)]
pub fn awd1(&mut self) -> AWD_W<ISRrs> {
AWD_W::new(self, 7)
}
#[inline(always)]
pub fn awd2(&mut self) -> AWD_W<ISRrs> {
AWD_W::new(self, 8)
}
#[inline(always)]
pub fn awd3(&mut self) -> AWD_W<ISRrs> {
AWD_W::new(self, 9)
}
#[inline(always)]
pub fn jqovf(&mut self) -> JQOVF_W<ISRrs> {
JQOVF_W::new(self, 10)
}
}
pub struct ISRrs;
impl crate::RegisterSpec for ISRrs {
type Ux = u32;
}
impl crate::Readable for ISRrs {}
impl crate::Writable for ISRrs {
type Safety = crate::Unsafe;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x07ff;
}
impl crate::Resettable for ISRrs {}