Struct esp8266_hal::flash::ESPFlash
source · [−]pub struct ESPFlash { /* private fields */ }
Expand description
Access for the ESP8266 builtin flash
Implementations
sourceimpl ESPFlash
impl ESPFlash
source#[link_section = ".rwtext"]pub fn erase_sectors(
&mut self,
addr: u32,
sector_count: usize
) -> Result<(), Void>
#[link_section = ".rwtext"]pub fn erase_sectors(
&mut self,
addr: u32,
sector_count: usize
) -> Result<(), Void>
Erase 4K sectors
#[link_section = ".rwtext"]pub fn erase_all(&mut self) -> Result<(), Void>
#[link_section = ".rwtext"]pub fn write_bytes(&mut self, addr: u32, data: &[u8]) -> Result<(), Void>
#[link_section = ".rwtext"]pub fn read(&mut self, addr: u32, buf: &mut [u8]) -> Result<(), Void>
Auto Trait Implementations
impl RefUnwindSafe for ESPFlash
impl Send for ESPFlash
impl !Sync for ESPFlash
impl Unpin for ESPFlash
impl UnwindSafe for ESPFlash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more