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() function to find the maximum possible port number.
These configuration changes are allowed only when the module is disabled. Use the DlnSpiSlaveDisable() function to disable the SPI module before configuring the slave port.
The provided CPHA value is not valid. Use the DlnSpiSlaveGetSupportedCphaValues() 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