mcxn947_pac/
mrt0.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    channel: [CHANNEL; 4],
5    _reserved1: [u8; 0xb0],
6    modcfg: MODCFG,
7    idle_ch: IDLE_CH,
8    irq_flag: IRQ_FLAG,
9}
10impl RegisterBlock {
11    #[doc = "0x00..0x40 - no description available"]
12    #[inline(always)]
13    pub const fn channel(&self, n: usize) -> &CHANNEL {
14        &self.channel[n]
15    }
16    #[doc = "Iterator for array of:"]
17    #[doc = "0x00..0x40 - no description available"]
18    #[inline(always)]
19    pub fn channel_iter(&self) -> impl Iterator<Item = &CHANNEL> {
20        self.channel.iter()
21    }
22    #[doc = "0xf0 - Module Configuration"]
23    #[inline(always)]
24    pub const fn modcfg(&self) -> &MODCFG {
25        &self.modcfg
26    }
27    #[doc = "0xf4 - Idle Channel"]
28    #[inline(always)]
29    pub const fn idle_ch(&self) -> &IDLE_CH {
30        &self.idle_ch
31    }
32    #[doc = "0xf8 - Global Interrupt Flag"]
33    #[inline(always)]
34    pub const fn irq_flag(&self) -> &IRQ_FLAG {
35        &self.irq_flag
36    }
37}
38#[doc = "no description available"]
39pub use self::channel::CHANNEL;
40#[doc = r"Cluster"]
41#[doc = "no description available"]
42pub mod channel;
43#[doc = "MODCFG (rw) register accessor: Module Configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`modcfg::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 [`modcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@modcfg`]
44module"]
45pub type MODCFG = crate::Reg<modcfg::MODCFG_SPEC>;
46#[doc = "Module Configuration"]
47pub mod modcfg;
48#[doc = "IDLE_CH (r) register accessor: Idle Channel\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`idle_ch::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@idle_ch`]
49module"]
50pub type IDLE_CH = crate::Reg<idle_ch::IDLE_CH_SPEC>;
51#[doc = "Idle Channel"]
52pub mod idle_ch;
53#[doc = "IRQ_FLAG (rw) register accessor: Global Interrupt Flag\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`irq_flag::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_flag::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@irq_flag`]
54module"]
55pub type IRQ_FLAG = crate::Reg<irq_flag::IRQ_FLAG_SPEC>;
56#[doc = "Global Interrupt Flag"]
57pub mod irq_flag;