pub struct FlashMPConfig {
pub read_en: bool,
pub write_en: bool,
pub erase_en: bool,
pub scramble_en: bool,
pub ecc_en: bool,
pub he_en: bool,
}
Expand description
Defines region permissions for flash memory protection.
To be used when requesting the flash controller to set specific permissions for a regions, or when reading the existing permission associated with a region.
Fields§
§read_en: bool
Region can be read.
write_en: bool
Region can be programmed.
erase_en: bool
Region can be erased
scramble_en: bool
Region is scramble enabled
ecc_en: bool
Region has ECC enabled
he_en: bool
Region is high endurance enabled
Trait Implementations§
Source§impl Debug for FlashMPConfig
impl Debug for FlashMPConfig
Source§impl PartialEq for FlashMPConfig
impl PartialEq for FlashMPConfig
impl StructuralPartialEq for FlashMPConfig
Auto Trait Implementations§
impl Freeze for FlashMPConfig
impl RefUnwindSafe for FlashMPConfig
impl Send for FlashMPConfig
impl Sync for FlashMPConfig
impl Unpin for FlashMPConfig
impl UnwindSafe for FlashMPConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more