Struct probe_rs_target::FlashProperties
source · pub struct FlashProperties {
pub address_range: Range<u64>,
pub page_size: u32,
pub erased_byte_value: u8,
pub program_page_timeout: u32,
pub erase_sector_timeout: u32,
pub sectors: Vec<SectorDescription>,
}
Expand description
Properties of flash memory, which are used when programming Flash memory.
These values are read from the YAML target description files.
Fields§
§address_range: Range<u64>
The range of the device flash.
page_size: u32
The page size of the device flash.
erased_byte_value: u8
The value of a byte in flash that was just erased.
program_page_timeout: u32
The approximative time it takes to program a page.
erase_sector_timeout: u32
The approximative time it takes to erase a sector.
sectors: Vec<SectorDescription>
The available sectors of the device flash.
Trait Implementations§
source§impl Clone for FlashProperties
impl Clone for FlashProperties
source§fn clone(&self) -> FlashProperties
fn clone(&self) -> FlashProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FlashProperties
impl Debug for FlashProperties
source§impl Default for FlashProperties
impl Default for FlashProperties
source§impl<'de> Deserialize<'de> for FlashProperties
impl<'de> Deserialize<'de> for FlashProperties
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FlashProperties
impl Hash for FlashProperties
source§impl PartialEq for FlashProperties
impl PartialEq for FlashProperties
source§fn eq(&self, other: &FlashProperties) -> bool
fn eq(&self, other: &FlashProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FlashProperties
impl Serialize for FlashProperties
impl Eq for FlashProperties
impl StructuralPartialEq for FlashProperties
Auto Trait Implementations§
impl RefUnwindSafe for FlashProperties
impl Send for FlashProperties
impl Sync for FlashProperties
impl Unpin for FlashProperties
impl UnwindSafe for FlashProperties
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