Struct sbp::messages::flash::MsgFlashProgram [−][src]
pub struct MsgFlashProgram {
pub sender_id: Option<u16>,
pub target: u8,
pub addr_start: [u8; 3],
pub addr_len: u8,
pub data: Vec<u8>,
}
Expand description
Program flash addresses
The flash program message programs a set of addresses of either the STM or M25 flash. The device replies with either a MSG_FLASH_DONE message containing the return code FLASH_OK (0) on success, or FLASH_INVALID_LEN (2) if the maximum write size is exceeded. Note that the sector-containing addresses must be erased before addresses can be programmed.
Fields
sender_id: Option<u16>
The message sender_id
target: u8
Target flags
addr_start: [u8; 3]
Starting address offset to program
addr_len: u8
Length of set of addresses to program, counting up from starting address
data: Vec<u8>
Data to program addresses with, with length N=addr_len
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 MsgFlashProgram
impl Send for MsgFlashProgram
impl Sync for MsgFlashProgram
impl Unpin for MsgFlashProgram
impl UnwindSafe for MsgFlashProgram
Blanket Implementations
Mutably borrows from an owned value. Read more