1.8.10.14 MCSPIx_ChipSelectSetup Function
C
/* x = MCSPI instance number */
/* MCSPI master mode */
void MCSPIx_ChipSelectSetup(MCSPI_CHIP_SELECT chipSelect)
Summary
Enables the specified hardware chip select
Description
This function allows application to activate the specified chip select. The MCSPI clock phase, clock polarity, baud rate and other settings for the specified hardware chip select become active. This API must be called to switch between multiple hardware chip select lines.
Precondition
The MCSPIx_Initialize() should have been called.
Parameters
chipSelect - One of the hardware chip select from the MCSPI_CHIP_SELECT enum
Returns
None
Example
// Select NPCS1 Chip select line MCSPI1_ChipSelectSetup(MCSPI_CHIP_SELECT_NPCS1);
Remarks
None.