The DlnSpiMasterGetCpha() function retrieves the current value of clock phase (CPHA).
DlnSpiMasterGetCpha()
DLN_RESULT DlnSpiMasterGetCpha( HDLN handle, uint8_t port, uint8_t *cpha );
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 CPHA value.
uint8_t
The function successfully retrieved the SPI master CPHA value.
The port number is not valid. Use the DlnSpiMasterGetPortCount() function to find the maximum possible port number.
The DlnSpiMasterGetCpha() function is defined in the dln_spi_master.h file.
dln_spi_master.h