pub enum BlockProtectionLevel {
None,
Top1Block,
Top2Blocks,
Top4Blocks,
Top8Blocks,
Top16Blocks,
Top32Blocks,
Top64Blocks,
Top128Blocks,
All,
}Expand description
Block protection level (BP3–BP0) per datasheet Table 6.4. Standard table; TBS selects top vs bottom.
Variants§
None
No blocks protected (BP = 0000).
Top1Block
1 block (BP = 0001).
Top2Blocks
2 blocks (BP = 0010).
Top4Blocks
4 blocks (BP = 0011).
Top8Blocks
8 blocks (BP = 0100).
Top16Blocks
16 blocks (BP = 0101).
Top32Blocks
32 blocks (BP = 0110).
Top64Blocks
64 blocks (BP = 0111).
Top128Blocks
128 blocks (BP = 1000).
All
All 256 blocks (BP = 1001).
Implementations§
Trait Implementations§
Source§impl Clone for BlockProtectionLevel
impl Clone for BlockProtectionLevel
Source§fn clone(&self) -> BlockProtectionLevel
fn clone(&self) -> BlockProtectionLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockProtectionLevel
impl Debug for BlockProtectionLevel
Source§impl PartialEq for BlockProtectionLevel
impl PartialEq for BlockProtectionLevel
impl Copy for BlockProtectionLevel
impl Eq for BlockProtectionLevel
impl StructuralPartialEq for BlockProtectionLevel
Auto Trait Implementations§
impl Freeze for BlockProtectionLevel
impl RefUnwindSafe for BlockProtectionLevel
impl Send for BlockProtectionLevel
impl Sync for BlockProtectionLevel
impl Unpin for BlockProtectionLevel
impl UnsafeUnpin for BlockProtectionLevel
impl UnwindSafe for BlockProtectionLevel
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