/* This API initializes the configuration structure for LPSPI_SlaveInit(). The initialized structure can remain unchanged in LPSPI_SlaveInit() or can be modified before calling the LPSPI_SlaveInit(). Example: code lpspi_slave_config_t slaveConfig; LPSPI_SlaveGetDefaultConfig(&slaveConfig); endcode param slaveConfig pointer to lpspi_slave_config_t structure.  */
void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig)
/* This API initializes the configuration structure for LPSPI_SlaveInit(). The initialized structure can remain unchanged in LPSPI_SlaveInit() or can be modified before calling the LPSPI_SlaveInit(). Example: code lpspi_slave_config_t slaveConfig; LPSPI_SlaveGetDefaultConfig(&slaveConfig); endcode param slaveConfig pointer to lpspi_slave_config_t structure.  */
void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig)
{
    assert(slaveConfig);
    memset(slaveConfig, 0, sizeof(*slaveConfig));
    slaveConfig->bitsPerFrame = 8;
    slaveConfig->cpol         = kLPSPI_ClockPolarityActiveHigh;
    slaveConfig->cpha         = kLPSPI_ClockPhaseFirstEdge;
    slaveConfig->direction    = kLPSPI_MsbFirst;
    slaveConfig->whichPcs           = kLPSPI_Pcs0;
    slaveConfig->pcsActiveHighOrLow = kLPSPI_PcsActiveLow;
    slaveConfig->pinCfg        = kLPSPI_SdiInSdoOut;
    slaveConfig->dataOutConfig = kLpspiDataOutRetained;
}