The DlnSpiFlashReadPage() function receives data via SPI flash interface. The data is received as an array of 1-byte elements.
DlnSpiFlashReadPage()
DLN_RESULT DlnSpiFlashReadPage( HDLN handle, uint8_t port, uint32_t address, uint8_t *buffer, uint16_t size );
A handle to the DLN-series adapter.
A number of the SPI flash port.
Device address for reading data from.
A pointer to an array of unsigned 8-bit integers. This array will be filled with data received.
Read data size.
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 DlnSpiFlashReadPage() function is defined in the dln_spi_flash.h file.
dln_spi_flash.h