pub type R = crate::R<ISRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ISF0 {
NotPending = 0,
Pending = 1,
}
impl From<ISF0> for bool {
#[inline(always)]
fn from(variant: ISF0) -> Self {
variant as u8 != 0
}
}
pub type ISF_R = crate::BitReader<ISF0>;
impl ISF_R {
#[inline(always)]
pub const fn variant(&self) -> ISF0 {
match self.bits {
false => ISF0::NotPending,
true => ISF0::Pending,
}
}
#[inline(always)]
pub fn is_not_pending(&self) -> bool {
*self == ISF0::NotPending
}
#[inline(always)]
pub fn is_pending(&self) -> bool {
*self == ISF0::Pending
}
}
impl R {
#[inline(always)]
pub fn isf(&self, n: u8) -> ISF_R {
#[allow(clippy::no_effect)] [(); 32][n as usize];
ISF_R::new(((self.bits >> n) & 1) != 0)
}
#[inline(always)]
pub fn isf_iter(&self) -> impl Iterator<Item = ISF_R> + '_ {
(0..32).map(move |n| ISF_R::new(((self.bits >> n) & 1) != 0))
}
#[inline(always)]
pub fn isf0(&self) -> ISF_R {
ISF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn isf1(&self) -> ISF_R {
ISF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn isf2(&self) -> ISF_R {
ISF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn isf3(&self) -> ISF_R {
ISF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn isf4(&self) -> ISF_R {
ISF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn isf5(&self) -> ISF_R {
ISF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn isf6(&self) -> ISF_R {
ISF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn isf7(&self) -> ISF_R {
ISF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn isf8(&self) -> ISF_R {
ISF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn isf9(&self) -> ISF_R {
ISF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn isf10(&self) -> ISF_R {
ISF_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn isf11(&self) -> ISF_R {
ISF_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn isf12(&self) -> ISF_R {
ISF_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn isf13(&self) -> ISF_R {
ISF_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn isf14(&self) -> ISF_R {
ISF_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn isf15(&self) -> ISF_R {
ISF_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn isf16(&self) -> ISF_R {
ISF_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn isf17(&self) -> ISF_R {
ISF_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn isf18(&self) -> ISF_R {
ISF_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn isf19(&self) -> ISF_R {
ISF_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn isf20(&self) -> ISF_R {
ISF_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn isf21(&self) -> ISF_R {
ISF_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn isf22(&self) -> ISF_R {
ISF_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn isf23(&self) -> ISF_R {
ISF_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn isf24(&self) -> ISF_R {
ISF_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn isf25(&self) -> ISF_R {
ISF_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn isf26(&self) -> ISF_R {
ISF_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn isf27(&self) -> ISF_R {
ISF_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn isf28(&self) -> ISF_R {
ISF_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn isf29(&self) -> ISF_R {
ISF_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn isf30(&self) -> ISF_R {
ISF_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn isf31(&self) -> ISF_R {
ISF_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ISR")
.field("isf0", &self.isf0())
.field("isf1", &self.isf1())
.field("isf2", &self.isf2())
.field("isf3", &self.isf3())
.field("isf4", &self.isf4())
.field("isf5", &self.isf5())
.field("isf6", &self.isf6())
.field("isf7", &self.isf7())
.field("isf8", &self.isf8())
.field("isf9", &self.isf9())
.field("isf10", &self.isf10())
.field("isf11", &self.isf11())
.field("isf12", &self.isf12())
.field("isf13", &self.isf13())
.field("isf14", &self.isf14())
.field("isf15", &self.isf15())
.field("isf16", &self.isf16())
.field("isf17", &self.isf17())
.field("isf18", &self.isf18())
.field("isf19", &self.isf19())
.field("isf20", &self.isf20())
.field("isf21", &self.isf21())
.field("isf22", &self.isf22())
.field("isf23", &self.isf23())
.field("isf24", &self.isf24())
.field("isf25", &self.isf25())
.field("isf26", &self.isf26())
.field("isf27", &self.isf27())
.field("isf28", &self.isf28())
.field("isf29", &self.isf29())
.field("isf30", &self.isf30())
.field("isf31", &self.isf31())
.finish()
}
}
pub struct ISRrs;
impl crate::RegisterSpec for ISRrs {
type Ux = u32;
}
impl crate::Readable for ISRrs {}
impl crate::Resettable for ISRrs {}