The DlnSpiMasterGetSupportedCpolValues() function retrieves supported CPOL values.
DlnSpiMasterGetSupportedCpolValues()
DLN_RESULT DlnSpiMasterGetSupportedCpolValues( HDLN handle, uint8_t port, DLN_SPI_MASTER_CPOL_VALUES *values );
A handle to the DLN-series adapter.
A number of the SPI master port.
Pointer to DLN_SPI_MASTER_CPOL_VALUES type variable that receives available CPOL values.
DLN_SPI_MASTER_CPOL_VALUES
The function successfully retrieved supported CPOL values.
The port number is not valid. Use the DlnSpiMasterGetPortCount() function to find the maximum possible port number.
The DlnSpiMasterGetSupportedCpolValues() function is defined in the dln_spi_master.h file.
dln_spi_master.h