MTB CAT5 Peripheral driver library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Interrupt

General Description

Functions

void Cy_SCB_SPI_Interrupt (CySCB_Type *base, cy_stc_scb_spi_context_t *context)
 
__STATIC_INLINE void Cy_SCB_SPI_RegisterCallback (CySCB_Type const *base, cy_cb_scb_spi_handle_events_t callback, cy_stc_scb_spi_context_t *context)
 Registers a callback function, which notifies that SPI Callback Events occurred in the Cy_SCB_SPI_Interrupt. More...
 

Function Documentation

__STATIC_INLINE void Cy_SCB_SPI_RegisterCallback ( CySCB_Type const *  base,
cy_cb_scb_spi_handle_events_t  callback,
cy_stc_scb_spi_context_t context 
)

Registers a callback function, which notifies that SPI Callback Events occurred in the Cy_SCB_SPI_Interrupt.

Parameters
baseThe pointer to the SPI SCB instance.
callbackThe pointer to the callback function. See cy_cb_scb_spi_handle_events_t for the function prototype.
contextThe pointer to the context structure cy_stc_scb_spi_context_t allocated by the user. The structure is used during the SPI operation for internal configuration and data retention. The user should not modify anything in this structure.
Note
To remove the callback, pass NULL as the pointer to the callback function.