![]() |
PDK API Guide for J721E
|
This file contains the function prototypes for the device abstraction layer for MCSPI. It also contains necessary structure, enum and macro definitions.
Programming sequence of MCSPI is as follows:
Go to the source code of this file.
Macros | |
#define | MCSPI_CHANNEL_0 (0U) |
McSPI channel 0 is used for data communication. More... | |
#define | MCSPI_CHANNEL_1 (1U) |
McSPI channel 1 is used for data communication. More... | |
#define | MCSPI_CHANNEL_2 (2U) |
McSPI channel 2 is used for data communication. More... | |
#define | MCSPI_CHANNEL_3 (3U) |
McSPI channel 3 is used for data communication. More... | |
#define | MCSPI_CLK_MODE_0 |
McSPI clock Mode 0 is selected SPICLK is active high and sampling occurs on the rising edge. More... | |
#define | MCSPI_CLK_MODE_1 |
McSPI clock Mode 1 is selected SPICLK is active high and sampling occurs on the falling edge. More... | |
#define | MCSPI_CLK_MODE_2 |
McSPI clock Mode 2 is selected SPICLK is active low and sampling occurs on the falling edge. More... | |
#define | MCSPI_CLK_MODE_3 |
McSPI clock Mode 3 is selected SPICLK is active low and sampling occurs on the rising edge. More... | |
#define | MCSPI_REG_OFFSET (0x14U) |
McSPI Register Offset for MCSPI_CHxCONF, MCSPI_CHxSTAT, MCSPI_CHxCTRL, MCSPI_TXx and MCSPI_RXx register sets. More... | |
#define | MCSPI_CHCONF(x) |
Base address of McSPI Channel configuration : MCSPI_CHCONF(x) More... | |
#define | MCSPI_CHSTAT(x) |
Base address of McSPI Channel status : McSPI_CHSTAT(x) More... | |
#define | MCSPI_CHCTRL(x) |
Base address of McSPI_CHCTRL(x) which is used to enable channel. More... | |
#define | MCSPI_CHTX(x) |
Base address of McSPI_CHTX(x) which is used to store data to be transmitted. More... | |
#define | MCSPI_CHRX(x) |
Base address of McSPI_CHRX(x) which is used to store data to be received. More... | |
#define | MCSPI_WORD_LENGTH_MIN ((uint32_t) 4U) |
Minumum word lengths that is valid for McSPI channel configuration. More... | |
#define | MCSPI_WORD_LENGTH_MAX ((uint32_t) 32U) |
Maximum word lengths that is valid for McSPI channel configuration. More... | |
#define | MCSPI_WORD_LENGTH(n) |
Values used to set the word length for McSPI communication 'n' can take values only between 4 <= n <= 32. More... | |
#define | MCSPI_CS_TCS_0PNT5_CLK |
chip select time control(TCS) configuration : Zero interface clock cycle between CS toggling and first or last edge of SPI clock More... | |
#define | MCSPI_CS_TCS_1PNT5_CLK |
chip select time control(TCS) configuration : One interface clock cycle between CS toggling and first or last edge of SPI clock More... | |
#define | MCSPI_CS_TCS_2PNT5_CLK |
chip select time control(TCS) configuration : Two interface clock cycles between CS toggling and first or last edge of SPI clock More... | |
#define | MCSPI_CS_TCS_3PNT5_CLK |
chip select time control(TCS) configuration : Three interface clock cycles between CS toggling and first or last edge of SPI clock More... | |
#define | MCSPI_START_BIT_POL_LOW (MCSPI_CH0CONF_SBPOL_LOWLEVEL) |
Low polarity is set for start bit for McSPI communication. More... | |
#define | MCSPI_START_BIT_POL_HIGH (MCSPI_CH0CONF_SBPOL_HIGHLEVEL) |
High polarity is set for start bit for McSPI communication. More... | |
#define | MCSPI_TX_RX_MODE |
Transmit-receive mode of McSPI peripheral in master mode is configured. More... | |
#define | MCSPI_RX_ONLY_MODE |
Only Receive mode of McSPI peripheral in master mode is configured. More... | |
#define | MCSPI_TX_ONLY_MODE |
Only Transmit mode of McSPI peripheral in master mode is configured. More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_0 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission Data Line 0 (SPIDAT[0]) selected for transmission. More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_1 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission No transmission on Data Line 0 (SPIDAT[0]) More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_2 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) Data line 0 (SPIDAT[0]) selected for transmission. More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_3 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) No transmission on Data Line 0 (SPIDAT[0]) More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_4 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission Data Line 0 (SPIDAT[0]) selected for transmission. More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_5 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission No transmission on Data Line 0 (SPIDAT[0]) More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_6 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) Data line 0 (SPIDAT[0]) selected for transmission. More... | |
#define | MCSPI_DATA_LINE_COMM_MODE_7 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) No transmission on Data Line 0 (SPIDAT[0]) More... | |
#define | MCSPI_RX_FIFO_ENABLE |
McSPI peripheral Rx FIFO is enabled. More... | |
#define | MCSPI_RX_FIFO_DISABLE |
McSPI peripheral Rx FIFO is disabled. More... | |
#define | MCSPI_TX_FIFO_ENABLE |
McSPI peripheral Tx FIFO is enabled. More... | |
#define | MCSPI_TX_FIFO_DISABLE |
McSPI peripheral Tx FIFO is disabled. More... | |
#define | MCSPI_DMA_RX_EVENT |
McSPI peripheral read DMA event is enabled. More... | |
#define | MCSPI_DMA_TX_EVENT |
McSPI peripheral write DMA event is enabled. More... | |
#define | MCSPI_INT_TX_EMPTY(chan) |
Mask value of TX Empty interrupt enable of McSPI peripheral for the corresponding channel. More... | |
#define | MCSPI_INT_TX_UNDERFLOW(chan) |
Mask value of TX Underflow interrupt enable of McSPI peripheral for the corresponding channel. More... | |
#define | MCSPI_INT_RX_FULL(chan) |
Mask value of RX Full interrupt enable of McSPI peripheral for the corresponding channel. More... | |
#define | MCSPI_INT_RX0_OVERFLOW |
Mask value of RX Overflow interrupt status of McSPI peripheral. More... | |
#define | MCSPI_INT_EOWKE |
Mask value of End of word count interrupt enable of McSPI peripheral. More... | |
#define | MCSPI_INITDLY_0 |
No delay is configured for first spi transfer from McSPI peripheral. More... | |
#define | MCSPI_INITDLY_4 |
4 SPI bus clock delays is configured for first spi transfer from McSPI peripheral. More... | |
#define | MCSPI_INITDLY_8 |
8 SPI bus clock delays is configured for first spi transfer from McSPI peripheral. More... | |
#define | MCSPI_INITDLY_16 |
16 SPI bus clock delays is configured for first spi transfer from McSPI peripheral. More... | |
#define | MCSPI_INITDLY_32 |
32 SPI bus clock delays is configured for first spi transfer from McSPI peripheral. More... | |
#define | MCSPI_CH_STAT_RXS_FULL |
McSPI channel status if Rx buffer is full. More... | |
#define | MCSPI_CH_STAT_TXS_EMPTY |
McSPI channel status if Tx buffer is empty. More... | |
#define | MCSPI_CH_STAT_EOT |
McSPI channel status if End of Transfer is completed. More... | |
#define | MCSPI_CH_TXFFE |
McSPI channel status if Tx FIFO buffer is empty. More... | |
#define | MCSPI_CH_TXFFF |
McSPI channel status if Tx FIFO buffer is full. More... | |
#define | MCSPI_CH_RXFFE |
McSPI channel status if Rx FIFO buffer is empty. More... | |
#define | MCSPI_CH_RXFFF |
McSPI channel status if Rx FIFO buffer is full. More... | |
#define | MCSPI_MOA_ENABLE |
Multiple word ocp access is enabled. More... | |
#define | MCSPI_MOA_DISABLE |
Multiple word ocp access is disabled. More... | |
#define | MCSPI_SINGLE_CH |
Single channel is configured for MCSPI Peripheral. More... | |
#define | MCSPI_MULTI_CH |
Multi channel is configured for MCSPI Peripheral. More... | |
#define | MCSPI_CS_POL_HIGH |
Chip select is held high during active state. More... | |
#define | MCSPI_CS_POL_LOW |
Chip select is held low during active state. More... | |
#define | MCSPI_FDAA_DISABLE |
FDAA operation of McSPI peripheral is disabled. More... | |
#define | MCSPI_FDAA_ENABLE |
FDAA operation of McSPI peripheral is enabled. More... | |
#define | MCSPI_CLOCKS_OCP_OFF_FUNC_OFF |
Both OCP and Functional clock is switched off. More... | |
#define | MCSPI_CLOCKS_OCP_ON_FUNC_OFF |
OCP clock is maintained but Functional clock is switched off. More... | |
#define | MCSPI_CLOCKS_OCP_OFF_FUNC_ON |
Functional clock is maintained but OCP clock is switched off. More... | |
#define | MCSPI_CLOCKS_OCP_ON_FUNC_ON |
Both OCP and Functional clock is maintained. More... | |
#define | MCSPI_SIDLEMODE_FORCE |
Force Idle Mode is requested for MCSPI peripheral. More... | |
#define | MCSPI_SIDLEMODE_NO |
No Idle Mode is requested for MCSPI peripheral. More... | |
#define | MCSPI_SIDLEMODE_SMART_IDLE |
Smart Idle Mode is requested for MCSPI peripheral. More... | |
#define | MCSPI_WAKEUP_ENABLE |
Wake-up feature control is enabled. More... | |
#define | MCSPI_WAKEUP_DISABLE |
Wake-up feature control is disabled. More... | |
#define | MCSPI_AUTOIDLE_ON |
Auromatic OCP clock gating is configured for MCSPI peripheral. More... | |
#define | MCSPI_AUTOIDLE_OFF |
OCP clock is configured as free running state for MCSPI peripheral. More... | |
Functions | |
void | McSPIClkConfig (uint32_t baseAddr, uint32_t spiInClk, uint32_t spiOutClk, uint32_t chNum, uint32_t clkMode) |
Configures the clock. More... | |
void | McSPIWordLengthSet (uint32_t baseAddr, uint32_t wordLength, uint32_t chNum) |
Configure the word length. More... | |
void | McSPICSEnable (uint32_t baseAddr) |
This API will enable the chip select pin. More... | |
void | McSPICSDisable (uint32_t baseAddr) |
This API will disable the chip select pin. More... | |
void | McSPICSPolarityConfig (uint32_t baseAddr, uint32_t spiEnPol, uint32_t chNum) |
This API will configure the chip select polarity. More... | |
void | McSPICSTimeControlSet (uint32_t baseAddr, uint32_t csTimeControl, uint32_t chNum) |
This API will configure the chip select time control. More... | |
static void | McSPICSAssert (uint32_t baseAddr, uint32_t chNum) |
This API will activate the chip select line. More... | |
static void | McSPICSDeAssert (uint32_t baseAddr, uint32_t chNum) |
This API will deactivate the chip select line. More... | |
void | McSPIStartBitEnable (uint32_t baseAddr, uint32_t chNum) |
This API will enable start bit. More... | |
void | McSPIStartBitPolarityConfig (uint32_t baseAddr, uint32_t startBitPol, uint32_t chNum) |
This API will configure the polarity of start bit. More... | |
void | McSPIStartBitDisable (uint32_t baseAddr, uint32_t chNum) |
This API will disable the start bit mode of McSPI peripheral. More... | |
void | McSPIMasterModeEnable (uint32_t baseAddr) |
This API will enable the McSPI controller in master mode. More... | |
void | McSPISlaveModeEnable (uint32_t baseAddr) |
This call will enable the McSPI controller in Slave mode. . More... | |
uint32_t | McSPIMasterModeConfig (uint32_t baseAddr, uint32_t channelMode, uint32_t trMode, uint32_t pinMode, uint32_t chNum) |
This API will enable the McSPI controller in master mode and configure other parameters required for master mode. More... | |
static void | McSPIChannelEnable (uint32_t baseAddr, uint32_t chNum) |
This API will enable the channel of McSPI controller. More... | |
static void | McSPIChannelDisable (uint32_t baseAddr, uint32_t chNum) |
This API will disable the channel of McSPI controller. More... | |
void | McSPIReset (uint32_t baseAddr) |
This API will reset the McSPI peripheral. More... | |
void | McSPITurboModeEnable (uint32_t baseAddr, uint32_t chNum) |
This API will enable the McSPI turbo mode of operation. More... | |
void | McSPITurboModeDisable (uint32_t baseAddr, uint32_t chNum) |
This API will disable the McSPI turbo mode of operation. More... | |
void | McSPITxFIFOConfig (uint32_t baseAddr, uint32_t txFifo, uint32_t chNum) |
This API will enable/disable the Tx FIFOs of McSPI peripheral. More... | |
void | McSPIRxFIFOConfig (uint32_t baseAddr, uint32_t rxFifo, uint32_t chNum) |
This API will enable/disable the Rx FIFOs of McSPI peripheral. More... | |
void | McSPIFIFOTrigLvlSet (uint32_t baseAddr, uint8_t afl, uint8_t ael, uint32_t trMode) |
This API will set the transfer levels used by FIFO depending on the various McSPI transmit/receive modes. More... | |
void | McSPIWordCountSet (uint32_t baseAddr, uint16_t wCnt) |
This API will set the McSPI word counter value. More... | |
void | McSPIDMAEnable (uint32_t baseAddr, uint32_t dmaFlags, uint32_t chNum) |
This API will enable the DMA read/write events of McSPI. More... | |
void | McSPIDMADisable (uint32_t baseAddr, uint32_t dmaFlags, uint32_t chNum) |
This API will disable the DMA read/write events of McSPI. More... | |
void | McSPIIntEnable (uint32_t baseAddr, uint32_t intFlags) |
This API will enable the McSPI Interrupts. More... | |
void | McSPIIntDisable (uint32_t baseAddr, uint32_t intFlags) |
This API will disable the McSPI Interrupts. More... | |
void | McSPIInitDelayConfig (uint32_t baseAddr, uint32_t initDelay) |
This API will set initial delay for first transfer from McSPI peripheral. More... | |
static void | McSPITransmitData (uint32_t baseAddr, uint32_t txData, uint32_t chNum) |
This API will put the data on to the McSPI Channel transmit register. More... | |
uint32_t | McSPIReceiveData (uint32_t baseAddr, uint32_t chNum) |
This API will return the data present in the MCSPI_RX register. More... | |
uint32_t | McSPIIntStatusGet (uint32_t baseAddr) |
This API will return the status of the McSPI peripheral interrupts. More... | |
void | McSPIIntStatusClear (uint32_t baseAddr, uint32_t intFlags) |
This API will clear the status of McSPI Interrupts. More... | |
static uint32_t | McSPIChannelStatusGet (uint32_t baseAddr, uint32_t chNum) |
This API will return the status of the McSPI channel currently in use. More... | |
void | McSPIMultipleWordAccessConfig (uint32_t baseAddr, uint32_t moa) |
This API will enable/disable multiple word OCP access for McSPI peripheral. More... | |
void | McSPIFIFODatManagementConfig (uint32_t baseAddr, uint32_t fdaa) |
This API will enable/disable the FIFO DMA address 256-bit aligned feature of McSPI peripheral. More... | |
void | MCSPISysConfigSetup (uint32_t baseAddr, uint32_t clockActivity, uint32_t sidleMode, uint32_t wakeUp, uint32_t autoIdle) |
MCSPISysConfigSetup() description for void MCSPISysConfigSetup(). This call will setup the SYSCONFIG register of the McSPI peripheral. More... | |
uint32_t | MCSPIPinDirSet (uint32_t baseAddr, uint32_t trMode, uint32_t pinMode, uint32_t chNum) |
MCSPIPinDirSet() description for void MCSPIPinDirSet(). This call will configure the Pin Direction and the transfer mode depending on the user sent values. More... | |
void | MCSPISingleChModeEnable (uint32_t baseAddr) |
MCSPISingleChModeEnable() description for void MCSPISingleChModeEnable(). This call will configure McSPI to work in single channel mode. More... | |
void | MCSPIMultiChModeEnable (uint32_t baseAddr) |
MCSPIMultiChModeEnable() description for void MCSPIMultiChModeEnable(). This call will configure McSPI to work in Multi channel mode. More... | |
void | McSPISetSlaveChipSel (uint32_t baseAddr, uint32_t chNum, uint32_t slaveChipSel) |
McSPISetSlaveChipSel() description for void McSPISetSlaveChipSel(). This call will activate the user specified chip select line. More... | |
static uint32_t | McSPIGetChannelCtrl (uint32_t baseAddr, uint32_t chNum) |
This API returns Channel control register value. More... | |
static void | McSPISetChannelCtrl (uint32_t baseAddr, uint32_t chNum, uint32_t regVal) |
This API sets Channel control register value. More... | |
static uint32_t | McSPIGetChannelConf (uint32_t baseAddr, uint32_t chNum) |
This API returns Channel Config register value. More... | |
static void | McSPISetChannelConf (uint32_t baseAddr, uint32_t chNum, uint32_t regVal) |
This API sets Channel Config register value. More... | |
#define MCSPI_CLK_MODE_0 |
McSPI clock Mode 0 is selected SPICLK is active high and sampling occurs on the rising edge.
#define MCSPI_CLK_MODE_1 |
McSPI clock Mode 1 is selected SPICLK is active high and sampling occurs on the falling edge.
#define MCSPI_CLK_MODE_2 |
McSPI clock Mode 2 is selected SPICLK is active low and sampling occurs on the falling edge.
#define MCSPI_CLK_MODE_3 |
McSPI clock Mode 3 is selected SPICLK is active low and sampling occurs on the rising edge.
#define MCSPI_REG_OFFSET (0x14U) |
McSPI Register Offset for MCSPI_CHxCONF, MCSPI_CHxSTAT, MCSPI_CHxCTRL, MCSPI_TXx and MCSPI_RXx register sets.
#define MCSPI_CHCONF | ( | x | ) |
Base address of McSPI Channel configuration : MCSPI_CHCONF(x)
#define MCSPI_CHSTAT | ( | x | ) |
Base address of McSPI Channel status : McSPI_CHSTAT(x)
#define MCSPI_CHCTRL | ( | x | ) |
Base address of McSPI_CHCTRL(x) which is used to enable channel.
#define MCSPI_CHTX | ( | x | ) |
Base address of McSPI_CHTX(x) which is used to store data to be transmitted.
#define MCSPI_CHRX | ( | x | ) |
Base address of McSPI_CHRX(x) which is used to store data to be received.
#define MCSPI_WORD_LENGTH_MIN ((uint32_t) 4U) |
Minumum word lengths that is valid for McSPI channel configuration.
#define MCSPI_WORD_LENGTH_MAX ((uint32_t) 32U) |
Maximum word lengths that is valid for McSPI channel configuration.
#define MCSPI_WORD_LENGTH | ( | n | ) |
Values used to set the word length for McSPI communication 'n' can take values only between 4 <= n <= 32.
#define MCSPI_CS_TCS_0PNT5_CLK |
chip select time control(TCS) configuration : Zero interface clock cycle between CS toggling and first or last edge of SPI clock
#define MCSPI_CS_TCS_1PNT5_CLK |
chip select time control(TCS) configuration : One interface clock cycle between CS toggling and first or last edge of SPI clock
#define MCSPI_CS_TCS_2PNT5_CLK |
chip select time control(TCS) configuration : Two interface clock cycles between CS toggling and first or last edge of SPI clock
#define MCSPI_CS_TCS_3PNT5_CLK |
chip select time control(TCS) configuration : Three interface clock cycles between CS toggling and first or last edge of SPI clock
#define MCSPI_START_BIT_POL_LOW (MCSPI_CH0CONF_SBPOL_LOWLEVEL) |
Low polarity is set for start bit for McSPI communication.
#define MCSPI_START_BIT_POL_HIGH (MCSPI_CH0CONF_SBPOL_HIGHLEVEL) |
High polarity is set for start bit for McSPI communication.
#define MCSPI_TX_RX_MODE |
Transmit-receive mode of McSPI peripheral in master mode is configured.
#define MCSPI_RX_ONLY_MODE |
Only Receive mode of McSPI peripheral in master mode is configured.
#define MCSPI_TX_ONLY_MODE |
Only Transmit mode of McSPI peripheral in master mode is configured.
#define MCSPI_DATA_LINE_COMM_MODE_0 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission Data Line 0 (SPIDAT[0]) selected for transmission.
#define MCSPI_DATA_LINE_COMM_MODE_1 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission No transmission on Data Line 0 (SPIDAT[0])
#define MCSPI_DATA_LINE_COMM_MODE_2 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) Data line 0 (SPIDAT[0]) selected for transmission.
#define MCSPI_DATA_LINE_COMM_MODE_3 |
Communication on Data line pins is configured as : Data line 0 (SPIDAT[0]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) No transmission on Data Line 0 (SPIDAT[0])
#define MCSPI_DATA_LINE_COMM_MODE_4 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission Data Line 0 (SPIDAT[0]) selected for transmission.
#define MCSPI_DATA_LINE_COMM_MODE_5 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception Data line 1 (SPIDAT[1]) selected for transmission No transmission on Data Line 0 (SPIDAT[0])
#define MCSPI_DATA_LINE_COMM_MODE_6 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) Data line 0 (SPIDAT[0]) selected for transmission.
#define MCSPI_DATA_LINE_COMM_MODE_7 |
Communication on Data line pins is configured as : Data line 1 (SPIDAT[1]) selected for reception No transmission on Data Line 1 (SPIDAT[1]) No transmission on Data Line 0 (SPIDAT[0])
#define MCSPI_RX_FIFO_ENABLE |
McSPI peripheral Rx FIFO is enabled.
#define MCSPI_RX_FIFO_DISABLE |
McSPI peripheral Rx FIFO is disabled.
#define MCSPI_TX_FIFO_ENABLE |
McSPI peripheral Tx FIFO is enabled.
#define MCSPI_TX_FIFO_DISABLE |
McSPI peripheral Tx FIFO is disabled.
#define MCSPI_DMA_RX_EVENT |
McSPI peripheral read DMA event is enabled.
#define MCSPI_DMA_TX_EVENT |
McSPI peripheral write DMA event is enabled.
#define MCSPI_INT_TX_EMPTY | ( | chan | ) |
Mask value of TX Empty interrupt enable of McSPI peripheral for the corresponding channel.
#define MCSPI_INT_TX_UNDERFLOW | ( | chan | ) |
Mask value of TX Underflow interrupt enable of McSPI peripheral for the corresponding channel.
#define MCSPI_INT_RX_FULL | ( | chan | ) |
Mask value of RX Full interrupt enable of McSPI peripheral for the corresponding channel.
#define MCSPI_INT_RX0_OVERFLOW |
Mask value of RX Overflow interrupt status of McSPI peripheral.
#define MCSPI_INT_EOWKE |
Mask value of End of word count interrupt enable of McSPI peripheral.
#define MCSPI_INITDLY_0 |
No delay is configured for first spi transfer from McSPI peripheral.
#define MCSPI_INITDLY_4 |
4 SPI bus clock delays is configured for first spi transfer from McSPI peripheral.
#define MCSPI_INITDLY_8 |
8 SPI bus clock delays is configured for first spi transfer from McSPI peripheral.
#define MCSPI_INITDLY_16 |
16 SPI bus clock delays is configured for first spi transfer from McSPI peripheral.
#define MCSPI_INITDLY_32 |
32 SPI bus clock delays is configured for first spi transfer from McSPI peripheral.
#define MCSPI_CH_STAT_RXS_FULL |
McSPI channel status if Rx buffer is full.
#define MCSPI_CH_STAT_TXS_EMPTY |
McSPI channel status if Tx buffer is empty.
#define MCSPI_CH_STAT_EOT |
McSPI channel status if End of Transfer is completed.
#define MCSPI_CH_TXFFE |
McSPI channel status if Tx FIFO buffer is empty.
#define MCSPI_CH_TXFFF |
McSPI channel status if Tx FIFO buffer is full.
#define MCSPI_CH_RXFFE |
McSPI channel status if Rx FIFO buffer is empty.
#define MCSPI_CH_RXFFF |
McSPI channel status if Rx FIFO buffer is full.
#define MCSPI_MOA_ENABLE |
Multiple word ocp access is enabled.
#define MCSPI_MOA_DISABLE |
Multiple word ocp access is disabled.
#define MCSPI_SINGLE_CH |
Single channel is configured for MCSPI Peripheral.
#define MCSPI_MULTI_CH |
Multi channel is configured for MCSPI Peripheral.
#define MCSPI_CS_POL_HIGH |
Chip select is held high during active state.
#define MCSPI_CS_POL_LOW |
Chip select is held low during active state.
#define MCSPI_FDAA_DISABLE |
FDAA operation of McSPI peripheral is disabled.
#define MCSPI_FDAA_ENABLE |
FDAA operation of McSPI peripheral is enabled.
#define MCSPI_CLOCKS_OCP_OFF_FUNC_OFF |
Both OCP and Functional clock is switched off.
#define MCSPI_CLOCKS_OCP_ON_FUNC_OFF |
OCP clock is maintained but Functional clock is switched off.
#define MCSPI_CLOCKS_OCP_OFF_FUNC_ON |
Functional clock is maintained but OCP clock is switched off.
#define MCSPI_CLOCKS_OCP_ON_FUNC_ON |
Both OCP and Functional clock is maintained.
#define MCSPI_SIDLEMODE_FORCE |
Force Idle Mode is requested for MCSPI peripheral.
#define MCSPI_SIDLEMODE_NO |
No Idle Mode is requested for MCSPI peripheral.
#define MCSPI_SIDLEMODE_SMART_IDLE |
Smart Idle Mode is requested for MCSPI peripheral.
#define MCSPI_WAKEUP_ENABLE |
Wake-up feature control is enabled.
#define MCSPI_WAKEUP_DISABLE |
Wake-up feature control is disabled.
#define MCSPI_AUTOIDLE_ON |
Auromatic OCP clock gating is configured for MCSPI peripheral.
#define MCSPI_AUTOIDLE_OFF |
OCP clock is configured as free running state for MCSPI peripheral.
void McSPIClkConfig | ( | uint32_t | baseAddr, |
uint32_t | spiInClk, | ||
uint32_t | spiOutClk, | ||
uint32_t | chNum, | ||
uint32_t | clkMode | ||
) |
Configures the clock.
This API will configure the clkD and extClk fields to generate required spi clock depending on the type of granularity. It will also set the phase and polarity of spiClk by the clkMode field.
baseAddr | Memory Address of the McSPI instance used. |
spiInClk | Clock frequency given to the McSPI module. |
spiOutClk | Clock frequency on the McSPI bus. |
chNum | Channel number of the McSPI instance used. |
clkMode | Clock mode used.'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n 'clkMode' can take the following values.\n MCSPI_CLK_MODE_n - McSPI clock mode n.\n For clkMode 0 <= n <= 3.\n |
void McSPIWordLengthSet | ( | uint32_t | baseAddr, |
uint32_t | wordLength, | ||
uint32_t | chNum | ||
) |
Configure the word length.
This API will configure the length of McSPI word used for communication.
baseAddr | Memory Address of the McSPI instance used. |
wordLength | Length of a data word used for McSPI communication. |
chNum | Channel number of the McSPI instance used.'wordLength' can take the following values.\n MCSPI_WORD_LENGTH(n) - McSPI word length is n bits int32_t.\n For wordLength 4 <= n <= 32.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can vary from 0-3.\n |
void McSPICSEnable | ( | uint32_t | baseAddr | ) |
This API will enable the chip select pin.
baseAddr | Memory Address of the McSPI instance used. |
void McSPICSDisable | ( | uint32_t | baseAddr | ) |
This API will disable the chip select pin.
baseAddr | Memory Address of the McSPI instance used. |
void McSPICSPolarityConfig | ( | uint32_t | baseAddr, |
uint32_t | spiEnPol, | ||
uint32_t | chNum | ||
) |
This API will configure the chip select polarity.
baseAddr | Memory Address of the McSPI instance used. |
spiEnPol | Polarity of CS line. |
chNum | Channel number of the McSPI instance used.'spiEnPol' can take the following values.\n MCSPI_CHnCONF_EPOL_ACTIVEHIGH - SPIEN pin is held high during the active state.\n MCSPI_CHnCONF_EPOL_ACTIVELOW - SPIEN pin is held low during the active state.\n where n is the channel number. 0 <= n <= 4 \n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPICSTimeControlSet | ( | uint32_t | baseAddr, |
uint32_t | csTimeControl, | ||
uint32_t | chNum | ||
) |
This API will configure the chip select time control.
baseAddr | Memory Address of the McSPI instance used. |
csTimeControl | Chip Select time control. |
chNum | Channel number of the McSPI instance used. 'csTimeControl' can take the following values.\n MCSPI_CH0CONF_TCS0_ZEROCYCLEDLY\n MCSPI_CH0CONF_TCS0_ONECYCLEDLY\n MCSPI_CH0CONF_TCS0_TWOCYCLEDLY\n MCSPI_CH0CONF_TCS0_THREECYCLEDLY\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
|
inlinestatic |
This API will activate the chip select line.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
|
inlinestatic |
This API will deactivate the chip select line.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPIStartBitEnable | ( | uint32_t | baseAddr, |
uint32_t | chNum | ||
) |
This API will enable start bit.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used.'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPIStartBitPolarityConfig | ( | uint32_t | baseAddr, |
uint32_t | startBitPol, | ||
uint32_t | chNum | ||
) |
This API will configure the polarity of start bit.
baseAddr | Memory Address of the McSPI instance used. |
startBitPol | Polarity of start bit. |
chNum | Channel number of the McSPI instance used.'startBitPol' can take the following values.\n MCSPI_START_BIT_POL_LOW - Polarity of start bit is held low during transmission.\n MCSPI_START_BIT_POL_HIGH - Polarity of start bit is held high during transmission.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPIStartBitDisable | ( | uint32_t | baseAddr, |
uint32_t | chNum | ||
) |
This API will disable the start bit mode of McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used.'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPIMasterModeEnable | ( | uint32_t | baseAddr | ) |
This API will enable the McSPI controller in master mode.
baseAddr | Memory Address of the McSPI instance used. |
void McSPISlaveModeEnable | ( | uint32_t | baseAddr | ) |
This call will enable the McSPI controller in Slave mode.
.
baseAddr | baseAddr of the McSPI instance used. |
uint32_t McSPIMasterModeConfig | ( | uint32_t | baseAddr, |
uint32_t | channelMode, | ||
uint32_t | trMode, | ||
uint32_t | pinMode, | ||
uint32_t | chNum | ||
) |
This API will enable the McSPI controller in master mode and configure other parameters required for master mode.
baseAddr | Memory Address of the McSPI instance used. |
channelMode | Single/Multi channel. |
trMode | Transmit/Receive mode used in master configuration. |
pinMode | Interface mode and pin assignment. |
chNum | Channel number of the McSPI instance used.'channelMode' can take the following values.\n MCSPI_MODULCTRL_SINGLE_SINGLE - Single channel mode is used.\n MCSPI_MODULCTRL_SINGLE_MULTI - Multi channel mode is used.\n 'trMode' can take the following values.\n MCSPI_TX_RX_MODE - Enable McSPI in TX and RX modes.\n MCSPI_RX_ONLY_MODE - Enable McSPI only in RX mode.\n MCSPI_TX_ONLY_MODE - Enable McSPI only in TX mode.\n 'pinMode' can take the following values.\n MCSPI_DATA_LINE_COMM_MODE_n - Mode n configuration for SPIDAT[1:0].\n For pinMode 0 <= n <= 7.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
|
inlinestatic |
This API will enable the channel of McSPI controller.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used.'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
|
inlinestatic |
This API will disable the channel of McSPI controller.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPIReset | ( | uint32_t | baseAddr | ) |
This API will reset the McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
void McSPITurboModeEnable | ( | uint32_t | baseAddr, |
uint32_t | chNum | ||
) |
This API will enable the McSPI turbo mode of operation.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPITurboModeDisable | ( | uint32_t | baseAddr, |
uint32_t | chNum | ||
) |
This API will disable the McSPI turbo mode of operation.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void McSPITxFIFOConfig | ( | uint32_t | baseAddr, |
uint32_t | txFifo, | ||
uint32_t | chNum | ||
) |
This API will enable/disable the Tx FIFOs of McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
txFifo | FIFO used for transmit mode. |
chNum | Channel number of the McSPI instance used.'txFifo' can take the following values.\n MCSPI_TX_FIFO_ENABLE - Enables the transmitter FIFO of McSPI.\n MCSPI_TX_FIFO_DISABLE - Disables the transmitter FIFO of McSPI.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
void McSPIRxFIFOConfig | ( | uint32_t | baseAddr, |
uint32_t | rxFifo, | ||
uint32_t | chNum | ||
) |
This API will enable/disable the Rx FIFOs of McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
rxFifo | FIFO used for receive mode. |
chNum | Channel number of the McSPI instance used.'rxFifo' can take the following values.\n MCSPI_RX_FIFO_ENABLE - Enables the receiver FIFO of McSPI.\n MCSPI_RX_FIFO_DISABLE - Disables the receiver FIFO of McSPI.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
void McSPIFIFOTrigLvlSet | ( | uint32_t | baseAddr, |
uint8_t | afl, | ||
uint8_t | ael, | ||
uint32_t | trMode | ||
) |
This API will set the transfer levels used by FIFO depending on the various McSPI transmit/receive modes.
baseAddr | Memory Address of the McSPI instance used. |
afl | Buffer almost full value. |
ael | Buffer almost empty value. |
trMode | Transmit/Receive modes used.'trMode' can take the following values.\n MCSPI_TX_RX_MODE - Enable McSPI in TX and RX modes.\n MCSPI_RX_ONLY_MODE - Enable McSPI only in RX mode.\n MCSPI_TX_ONLY_MODE - Enable McSPI only in TX mode.\n |
void McSPIWordCountSet | ( | uint32_t | baseAddr, |
uint16_t | wCnt | ||
) |
This API will set the McSPI word counter value.
baseAddr | Memory Address of the McSPI instance used. |
wCnt | Word count. |
void McSPIDMAEnable | ( | uint32_t | baseAddr, |
uint32_t | dmaFlags, | ||
uint32_t | chNum | ||
) |
This API will enable the DMA read/write events of McSPI.
baseAddr | Memory Address of the McSPI instance used. |
dmaFlags | Variable used to enable DMA mode for Rx/Tx events. |
chNum | Channel number of the McSPI instance used.'dmaFlags' can take the following values.\n MCSPI_DMA_RX_EVENT - To enable DMA mode for Rx events.\n MCSPI_DMA_TX_EVENT - To enable DMA mode for Tx events.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
void McSPIDMADisable | ( | uint32_t | baseAddr, |
uint32_t | dmaFlags, | ||
uint32_t | chNum | ||
) |
This API will disable the DMA read/write events of McSPI.
baseAddr | Memory Address of the McSPI instance used. |
dmaFlags | Variable used to disable DMA mode for Rx/Tx events. |
chNum | Channel number of the McSPI instance used.'dmaFlags' can take the following values.\n MCSPI_DMA_RX_EVENT - To disable DMA mode for Rx events.\n MCSPI_DMA_TX_EVENT - To disable DMA mode for Tx events.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
void McSPIIntEnable | ( | uint32_t | baseAddr, |
uint32_t | intFlags | ||
) |
This API will enable the McSPI Interrupts.
baseAddr | Memory Address of the McSPI instance used. |
intFlags | Represents the various interrupts to be enabled. |
void McSPIIntDisable | ( | uint32_t | baseAddr, |
uint32_t | intFlags | ||
) |
This API will disable the McSPI Interrupts.
baseAddr | Memory Address of the McSPI instance used. |
intFlags | Represents the various interrupts to be disabled. 'intFlags' can take the following values.\n MCSPI_INT_TX_EMPTY(chan) - Transmitter register empty interrupt.\n MCSPI_INT_TX_UNDERFLOW(chan) - Transmitter register underflow interrupt.\n MCSPI_INT_RX_FULL(chan) - Receiver register full interrupt.\n MCSPI_INT_RX0_OVERFLOW - Receiver register 0 overflow interrupt.\n MCSPI_INT_EOWKE - End of word count interrupt.\n 'chan' stands for channel number. Please specify the proper channel number while passing the macros. 0 <= chan <= 3 \n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
void McSPIInitDelayConfig | ( | uint32_t | baseAddr, |
uint32_t | initDelay | ||
) |
This API will set initial delay for first transfer from McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
initDelay | Delay used for first transfer.'initDelay' can take the following values.\n MCSPI_INITDLY_0 - No delay for first transfer.\n MCSPI_INITDLY_4 - Delay of 4 SPI Clock.\n MCSPI_INITDLY_8 - Delay of 8 SPI Clock.\n MCSPI_INITDLY_16 - Delay of 16 SPI Clock.\n MCSPI_INITDLY_32 - Delay of 32 SPI Clock.\n |
|
inlinestatic |
This API will put the data on to the McSPI Channel transmit register.
baseAddr | Memory Address of the McSPI instance used. |
txData | 32 bit data sent by the user which is put on to the MCSPI_TX register. |
chNum | Channel number of the McSPI instance used.'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
uint32_t McSPIReceiveData | ( | uint32_t | baseAddr, |
uint32_t | chNum | ||
) |
This API will return the data present in the MCSPI_RX register.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum n can range from 0-3.\n |
uint32_t McSPIIntStatusGet | ( | uint32_t | baseAddr | ) |
This API will return the status of the McSPI peripheral interrupts.
baseAddr | Memory Address of the McSPI instance used. |
void McSPIIntStatusClear | ( | uint32_t | baseAddr, |
uint32_t | intFlags | ||
) |
This API will clear the status of McSPI Interrupts.
baseAddr | Memory Address of the McSPI instance used. |
intFlags | Represents the various interrupts to be cleared. |
|
inlinestatic |
This API will return the status of the McSPI channel currently in use.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel used for communication.'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n |
void McSPIMultipleWordAccessConfig | ( | uint32_t | baseAddr, |
uint32_t | moa | ||
) |
This API will enable/disable multiple word OCP access for McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
moa | Used to enable/disable MOA in McSPI peripheral.'moa' can take the following values.\n MCSPI_MOA_ENABLE - Enable MOA.\n MCSPI_MOA_DISABLE - Disable MOA.\n |
void McSPIFIFODatManagementConfig | ( | uint32_t | baseAddr, |
uint32_t | fdaa | ||
) |
This API will enable/disable the FIFO DMA address 256-bit aligned feature of McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
fdaa | Used to enable/disable FDAA in McSPI peripheral.'fdaa' can take the following values.\n MCSPI_FDAA_ENABLE - Enable FDAA.\n MCSPI_FDAA_DISABLE - Disable FDAA.\n |
void MCSPISysConfigSetup | ( | uint32_t | baseAddr, |
uint32_t | clockActivity, | ||
uint32_t | sidleMode, | ||
uint32_t | wakeUp, | ||
uint32_t | autoIdle | ||
) |
MCSPISysConfigSetup() description for void MCSPISysConfigSetup(). This call will setup the SYSCONFIG register of the McSPI peripheral.
baseAddr | Memory Address of the McSPI instance used. |
clockActivity | Clocks activity maintained during wake-up mode period. |
sidleMode | Power management configuration. |
wakeUp | Wake-up feature control. |
autoIdle | Internal OCP Clock gating. 'clockActivity' can take the following values.\n MCSPI_CLOCKS_OCP_OFF_FUNC_OFF - OCP and functional clocks may be switched off.\n MCSPI_CLOCKS_OCP_ON_FUNC_OFF - OCP clock is maintained. Functional clock may be switched off.\n MCSPI_CLOCKS_OCP_OFF_FUNC_ON - Functional clock is maintained. OCP clock may be switched off.\n MCSPI_CLOCKS_OCP_ON_FUNC_ON - OCP and functional clocks are maintained.\n 'sidleMode' can take the following values.\n MCSPI_SIDLEMODE_FORCE MCSPI_SIDLEMODE_NO MCSPI_SIDLEMODE_SMART_IDLE 'wakeUp' can take the following values.\n MCSPI_WAKEUP_ENABLE - Wake-up capability is enabled.\n MCSPI_WAKEUP_DISABLE - Wake-up capability is disabled.\n 'autoIdle' can take the following values.\n MCSPI_AUTOIDLE_ON - Automatic OCP clock gating strategy applied.\n MCSPI_AUTOIDLE_OFF - OCP clock free-running.\n |
uint32_t MCSPIPinDirSet | ( | uint32_t | baseAddr, |
uint32_t | trMode, | ||
uint32_t | pinMode, | ||
uint32_t | chNum | ||
) |
MCSPIPinDirSet() description for void MCSPIPinDirSet(). This call will configure the Pin Direction and the transfer mode depending on the user sent values.
baseAddr | Memory Address of the McSPI instance used. |
trMode | Transmit/Receive mode used in master configuration. |
pinMode | Interface mode and pin assignment. |
chNum | Channel number of the McSPI instance used.'trMode' can take the following values.\n MCSPI_TX_RX_MODE - Enable McSPI in TX and RX modes.\n MCSPI_RX_ONLY_MODE - Enable McSPI only in RX mode.\n MCSPI_TX_ONLY_MODE - Enable McSPI only in TX mode.\n 'pinMode' can take the following values.\n MCSPI_DATA_LINE_COMM_MODE_n - Mode n configuration for SPIDAT[1:0].\n For pinMode 0 <= n <= 7.\n 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n |
void MCSPISingleChModeEnable | ( | uint32_t | baseAddr | ) |
MCSPISingleChModeEnable() description for void MCSPISingleChModeEnable(). This call will configure McSPI to work in single channel mode.
baseAddr | Base address of the McSPI instance used. |
void MCSPIMultiChModeEnable | ( | uint32_t | baseAddr | ) |
MCSPIMultiChModeEnable() description for void MCSPIMultiChModeEnable(). This call will configure McSPI to work in Multi channel mode.
baseAddr | Base address of the McSPI instance used. |
void McSPISetSlaveChipSel | ( | uint32_t | baseAddr, |
uint32_t | chNum, | ||
uint32_t | slaveChipSel | ||
) |
McSPISetSlaveChipSel() description for void McSPISetSlaveChipSel(). This call will activate the user specified chip select line.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. |
slaveChipSel | slave select signal detection. 'chNum' can take the following values.\n MCSPI_CHANNEL_n - Channel n is used for communication.\n For chNum 0 <= n <= 3.\n 'slaveChipSel' can take the following values.\n MCSPI_SPIEN_0 - Detection enabled only on SPIEN[0].\n MCSPI_SPIEN_1 - Detection enabled only on SPIEN[1].\n MCSPI_SPIEN_2 - Detection enabled only on SPIEN[2].\n MCSPI_SPIEN_3 - Detection enabled only on SPIEN[3].\n |
|
inlinestatic |
This API returns Channel control register value.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. |
|
inlinestatic |
This API sets Channel control register value.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. |
regVal | register value to set in channel control register. |
|
inlinestatic |
This API returns Channel Config register value.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. |
|
inlinestatic |
This API sets Channel Config register value.
baseAddr | Memory Address of the McSPI instance used. |
chNum | Channel number of the McSPI instance used. |
regVal | register value to set in channel Config register. |