The DlnSpiSlaveGetPortCount() function retrieves the total number of SPI slave ports available at your DLN-series adapter.
DlnSpiSlaveGetPortCount()
DLN_RESULT DlnSpiSlaveGetPortCount( 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 the available SPI slave ports.
The function retrieved the port count successfully.
The DlnSpiSlaveGetPortCount() function is defined in the dln_spi_slave.h file.
dln_spi_slave.h