The DlnSpiMasterGetCpol() function retrieves the current value of clock polarity (CPOL).
DlnSpiMasterGetCpol()
DLN_RESULT DlnSpiMasterGetCpol( HDLN handle, uint8_t port, uint8_t *cpol );
A handle to the DLN-series adapter.
A number of the SPI master port.
The pointer to uint8_t variable which will be filled with current CPOL value.
The function successfully retrieved the SPI master CPOL value.
The port number is not valid. Use the DlnSpiMasterGetPortCount() function to find the maximum possible port number.
The DlnSpiMasterGetCpol() function is defined in the dln_spi_master.h file.
dln_spi_master.h