opentitanlib::test_utils::spi_passthru

Type Alias UploadInfo

Source
pub type UploadInfo = upload_info_t;

Aliased Type§

struct UploadInfo {
    pub opcode: u8,
    pub has_address: bool,
    pub addr_4b: bool,
    pub data_len: u16,
    pub flash_status: u32,
    pub address: u32,
    pub data: ArrayVec<u8, 256>,
}

Fields§

§opcode: u8§has_address: bool§addr_4b: bool§data_len: u16§flash_status: u32§address: u32§data: ArrayVec<u8, 256>

Implementations§

Source§

impl UploadInfo

Source

pub fn execute<F>(uart: &dyn Uart, f: F) -> Result<Self>
where F: FnOnce() -> Result<()>,