FlashGordon

Struct FlashGordon 

Source
pub struct FlashGordon { /* private fields */ }

Implementations§

Source§

impl FlashGordon

Source

pub fn new(flash: Flash<Enabled>) -> Self

Source

pub fn just_program_at(&mut self, address: usize) -> Result

Source

pub fn clear_page_register(&mut self)

Source

pub fn write_u8(&mut self, address: usize, byte: u8) -> Result

Source

pub fn write_u32(&mut self, address: usize, word: u32) -> Result

Source

pub fn write_u128(&mut self, address: usize, data: u128) -> Result

Source

pub fn read_u128(&mut self, address: usize) -> u128

Trait Implementations§

Source§

impl Read<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>> for FlashGordon

Source§

fn read_native(&self, address: usize, array: &mut GenericArray<u8, U16>)

Source§

fn read(&self, address: usize, buf: &mut [u8])

read a buffer of bytes from memory checks that the address and buffer size are multiples of native FLASH ReadSize.
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

Source§

fn status(&self) -> Result

check flash status
Source§

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

The smallest possible write, depends on platform TODO: can we typecheck/typehint whether address must be aligned?
Source§

fn write(&mut self, address: usize, data: &[u8]) -> Result

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.