#[repr(C, packed(1))]pub struct Extras { /* private fields */ }
Expand description
Extra configurations available on some MCUs.
Implementations§
Source§impl Extras
impl Extras
Sourcepub const fn block_size(&mut self, block_size: u32) -> &mut Self
pub const fn block_size(&mut self, block_size: u32) -> &mut Self
Set the serial NOR block size if it differs from the sector size.
By default, the configuration block signals to the hardware that the sector size is the same as the block size. Calling this will override that setting, allowing you to configure a different block size.
The behavior is unspecified if you call this with a block size that’s equal to the sector size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Extras
impl RefUnwindSafe for Extras
impl Send for Extras
impl Sync for Extras
impl Unpin for Extras
impl UnwindSafe for Extras
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