pub type R = crate::R<AWCFRrs>;
pub type W = crate::W<AWCFRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CLRAWLTF0W {
Clear = 1,
}
impl From<CLRAWLTF0W> for bool {
#[inline(always)]
fn from(variant: CLRAWLTF0W) -> Self {
variant as u8 != 0
}
}
pub type CLRAWLTF_R = crate::BitReader<CLRAWLTF0W>;
impl CLRAWLTF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CLRAWLTF0W> {
match self.bits {
true => Some(CLRAWLTF0W::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CLRAWLTF0W::Clear
}
}
pub type CLRAWLTF_W<'a, REG> = crate::BitWriter1C<'a, REG, CLRAWLTF0W>;
impl<'a, REG> CLRAWLTF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CLRAWLTF0W::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CLRAWHTF0W {
Clear = 1,
}
impl From<CLRAWHTF0W> for bool {
#[inline(always)]
fn from(variant: CLRAWHTF0W) -> Self {
variant as u8 != 0
}
}
pub type CLRAWHTF_R = crate::BitReader<CLRAWHTF0W>;
impl CLRAWHTF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CLRAWHTF0W> {
match self.bits {
true => Some(CLRAWHTF0W::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CLRAWHTF0W::Clear
}
}
pub type CLRAWHTF_W<'a, REG> = crate::BitWriter1C<'a, REG, CLRAWHTF0W>;
impl<'a, REG> CLRAWHTF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CLRAWHTF0W::Clear)
}
}
impl R {
#[inline(always)]
pub fn clrawltf(&self, n: u8) -> CLRAWLTF_R {
#[allow(clippy::no_effect)] [(); 8][n as usize];
CLRAWLTF_R::new(((self.bits >> n) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf_iter(&self) -> impl Iterator<Item = CLRAWLTF_R> + '_ {
(0..8).map(move |n| CLRAWLTF_R::new(((self.bits >> n) & 1) != 0))
}
#[inline(always)]
pub fn clrawltf0(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn clrawltf1(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf2(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf3(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf4(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf5(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf6(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn clrawltf7(&self) -> CLRAWLTF_R {
CLRAWLTF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf(&self, n: u8) -> CLRAWHTF_R {
#[allow(clippy::no_effect)] [(); 8][n as usize];
CLRAWHTF_R::new(((self.bits >> (n + 8)) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf_iter(&self) -> impl Iterator<Item = CLRAWHTF_R> + '_ {
(0..8).map(move |n| CLRAWHTF_R::new(((self.bits >> (n + 8)) & 1) != 0))
}
#[inline(always)]
pub fn clrawhtf0(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf1(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf2(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf3(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf4(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf5(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf6(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn clrawhtf7(&self) -> CLRAWHTF_R {
CLRAWHTF_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AWCFR")
.field("clrawhtf0", &self.clrawhtf0())
.field("clrawhtf1", &self.clrawhtf1())
.field("clrawhtf2", &self.clrawhtf2())
.field("clrawhtf3", &self.clrawhtf3())
.field("clrawhtf4", &self.clrawhtf4())
.field("clrawhtf5", &self.clrawhtf5())
.field("clrawhtf6", &self.clrawhtf6())
.field("clrawhtf7", &self.clrawhtf7())
.field("clrawltf0", &self.clrawltf0())
.field("clrawltf1", &self.clrawltf1())
.field("clrawltf2", &self.clrawltf2())
.field("clrawltf3", &self.clrawltf3())
.field("clrawltf4", &self.clrawltf4())
.field("clrawltf5", &self.clrawltf5())
.field("clrawltf6", &self.clrawltf6())
.field("clrawltf7", &self.clrawltf7())
.finish()
}
}
impl W {
#[inline(always)]
pub fn clrawltf(&mut self, n: u8) -> CLRAWLTF_W<AWCFRrs> {
#[allow(clippy::no_effect)] [(); 8][n as usize];
CLRAWLTF_W::new(self, n)
}
#[inline(always)]
pub fn clrawltf0(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 0)
}
#[inline(always)]
pub fn clrawltf1(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 1)
}
#[inline(always)]
pub fn clrawltf2(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 2)
}
#[inline(always)]
pub fn clrawltf3(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 3)
}
#[inline(always)]
pub fn clrawltf4(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 4)
}
#[inline(always)]
pub fn clrawltf5(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 5)
}
#[inline(always)]
pub fn clrawltf6(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 6)
}
#[inline(always)]
pub fn clrawltf7(&mut self) -> CLRAWLTF_W<AWCFRrs> {
CLRAWLTF_W::new(self, 7)
}
#[inline(always)]
pub fn clrawhtf(&mut self, n: u8) -> CLRAWHTF_W<AWCFRrs> {
#[allow(clippy::no_effect)] [(); 8][n as usize];
CLRAWHTF_W::new(self, n + 8)
}
#[inline(always)]
pub fn clrawhtf0(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 8)
}
#[inline(always)]
pub fn clrawhtf1(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 9)
}
#[inline(always)]
pub fn clrawhtf2(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 10)
}
#[inline(always)]
pub fn clrawhtf3(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 11)
}
#[inline(always)]
pub fn clrawhtf4(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 12)
}
#[inline(always)]
pub fn clrawhtf5(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 13)
}
#[inline(always)]
pub fn clrawhtf6(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 14)
}
#[inline(always)]
pub fn clrawhtf7(&mut self) -> CLRAWHTF_W<AWCFRrs> {
CLRAWHTF_W::new(self, 15)
}
}
pub struct AWCFRrs;
impl crate::RegisterSpec for AWCFRrs {
type Ux = u32;
}
impl crate::Readable for AWCFRrs {}
impl crate::Writable for AWCFRrs {
type Safety = crate::Unsafe;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xffff;
}
impl crate::Resettable for AWCFRrs {}