Skip to main content

mcxa_pac/
fmu0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    fstat: Fstat,
6    fcnfg: Fcnfg,
7    fctrl: Fctrl,
8    _reserved3: [u8; 0x04],
9    fccob: [Fccob; 8],
10}
11impl RegisterBlock {
12    #[doc = "0x00 - Flash Status Register"]
13    #[inline(always)]
14    pub const fn fstat(&self) -> &Fstat {
15        &self.fstat
16    }
17    #[doc = "0x04 - Flash Configuration Register"]
18    #[inline(always)]
19    pub const fn fcnfg(&self) -> &Fcnfg {
20        &self.fcnfg
21    }
22    #[doc = "0x08 - Flash Control Register"]
23    #[inline(always)]
24    pub const fn fctrl(&self) -> &Fctrl {
25        &self.fctrl
26    }
27    #[doc = "0x10..0x30 - Flash Common Command Object Registers"]
28    #[inline(always)]
29    pub const fn fccob(&self, n: usize) -> &Fccob {
30        &self.fccob[n]
31    }
32    #[doc = "Iterator for array of:"]
33    #[doc = "0x10..0x30 - Flash Common Command Object Registers"]
34    #[inline(always)]
35    pub fn fccob_iter(&self) -> impl Iterator<Item = &Fccob> {
36        self.fccob.iter()
37    }
38}
39#[doc = "FSTAT (rw) register accessor: Flash Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`fstat::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fstat::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fstat`] module"]
40#[doc(alias = "FSTAT")]
41pub type Fstat = crate::Reg<fstat::FstatSpec>;
42#[doc = "Flash Status Register"]
43pub mod fstat;
44#[doc = "FCNFG (rw) register accessor: Flash Configuration Register\n\nYou can [`read`](crate::Reg::read) this register and get [`fcnfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fcnfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fcnfg`] module"]
45#[doc(alias = "FCNFG")]
46pub type Fcnfg = crate::Reg<fcnfg::FcnfgSpec>;
47#[doc = "Flash Configuration Register"]
48pub mod fcnfg;
49#[doc = "FCTRL (rw) register accessor: Flash Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`fctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fctrl`] module"]
50#[doc(alias = "FCTRL")]
51pub type Fctrl = crate::Reg<fctrl::FctrlSpec>;
52#[doc = "Flash Control Register"]
53pub mod fctrl;
54#[doc = "FCCOB (rw) register accessor: Flash Common Command Object Registers\n\nYou can [`read`](crate::Reg::read) this register and get [`fccob::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fccob::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fccob`] module"]
55#[doc(alias = "FCCOB")]
56pub type Fccob = crate::Reg<fccob::FccobSpec>;
57#[doc = "Flash Common Command Object Registers"]
58pub mod fccob;