efm32pg12_pac/gpio/
ifc.rs

1#[doc = "Writer for register IFC"]
2pub type W = crate::W<u32, super::IFC>;
3#[doc = "Register IFC `reset()`'s with value 0"]
4impl crate::ResetValue for super::IFC {
5    type Type = u32;
6    #[inline(always)]
7    fn reset_value() -> Self::Type {
8        0
9    }
10}
11#[doc = "Write proxy for field `EXT`"]
12pub struct EXT_W<'a> {
13    w: &'a mut W,
14}
15impl<'a> EXT_W<'a> {
16    #[doc = r"Writes raw bits to the field"]
17    #[inline(always)]
18    pub unsafe fn bits(self, value: u16) -> &'a mut W {
19        self.w.bits = (self.w.bits & !0xffff) | ((value as u32) & 0xffff);
20        self.w
21    }
22}
23#[doc = "Write proxy for field `EM4WU`"]
24pub struct EM4WU_W<'a> {
25    w: &'a mut W,
26}
27impl<'a> EM4WU_W<'a> {
28    #[doc = r"Writes raw bits to the field"]
29    #[inline(always)]
30    pub unsafe fn bits(self, value: u16) -> &'a mut W {
31        self.w.bits = (self.w.bits & !(0xffff << 16)) | (((value as u32) & 0xffff) << 16);
32        self.w
33    }
34}
35impl W {
36    #[doc = "Bits 0:15 - Clear EXT Interrupt Flag"]
37    #[inline(always)]
38    pub fn ext(&mut self) -> EXT_W {
39        EXT_W { w: self }
40    }
41    #[doc = "Bits 16:31 - Clear EM4WU Interrupt Flag"]
42    #[inline(always)]
43    pub fn em4wu(&mut self) -> EM4WU_W {
44        EM4WU_W { w: self }
45    }
46}