The DlnSpiMasterSetCpol() function sets the clock polarity value.
DlnSpiMasterSetCpol()
DLN_RESULT DlnSpiMasterSetCpol( HDLN handle, uint8_t port, uint8_t cpol );
A handle to the DLN-series adapter.
A number of the SPI master port.
Clock polarity value. Possible values: 0 or 1.
The function successfully configured the SPI master CPOL value.
The port number is not valid. Use the DlnSpiMasterGetPortCount() [1] function to find the maximum possible port number.
By default, SPI master ports of DLN adapters have CPOL=0 configuration.
The DlnSpiMasterSetCpol() function is defined in the dln_spi_master.h file.
dln_spi_master.h
Links:[1] http://dlnware.com/dll/DlnSpiMasterGetPortCount