pub unsafe extern "C" fn flash_read(
dev: *const device,
offset: i32,
data: *mut c_void,
len: usize,
) -> i32
Expand description
@brief Read data from flash
All flash drivers support reads without alignment restrictions on the read offset, the read size, or the destination address.
@param dev : flash dev @param offset : Offset (byte aligned) to read @param data : Buffer to store read data @param len : Number of bytes to read.
@return 0 on success, negative errno code on fail.