The DlnSpiFlashProgramPage() function transfers data by using SPI flash interface.
DlnSpiFlashProgramPage()
DLN_RESULT DlnSpiFlashProgramPage( HDLN handle, uint8_t port, uint32_t address, uint8_t *buffer, uint16_t size, uint32_t timeout );
A handle to the DLN-series adapter.
A number of the SPI flash port.
Address value.
Pointer to byte variable with data to be sent.
Buffer size.
Timeout value.
The function successfully retrieved the selected SS lines.
The port number is not valid. Use the DlnSpiFlashGetPortCount() function to find the maximum possible port number.
The buffer size is not valid. This value cannot exceed 256 bytes.
The SPI flash port is disabled. Use the DlnSpiFlashEnable() function to activate the SPI flash port.
The DlnSpiFlashProgramPage() function is defined in dln_spi_flash.h file.
dln_spi_flash.h