Functions | |
cy_en_scb_spi_status_t | Cy_SCB_SPI_Init (CySCB_Type *base, cy_stc_scb_spi_config_t const *config, cy_stc_scb_spi_context_t *context) |
void | Cy_SCB_SPI_DeInit (CySCB_Type *base) |
__STATIC_INLINE void | Cy_SCB_SPI_Enable (CySCB_Type *base) |
Enables the SCB block for the SPI operation. More... | |
void | Cy_SCB_SPI_Disable (CySCB_Type *base, cy_stc_scb_spi_context_t *context) |
__STATIC_INLINE void | Cy_SCB_SPI_SetActiveSlaveSelect (CySCB_Type *base, cy_en_scb_spi_slave_select_t slaveSelect) |
Selects an active slave select line from one of four available. More... | |
__STATIC_INLINE void | Cy_SCB_SPI_SetActiveSlaveSelectPolarity (CySCB_Type *base, cy_en_scb_spi_slave_select_t slaveSelect, cy_en_scb_spi_polarity_t polarity) |
Sets the active polarity for the slave select line. More... | |
__STATIC_INLINE BOOL8 | Cy_SCB_SPI_IsBusBusy (CySCB_Type const *base) |
Returns whether the SPI bus is busy or not. More... | |
__STATIC_INLINE void Cy_SCB_SPI_Enable | ( | CySCB_Type * | base | ) |
Enables the SCB block for the SPI operation.
base | The pointer to the SPI SCB instance. |
__STATIC_INLINE void Cy_SCB_SPI_SetActiveSlaveSelect | ( | CySCB_Type * | base, |
cy_en_scb_spi_slave_select_t | slaveSelect | ||
) |
Selects an active slave select line from one of four available.
This function is applicable for the master and slave.
base | The pointer to the SPI SCB instance. |
slaveSelect | The slave select line number. See cy_en_scb_spi_slave_select_t for the set of constants. |
__STATIC_INLINE void Cy_SCB_SPI_SetActiveSlaveSelectPolarity | ( | CySCB_Type * | base, |
cy_en_scb_spi_slave_select_t | slaveSelect, | ||
cy_en_scb_spi_polarity_t | polarity | ||
) |
Sets the active polarity for the slave select line.
base | The pointer to the SPI SCB instance. |
slaveSelect | The slave select line number. See cy_en_scb_spi_slave_select_t for the set of constants. |
polarity | The polarity of the slave select line. See cy_en_scb_spi_polarity_t for the set of constants. |
__STATIC_INLINE BOOL8 Cy_SCB_SPI_IsBusBusy | ( | CySCB_Type const * | base | ) |
Returns whether the SPI bus is busy or not.
The bus busy is determined using the slave select signal.
base | The pointer to the SPI SCB instance. |