zephyr::raw

Function flash_fill

Source
pub unsafe extern "C" fn flash_fill(
    dev: *const device,
    val: u8,
    offset: i32,
    size: usize,
) -> i32
Expand description

@brief Fill selected range of device with specified value

Utility function that allows to fill specified range on a device with provided value. The @p offset and @p size of range need to be aligned to a write block size of a device.

@param dev : flash device @param val : value to use for filling the range @param offset : offset of the range to fill @param size : size of the range

@return 0 on success, negative errno code on fail.