nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_wifi_osal_bus_spi_dev_intr_reg()

enum nrf_wifi_status nrf_wifi_osal_bus_spi_dev_intr_reg ( void *  os_spi_dev_ctx,
void *  callbk_data,
int(*)(void *callbk_data)  callbk_fn 
)

Register a interrupt handler for a spi device.

Parameters
os_spi_dev_ctxOS specific spi device context.
callbk_dataData to be passed to the ISR.
callbk_fnISR to be invoked on receiving an interrupt.

Registers an interrupt handler to the OS. This API also passes the callback data to be passed to the ISR when an interrupt is received.

Returns
Pass: nrf_wifi_STATUS_SUCCESS. Fail: nrf_wifi_STATUS_FAIL.