Struct avrox_storage::serprom::generic::SerPromD8A16be

source ·
pub struct SerPromD8A16be<const PROM_SIZE: u32, const PAGESIZE: u16, BC: SerialBusClient> { /* private fields */ }
Expand description

8 bit wide data, 16 bit wide address implementation, with big-endian addressing.

Trait Implementations§

source§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> RandomRead for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>
where BC: SerialBusClient,

source§

fn read_at_hinted( &self, addr: SAddr, buf: &mut [u8], _hint: AccessHint ) -> Result<usize>

Read into the given buffer, from the given device address. Read more
source§

fn read_at(&self, addr: SAddr, buf: &mut [u8]) -> Result<usize>

Read into the given buffer, from the given device address. Read more
source§

fn read_full_at_hinted( &self, addr: SAddr, buf: &mut [u8], hint: AccessHint ) -> Result<()>

Read into the given buffer, from the given device address. The entire buffer will be filled unless an error condition occurs (e.g. attempting to read off the end of device memory). If an error does occur, the state (partially written, not written at all) of the buffer is undefined.
source§

fn read_full_at(&self, addr: SAddr, buf: &mut [u8]) -> Result<()>

Read into the given buffer, from the given device address. The entire buffer will be filled unless an error condition occurs (e.g. attempting to read off the end of device memory). If an error does occur, the state (partially written, not written at all) of the buffer is undefined.
source§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> RandomWrite for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>
where BC: SerialBusClient,

source§

fn write_at_hinted( &mut self, addr: SAddr, buf: &[u8], _hint: AccessHint ) -> Result<usize>

Write the contents of the given buffer at the given device address. Depending on the nature of the underlying device, the write may not complete. The number of bytes actually written will be returned in the Ok() result, and it is the caller’s responsibility to resume writing the remainder.
source§

fn flush(&mut self) -> Result<()>

Flush the write to the device. Writes are not guaranteed to have been completed unless this method has been called.
source§

fn write_all_at_hinted( &mut self, addr: SAddr, buf: &[u8], hint: AccessHint ) -> Result<()>

Write the contents of the given buffer at the given device address. THe entire buffer will be written unless an error condition occurs. If an error does occur, the state (partially written, not written at all) is undefined.
source§

fn write_all_at(&mut self, addr: SAddr, buf: &[u8]) -> Result<()>

Write the contents of the given buffer at the given device address. THe entire buffer will be written unless an error condition occurs. If an error does occur, the state (partially written, not written at all) is undefined.
source§

fn write_at(&mut self, addr: SAddr, buf: &[u8]) -> Result<usize>

Write the contents of the given buffer at the given device address. Depending on the nature of the underlying device, the write may not complete. The number of bytes actually written will be returned in the Ok() result, and it is the caller’s responsibility to resume writing the remainder.
source§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> UsesSerialBusClient<BC> for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>
where BC: SerialBusClient,

source§

fn using_client(client: BC) -> Self

Auto Trait Implementations§

§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> !Freeze for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>

§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> !RefUnwindSafe for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>

§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> Send for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>
where BC: Send,

§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> !Sync for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>

§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> Unpin for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>
where BC: Unpin,

§

impl<const PROM_SIZE: u32, const PAGESIZE: u16, BC> UnwindSafe for SerPromD8A16be<PROM_SIZE, PAGESIZE, BC>
where BC: UnwindSafe,

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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.