#[repr(u16)]pub enum FlashSize {
Size_2M = 65_535,
Size_32M = 32_767,
Size_16M = 16_383,
Size_8M = 8_191,
Size_4M = 4_095,
Size_1M = 2_047,
}
Expand description
Represents different flash sizes based on the corresponding size codes.
This enum defines the possible flash sizes, each represented by a specific 16-bit value. The sizes range from 2MB to 1MB, with different values for each size. The default value corresponds to a 2MB flash size.
Variants§
Size_2M = 65_535
Size_32M = 32_767
Size_16M = 16_383
Size_8M = 8_191
Size_4M = 4_095
Size_1M = 2_047
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlashSize
impl<'de> Deserialize<'de> for FlashSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FlashSize
Auto Trait Implementations§
impl Freeze for FlashSize
impl RefUnwindSafe for FlashSize
impl Send for FlashSize
impl Sync for FlashSize
impl Unpin for FlashSize
impl UnwindSafe for FlashSize
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