pub unsafe extern "C" fn mtd_read_page(
mtd: *mut mtd_dev_t,
dest: *mut c_void,
page: u32,
offset: u32,
size: u32,
) -> c_int
Expand description
@brief Read data from a MTD device with pagewise addressing
The MTD layer will take care of splitting up the transaction into multiple reads if it is required by the underlying storage media.
@param mtd the device to read from @param[out] dest the buffer to fill in @param[in] page Page number to start reading from @param[in] offset offset from the start of the page (in bytes) @param[in] size the number of bytes to read
@retval 0 on success @retval <0 value on error @retval -ENODEV if @p mtd is not a valid device @retval -ENOTSUP if operation is not supported on @p mtd @retval -EOVERFLOW if @p addr or @p count are not valid, i.e. outside memory @retval -EIO if I/O error occurred