pub struct FlashGordon { /* private fields */ }Implementations§
Source§impl FlashGordon
impl FlashGordon
pub fn new(flash: Flash<Enabled>) -> Self
pub fn just_program_at(&mut self, address: usize) -> Result
pub fn clear_page_register(&mut self)
pub fn write_u8(&mut self, address: usize, byte: u8) -> Result
pub fn write_u32(&mut self, address: usize, word: u32) -> Result
pub fn write_u128(&mut self, address: usize, data: u128) -> Result
pub fn read_u128(&mut self, address: usize) -> u128
Trait Implementations§
Source§impl WriteErase<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> for FlashGordon
impl WriteErase<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> for FlashGordon
Source§fn erase_page(&mut self, page: usize) -> Result
fn erase_page(&mut self, page: usize) -> Result
Erase specified flash page.
Source§fn write_native(
&mut self,
address: usize,
array: &GenericArray<u8, U512>,
) -> Result
fn write_native( &mut self, address: usize, array: &GenericArray<u8, U512>, ) -> Result
The smallest possible write, depends on platform
TODO: can we typecheck/typehint whether
address must be aligned?fn write(&mut self, address: usize, data: &[u8]) -> Result
Auto Trait Implementations§
impl Freeze for FlashGordon
impl RefUnwindSafe for FlashGordon
impl Send for FlashGordon
impl !Sync for FlashGordon
impl Unpin for FlashGordon
impl UnwindSafe for FlashGordon
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