pub struct FlashDevInfo(/* private fields */);Expand description
Flash device information as reported by flash_dev_info
Implementations§
Source§impl FlashDevInfo
impl FlashDevInfo
Sourcepub fn cs1_gpio(&self) -> u8
pub fn cs1_gpio(&self) -> u8
GPIO Number to be used for the secondary flash chip. See datasheet section 13.9
Sourcepub fn d8h_erase_supported(&self) -> bool
pub fn d8h_erase_supported(&self) -> bool
Check if all attached devices support a block erase command with a command prefix of `D8h``
Sourcepub fn cs0_size(&self) -> FlashDevInfoSize
pub fn cs0_size(&self) -> FlashDevInfoSize
Flash/PSRAM size on chip select 0
Sourcepub fn cs1_size(&self) -> FlashDevInfoSize
pub fn cs1_size(&self) -> FlashDevInfoSize
Flash/PSRAM size on chip select 1
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlashDevInfo
impl RefUnwindSafe for FlashDevInfo
impl Send for FlashDevInfo
impl Sync for FlashDevInfo
impl Unpin for FlashDevInfo
impl UnwindSafe for FlashDevInfo
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more