mcxa_pac/flexio0/
trigien.rs1#[doc = "Register `TRIGIEN` reader"]
2pub type R = crate::R<TrigienSpec>;
3#[doc = "Register `TRIGIEN` writer"]
4pub type W = crate::W<TrigienSpec>;
5#[doc = "Field `TRIE` reader - External Trigger Interrupt Enable"]
6pub type TrieR = crate::FieldReader;
7#[doc = "Field `TRIE` writer - External Trigger Interrupt Enable"]
8pub type TrieW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9impl R {
10 #[doc = "Bits 0:3 - External Trigger Interrupt Enable"]
11 #[inline(always)]
12 pub fn trie(&self) -> TrieR {
13 TrieR::new((self.bits & 0x0f) as u8)
14 }
15}
16#[cfg(feature = "debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("TRIGIEN").field("trie", &self.trie()).finish()
20 }
21}
22impl W {
23 #[doc = "Bits 0:3 - External Trigger Interrupt Enable"]
24 #[inline(always)]
25 pub fn trie(&mut self) -> TrieW<'_, TrigienSpec> {
26 TrieW::new(self, 0)
27 }
28}
29#[doc = "External Trigger Interrupt Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`trigien::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trigien::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct TrigienSpec;
31impl crate::RegisterSpec for TrigienSpec {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [`trigien::R`](R) reader structure"]
35impl crate::Readable for TrigienSpec {}
36#[doc = "`write(|w| ..)` method takes [`trigien::W`](W) writer structure"]
37impl crate::Writable for TrigienSpec {
38 type Safety = crate::Unsafe;
39}
40#[doc = "`reset()` method sets TRIGIEN to value 0"]
41impl crate::Resettable for TrigienSpec {}