pub struct Descriptor {
pub start: u32,
pub image_len: u32,
pub file_len: u32,
pub flash_op_type: u8,
/* private fields */
}Expand description
The card’s reply to upgrade_info: image geometry and upgrade capabilities.
Fields§
§start: u32Flash address the image starts at.
image_len: u32Bytes programmed into flash.
file_len: u32Required source-file size, including trailing padding.
flash_op_type: u8Type byte for direct flash operations.
Implementations§
Source§impl Descriptor
impl Descriptor
Sourcepub const fn supports_sdram(self) -> bool
pub const fn supports_sdram(self) -> bool
The card can stage an image in SDRAM and program itself.
Sourcepub const fn has_golden(self) -> bool
pub const fn has_golden(self) -> bool
The card keeps a golden backup image.
Sourcepub const fn supports_select_part(self) -> bool
pub const fn supports_select_part(self) -> bool
The card accepts a partition selection.
Sourcepub const fn supports_golden_upgrade(self) -> bool
pub const fn supports_golden_upgrade(self) -> bool
The card accepts upgrades aimed at the golden bank.
Sourcepub const fn first_poll_ms(self) -> u64
pub const fn first_poll_ms(self) -> u64
Vendor delay before the first completion poll: 150 ms per 64 KiB
block, at least 1000 ms (timings_match_the_vendor_formulas).
Sourcepub const fn estimated_ms(self) -> u64
pub const fn estimated_ms(self) -> u64
Vendor estimate of programming time: 500 ms per 64 KiB block plus 3 ms per 256-byte page.
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Descriptor
Source§impl Debug for Descriptor
impl Debug for Descriptor
impl Eq for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptor
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