#[repr(C)]
#[doc = "Register block"]
pub struct RegisterBlock {
_reserved0: [u8; 0x1008],
id: ID,
_reserved1: [u8; 0x04],
fsr: FSR,
fcon: FCON,
marp: MARP,
_reserved4: [u8; 0x04],
procon0: PROCON0,
procon1: PROCON1,
procon2: PROCON2,
}
impl RegisterBlock {
#[doc = "0x1008 - Flash Module Identification Register"]
#[inline(always)]
pub const fn id(&self) -> &ID {
&self.id
}
#[doc = "0x1010 - Flash Status Register"]
#[inline(always)]
pub const fn fsr(&self) -> &FSR {
&self.fsr
}
#[doc = "0x1014 - Flash Configuration Register"]
#[inline(always)]
pub const fn fcon(&self) -> &FCON {
&self.fcon
}
#[doc = "0x1018 - Margin Control Register PFLASH"]
#[inline(always)]
pub const fn marp(&self) -> &MARP {
&self.marp
}
#[doc = "0x1020 - Flash Protection Configuration Register User 0"]
#[inline(always)]
pub const fn procon0(&self) -> &PROCON0 {
&self.procon0
}
#[doc = "0x1024 - Flash Protection Configuration Register User 1"]
#[inline(always)]
pub const fn procon1(&self) -> &PROCON1 {
&self.procon1
}
#[doc = "0x1028 - Flash Protection Configuration Register User 2"]
#[inline(always)]
pub const fn procon2(&self) -> &PROCON2 {
&self.procon2
}
}
#[doc = "ID (r) register accessor: Flash Module Identification Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`id::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id`]
module"]
pub type ID = crate::Reg<id::ID_SPEC>;
#[doc = "Flash Module Identification Register"]
pub mod id;
#[doc = "FSR (r) register accessor: Flash Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsr`]
module"]
pub type FSR = crate::Reg<fsr::FSR_SPEC>;
#[doc = "Flash Status Register"]
pub mod fsr;
#[doc = "FCON (rw) register accessor: Flash Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fcon::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 [`fcon::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@fcon`]
module"]
pub type FCON = crate::Reg<fcon::FCON_SPEC>;
#[doc = "Flash Configuration Register"]
pub mod fcon;
#[doc = "MARP (rw) register accessor: Margin Control Register PFLASH\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`marp::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 [`marp::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@marp`]
module"]
pub type MARP = crate::Reg<marp::MARP_SPEC>;
#[doc = "Margin Control Register PFLASH"]
pub mod marp;
#[doc = "PROCON0 (r) register accessor: Flash Protection Configuration Register User 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`procon0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@procon0`]
module"]
pub type PROCON0 = crate::Reg<procon0::PROCON0_SPEC>;
#[doc = "Flash Protection Configuration Register User 0"]
pub mod procon0;
#[doc = "PROCON1 (r) register accessor: Flash Protection Configuration Register User 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`procon1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@procon1`]
module"]
pub type PROCON1 = crate::Reg<procon1::PROCON1_SPEC>;
#[doc = "Flash Protection Configuration Register User 1"]
pub mod procon1;
#[doc = "PROCON2 (r) register accessor: Flash Protection Configuration Register User 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`procon2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@procon2`]
module"]
pub type PROCON2 = crate::Reg<procon2::PROCON2_SPEC>;
#[doc = "Flash Protection Configuration Register User 2"]
pub mod procon2;