pub struct FlashInfo {
pub name: String,
pub start: String,
pub pagesize: String,
pub blankval: Option<String>,
pub filler: Option<String>,
pub ptime: Option<u32>,
pub etime: Option<u32>,
pub pname: Option<String>,
pub elements: Vec<FlashInfoElement>,
}Expand description
Represents a PDSC flashinfo element
Fields§
§name: StringName of the flash device
start: StringStart address of the flash device (hex string)
pagesize: StringFlash page size in bytes (hex string)
blankval: Option<String>Erased-byte value (hex string, usually "0xFF")
filler: Option<String>Fill byte value for gaps (hex string)
ptime: Option<u32>Page program time in microseconds
etime: Option<u32>Sector erase time in microseconds
pname: Option<String>Processor instance name this info applies to
elements: Vec<FlashInfoElement>Contiguous flash blocks and gaps, in document order (0..*)
These are populated by FlashInfo’s TryFrom<Node> impl rather than by serde_roxmltree
directly, since <block> and <gap> are interleaved children and serde_roxmltree can only
collect repeated children of a single tag name per field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlashInfo
impl<'de> Deserialize<'de> for FlashInfo
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
impl Eq for FlashInfo
impl StructuralPartialEq for FlashInfo
Auto Trait Implementations§
impl Freeze for FlashInfo
impl RefUnwindSafe for FlashInfo
impl Send for FlashInfo
impl Sync for FlashInfo
impl Unpin for FlashInfo
impl UnsafeUnpin for FlashInfo
impl UnwindSafe for FlashInfo
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