The DlnSpiSlaveSetCpha() function allows to set the clock phase (CPHA) value.
DlnSpiSlaveSetCpha()
DLN_RESULT DlnSpiSlaveSetCpha( HDLN handle, uint8_t port, uint8_t cpha );
A handle to the DLN-series adapter.
A number of the SPI slave port.
The clock phase (CPHA) value. Can be 0 or 1.
The function successfully configured the slave port mode.
The port number is not valid. Use the DlnSpiSlaveGetPortCount() [1] function to find the maximum possible port number.
These configuration changes are allowed only when the module is disabled. Use the DlnSpiSlaveDisable() [2] function to disable the SPI module before configuring the slave port.
The provided CPHA value is not valid. Use the DlnSpiSlaveGetSupportedCphaValues() [3] function to check the supported CPHA values for the current SPI slave port.
The DlnSpiSlaveSetCpha() function is defined in the dln_spi_slave.h file.
dln_spi_slave.h
Links[1] http://dlnware.com/dll/DlnSpiSlaveGetPortCount [2] http://dlnware.com/dll/DlnSpiSlaveDisable [3] http://dlnware.com/dll/DlnSpiSlaveGetSupportedCphaValues