pub type R = crate::R<ISRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JEOCF {
Clear = 0,
Set = 1,
}
impl From<JEOCF> for bool {
#[inline(always)]
fn from(variant: JEOCF) -> Self {
variant as u8 != 0
}
}
pub type JEOCF_R = crate::BitReader<JEOCF>;
impl JEOCF_R {
#[inline(always)]
pub const fn variant(&self) -> JEOCF {
match self.bits {
false => JEOCF::Clear,
true => JEOCF::Set,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == JEOCF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == JEOCF::Set
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum REOCF {
Clear = 0,
Set = 1,
}
impl From<REOCF> for bool {
#[inline(always)]
fn from(variant: REOCF) -> Self {
variant as u8 != 0
}
}
pub type REOCF_R = crate::BitReader<REOCF>;
impl REOCF_R {
#[inline(always)]
pub const fn variant(&self) -> REOCF {
match self.bits {
false => REOCF::Clear,
true => REOCF::Set,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == REOCF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == REOCF::Set
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JOVRF {
Clear = 0,
Set = 1,
}
impl From<JOVRF> for bool {
#[inline(always)]
fn from(variant: JOVRF) -> Self {
variant as u8 != 0
}
}
pub type JOVRF_R = crate::BitReader<JOVRF>;
impl JOVRF_R {
#[inline(always)]
pub const fn variant(&self) -> JOVRF {
match self.bits {
false => JOVRF::Clear,
true => JOVRF::Set,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == JOVRF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == JOVRF::Set
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ROVRF {
Clear = 0,
Set = 1,
}
impl From<ROVRF> for bool {
#[inline(always)]
fn from(variant: ROVRF) -> Self {
variant as u8 != 0
}
}
pub type ROVRF_R = crate::BitReader<ROVRF>;
impl ROVRF_R {
#[inline(always)]
pub const fn variant(&self) -> ROVRF {
match self.bits {
false => ROVRF::Clear,
true => ROVRF::Set,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == ROVRF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == ROVRF::Set
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AWDF {
Clear = 0,
Set = 1,
}
impl From<AWDF> for bool {
#[inline(always)]
fn from(variant: AWDF) -> Self {
variant as u8 != 0
}
}
pub type AWDF_R = crate::BitReader<AWDF>;
impl AWDF_R {
#[inline(always)]
pub const fn variant(&self) -> AWDF {
match self.bits {
false => AWDF::Clear,
true => AWDF::Set,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == AWDF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == AWDF::Set
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JCIP {
NotInProgress = 0,
InProgress = 1,
}
impl From<JCIP> for bool {
#[inline(always)]
fn from(variant: JCIP) -> Self {
variant as u8 != 0
}
}
pub type JCIP_R = crate::BitReader<JCIP>;
impl JCIP_R {
#[inline(always)]
pub const fn variant(&self) -> JCIP {
match self.bits {
false => JCIP::NotInProgress,
true => JCIP::InProgress,
}
}
#[inline(always)]
pub fn is_not_in_progress(&self) -> bool {
*self == JCIP::NotInProgress
}
#[inline(always)]
pub fn is_in_progress(&self) -> bool {
*self == JCIP::InProgress
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RCIP {
NotInProgress = 0,
InProgress = 1,
}
impl From<RCIP> for bool {
#[inline(always)]
fn from(variant: RCIP) -> Self {
variant as u8 != 0
}
}
pub type RCIP_R = crate::BitReader<RCIP>;
impl RCIP_R {
#[inline(always)]
pub const fn variant(&self) -> RCIP {
match self.bits {
false => RCIP::NotInProgress,
true => RCIP::InProgress,
}
}
#[inline(always)]
pub fn is_not_in_progress(&self) -> bool {
*self == RCIP::NotInProgress
}
#[inline(always)]
pub fn is_in_progress(&self) -> bool {
*self == RCIP::InProgress
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum CKABF {
Clear = 0,
Set = 1,
}
impl From<CKABF> for u8 {
#[inline(always)]
fn from(variant: CKABF) -> Self {
variant as _
}
}
impl crate::FieldSpec for CKABF {
type Ux = u8;
}
impl crate::IsEnum for CKABF {}
pub type CKABF_R = crate::FieldReader<CKABF>;
impl CKABF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CKABF> {
match self.bits {
0 => Some(CKABF::Clear),
1 => Some(CKABF::Set),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CKABF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == CKABF::Set
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SCDF {
Clear = 0,
Set = 1,
}
impl From<SCDF> for u8 {
#[inline(always)]
fn from(variant: SCDF) -> Self {
variant as _
}
}
impl crate::FieldSpec for SCDF {
type Ux = u8;
}
impl crate::IsEnum for SCDF {}
pub type SCDF_R = crate::FieldReader<SCDF>;
impl SCDF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<SCDF> {
match self.bits {
0 => Some(SCDF::Clear),
1 => Some(SCDF::Set),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == SCDF::Clear
}
#[inline(always)]
pub fn is_set(&self) -> bool {
*self == SCDF::Set
}
}
impl R {
#[inline(always)]
pub fn jeocf(&self) -> JEOCF_R {
JEOCF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn reocf(&self) -> REOCF_R {
REOCF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn jovrf(&self) -> JOVRF_R {
JOVRF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rovrf(&self) -> ROVRF_R {
ROVRF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn awdf(&self) -> AWDF_R {
AWDF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn jcip(&self) -> JCIP_R {
JCIP_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn rcip(&self) -> RCIP_R {
RCIP_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn ckabf(&self) -> CKABF_R {
CKABF_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn scdf(&self) -> SCDF_R {
SCDF_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ISR")
.field("scdf", &self.scdf())
.field("ckabf", &self.ckabf())
.field("rcip", &self.rcip())
.field("jcip", &self.jcip())
.field("awdf", &self.awdf())
.field("rovrf", &self.rovrf())
.field("jovrf", &self.jovrf())
.field("reocf", &self.reocf())
.field("jeocf", &self.jeocf())
.finish()
}
}
pub struct ISRrs;
impl crate::RegisterSpec for ISRrs {
type Ux = u32;
}
impl crate::Readable for ISRrs {}
impl crate::Resettable for ISRrs {
const RESET_VALUE: u32 = 0x00ff_0000;
}