spi_flash_write

The interface has the following parameters.
  • Synopsis:
    static inline int spi_flash_write(struct spi_flash *flash, u32 offset, size_t len, const void *buf)
  • Description: The interface is used to write data into the SPI flash.
  • Parameter:
    • flash: The SPI flash device.
    • offset: The address offset of the above device in bytes.
    • len: The length of bytes to write.
    • buf: The buffer to contain the data to write.
  • Return:
    • Success: 0.
    • Failure: Any value other than 0.