Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • pin-interrupts
  • svd2rust-0.19.0
  • svd2rust-17.0
4 results

clr_stat0.rs

Blame
  • clr_stat0.rs 774 B
    #[doc = "Writer for register CLR_STAT0"]
    pub type W = crate::W<u32, super::CLR_STAT0>;
    #[doc = "Register CLR_STAT0 `reset()`'s with value 0"]
    impl crate::ResetValue for super::CLR_STAT0 {
        type Type = u32;
        #[inline(always)]
        fn reset_value() -> Self::Type {
            0
        }
    }
    #[doc = "Write proxy for field `CSTAT0`"]
    pub struct CSTAT0_W<'a> {
        w: &'a mut W,
    }
    impl<'a> CSTAT0_W<'a> {
        #[doc = r"Writes raw bits to the field"]
        #[inline(always)]
        pub unsafe fn bits(self, value: u8) -> &'a mut W {
            self.w.bits = (self.w.bits & !0x7f) | ((value as u32) & 0x7f);
            self.w
        }
    }
    impl W {
        #[doc = "Bits 0:6 - Interrupt clear status"]
        #[inline(always)]
        pub fn cstat0(&mut self) -> CSTAT0_W {
            CSTAT0_W { w: self }
        }
    }