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