The DlnSpiFlashGetPortCount() function retrieves the total number of SPI flash ports available in your DLN-series adapter.
DlnSpiFlashGetPortCount()
DLN_RESULT DlnSpiFlashGetPortCount( HDLN handle, uint8_t *count );
A handle to the DLN-series adapter.
A pointer to an unsigned 8-bit integer that receives the number of available SPI flash ports.
The operation completed successfully and total number of SPI flash ports were retrieved.
The DlnSpiFlashGetPortCount() function is defined in the dln_spi_flash.h file.
dln_spi_flash.h