EDT PDV SDK Documentation 6.1.0
edt_common.h File Reference

(git b1678dc, 2023-03-15)

Local include files and declarations for Edt_Dev driver. More...

#include "edtdrv.h"
Include dependency graph for edt_common.h:

Functions

int edt_test_intr (Edt_Dev *edt_p)
 

Detailed Description

Local include files and declarations for Edt_Dev driver.

Author
EDT tech@.nosp@m.edt..nosp@m.com

Common shared driver code with hooks to map driver dependencies into driver independent code.

Function Documentation

◆ edt_test_intr()

int edt_test_intr ( Edt_Dev *  edt_p)

Determine if the interrupt is ours, clear interrupt enables.

Parameters
edt_pEDT dev pointer.
Return values
0if PCI interrupts are disabled (EDT_ICFG_PCI_EN_INTR bit is clear) or if none of the interupt status bits ( EDT_DMA_INTR, EDT_RMT_INTR, EDT_PCI_INTR) are set.
1if interrupts are enabled and an interrupt was detected.