The DlnSpiMasterGetSupportedModes() function retrieves all supported SPI master modes (CPOL and CPHA values). For more information, read Clock Phase and Polarity.
DlnSpiMasterGetSupportedModes()
DLN_RESULT DlnSpiMasterGetSupportedModes( HDLN handle, uint8_t port, DLN_SPI_MASTER_MODE_VALUES *values );
A handle to the DLN-series adapter.
A number of the SPI master port.
Pointer to DLN_SPI_MASTER_MODE_VALUES type variable that receives available mode values.
DLN_SPI_MASTER_MODE_VALUES
The function successfully retrieved supported transmission modes.
The port number is not valid. Use the DlnSpiMasterGetPortCount() function to find the maximum possible port number.
The DlnSpiMasterGetSupportedModes() function is defined in the dln_spi_master.h file.
dln_spi_master.h