Struct sbp::messages::flash::MsgFlashErase [−][src]
Expand description
Erase sector of device flash memory (host => device)
The flash erase message from the host erases a sector of either the STM or M25 onboard flash memory. The device will reply with a MSG_FLASH_DONE message containing the return code - FLASH_OK (0) on success or FLASH_INVALID_FLASH (1) if the flash specified is invalid.
Fields
sender_id: Option<u16>
The message sender_id
target: u8
Target flags
sector_num: u32
Flash sector number to erase (0-11 for the STM, 0-15 for the M25)
Trait Implementations
The message type.
The message name.
Performs the conversion.
Get the message name.
Get the message type.
Set the sender id.
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgFlashErase
impl Send for MsgFlashErase
impl Sync for MsgFlashErase
impl Unpin for MsgFlashErase
impl UnwindSafe for MsgFlashErase
Blanket Implementations
Mutably borrows from an owned value. Read more