1#[doc = "Register `IRQ` reader"]
2pub type R = crate::R<IRQ_SPEC>;
3#[doc = "Register `IRQ` writer"]
4pub type W = crate::W<IRQ_SPEC>;
5#[doc = "Field `IRQ` reader - "]
6pub type IRQ_R = crate::FieldReader;
7#[doc = "Field `IRQ` writer - "]
8pub type IRQ_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10#[doc = "Bits 0:7"]
11 #[inline(always)]
12pub fn irq(&self) -> IRQ_R {
13 IRQ_R::new((self.bits & 0xff) as u8)
14 }
15}
16impl W {
17#[doc = "Bits 0:7"]
18 #[inline(always)]
19 #[must_use]
20pub fn irq(&mut self) -> IRQ_W<IRQ_SPEC> {
21 IRQ_W::new(self, 0)
22 }
23#[doc = r" Writes raw bits to the register."]
24 #[doc = r""]
25 #[doc = r" # Safety"]
26 #[doc = r""]
27 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
28 #[inline(always)]
29pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
30self.bits = bits;
31self
32}
33}
34#[doc = "State machine IRQ flags register. Write 1 to clear. There are 8 state machine IRQ flags, which can be set, cleared, and waited on by the state machines. There's no fixed association between flags and state machines -- any state machine can use any flag.
3536 Any of the 8 flags can be used for timing synchronisation between state machines, using IRQ and WAIT instructions. The lower four of these flags are also routed out to system-level interrupt requests, alongside FIFO status interrupts -- see e.g. IRQ0_INTE.
3738You can [`read`](crate::generic::Reg::read) this register and get [`irq::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irq::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
39pub struct IRQ_SPEC;
40impl crate::RegisterSpec for IRQ_SPEC {
41type Ux = u32;
42}
43#[doc = "`read()` method returns [`irq::R`](R) reader structure"]
44impl crate::Readable for IRQ_SPEC {}
45#[doc = "`write(|w| ..)` method takes [`irq::W`](W) writer structure"]
46impl crate::Writable for IRQ_SPEC {
47const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xff;
49}
50#[doc = "`reset()` method sets IRQ to value 0"]
51impl crate::Resettable for IRQ_SPEC {
52const RESET_VALUE: u32 = 0;
53}