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
sourceimpl Clone for FlashProperties
impl Clone for FlashProperties
sourcefn clone(&self) -> FlashProperties
fn clone(&self) -> FlashProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlashProperties
impl Debug for FlashProperties
sourceimpl Default for FlashProperties
impl Default for FlashProperties
sourceimpl<'de> Deserialize<'de> for FlashProperties
impl<'de> Deserialize<'de> for FlashProperties
sourcefn 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
sourceimpl Hash for FlashProperties
impl Hash for FlashProperties
sourceimpl PartialEq<FlashProperties> for FlashProperties
impl PartialEq<FlashProperties> for FlashProperties
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &FlashProperties) -> bool
fn ne(&self, other: &FlashProperties) -> bool
This method tests for !=
.
sourceimpl Serialize for FlashProperties
impl Serialize for FlashProperties
impl Eq for FlashProperties
impl StructuralEq 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
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