Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nm_bsp_interrupt_ctrl

Synchronous enable/disable of WINC to host interrupts.

Functions

void nm_bsp_interrupt_ctrl (uint8 u8Enable)
 Enable/Disable interrupts from the WINC. More...
 

void nm_bsp_interrupt_ctrl ( uint8  u8Enable)

Enable/Disable interrupts from the WINC.

This function can be used to enable/disable the WINC to host interrupts, depending on how the driver is implemented. It is an internal driver function and shouldn't be called by the application.

Parameters
[in]u8Enable
  • '0' disable interrupts.
  • '1' enable interrupts.
Precondition
The interrupt must be registered using nm_bsp_register_isr first.
Note
Implementation of this function is host dependent and called by HIF layer.
See Also
tpfNmBspIsr, nm_bsp_register_isr
Returns
None

References CONF_WINC_SPI_INT_MASK, CONF_WINC_SPI_INT_PIO, pio_disable_interrupt(), pio_enable_interrupt(), and pio_get_interrupt_status().

Referenced by hif_handle_isr(), hif_set_rx_done(), and isr().