/* Sets the ECSPI channel configuration structure to default values. 
This function is to get the channel configuration structure initialized for use in ECSPI_SetChannelConfig(). User may use the initialized structure unchanged in ECSPI_SetChannelConfig(), or modify some fields of the structure before calling ECSPI_SetChannelConfig(). */
static void ECSPI_GetDefaultChannelConfig(ecspi_channel_config_t *config)
/* Sets the ECSPI channel configuration structure to default values. 
This function is to get the channel configuration structure initialized for use in ECSPI_SetChannelConfig(). User may use the initialized structure unchanged in ECSPI_SetChannelConfig(), or modify some fields of the structure before calling ECSPI_SetChannelConfig(). */
static void ECSPI_GetDefaultChannelConfig(ecspi_channel_config_t *config)
{
    config->channelMode = kECSPI_Slave;
    config->clockInactiveState = kECSPI_ClockInactiveStateLow;
    config->dataLineInactiveState = kECSPI_DataLineInactiveStateLow;
    config->chipSlectActiveState = kECSPI_ChipSelectActiveStateLow;
    config->waveForm = kECSPI_WaveFormSingle;
    config->polarity = kECSPI_PolarityActiveHigh;
    config->phase = kECSPI_ClockPhaseFirstEdge;
}