|
APCIE-3660 API
1719
|
Typedefs | |
| typedef void(* | apcie3660_irqCallback) (PDEVICE_DATA deviceData, uint32_t interruptSource, uint32_t interruptMask, uint32_t *interruptArgs, uint32_t argCount) |
| typedef void(* | apcie3660_irqCallback) (uint8_t boardId, uint32_t interruptSource, uint32_t interruptMask, uint32_t *interruptArgs, uint32_t argCount) |
Functions | |
| int | i_APCIE3660_SetBoardIntRoutine (PDEVICE_DATA deviceData, apcie3660_irqCallback irqCallback) |
| int | i_APCIE3660_ResetBoardIntRoutine (PDEVICE_DATA deviceData) |
| int | i_APCIE3660_SetBoardIntRoutine (uint8_t boardId, apcie3660_irqCallback irqCallback) |
| int | i_APCIE3660_ResetBoardIntRoutine (uint8_t boardId) |
| typedef void(* apcie3660_irqCallback)(uint8_t boardId, uint32_t interruptSource, uint32_t interruptMask, uint32_t *interruptArgs, uint32_t argCount) |
Prototype of interrupt callback function.
| [in] | deviceData | Target board PCI device structure |
| [in] | interruptSource | Source of the interrupt
|
| [in] | interruptMask | Cause of the interrupt
|
| [in] | interruptArgs | Values read during the interrupt. If it is an interrupt error, this value should not be read
|
| [in] | argCount | Is equal to 1 if data is available |
Installs an interrupt callback function.
| [in] | boardId | Target board index |
| [in] | interruptSource | Source of the interrupt
|
| [in] | interruptMask | Cause of the interrupt
|
| [in] | interruptArgs | Values read during the interrupt. If DMA interrupt, this pointer will be set to NULL. |
| [in] | argCount | Number of values read during the interrupt |
| typedef void(* apcie3660_irqCallback) (uint8_t boardId, uint32_t interruptSource, uint32_t interruptMask, uint32_t *interruptArgs, uint32_t argCount) |
Prototype of interrupt callback function.
| [in] | boardId | Target board index |
| [in] | interruptSource | Source of the interrupt
|
| [in] | interruptMask | Cause of the interrupt
|
| [in] | interruptArgs | Pointer to buffer containing the data. If it is an interrupt error, this params should not be used. |
| [in] | argCount | Number of values read during the interrupt. If it is an interrupt Error this element is equal to 0. |
Installs an interrupt callback function.
| [in] | boardId | Target board index |
| [in] | interruptSource | Source of the interrupt
|
| [in] | interruptMask | Cause of the interrupt
|
| [in] | interruptArgs | Values read during the interrupt. If DMA interrupt, this pointer will be set to NULL. |
| [in] | argCount | Number of values read during the interrupt |
| int i_APCIE3660_SetBoardIntRoutine | ( | PDEVICE_DATA | deviceData, |
| apcie3660_irqCallback | irqCallback | ||
| ) |
Installs an interrupt callback function.
This function will be called each time the board generates an interrupt.
| [in] | deviceData | Target board PCI device structure |
| [in] | irqCallback | Address of the callback function |
| 0 | No error |
| int i_APCIE3660_ResetBoardIntRoutine | ( | PDEVICE_DATA | deviceData | ) |
Uninstalls the interrupt callback function.
| [in] | deviceData | Target board PCI device structure |
| 0 | No error |
| 1 | No interrupt callback function was installed |
| int i_APCIE3660_SetBoardIntRoutine | ( | uint8_t | boardId, |
| apcie3660_irqCallback | irqCallback | ||
| ) |
Installs an interrupt callback function.
This function will be called each time the board generates an interrupt.
| [in] | boardId | Target board index |
| [in] | irqCallback | Address of the callback function |
| 0 | No Error |
| -1 | The boardId is wrong |
| -2 | The irqCallback is equal to NULL |
| -3 | An interrupt routine is already installed. Remove it with ResetBoardIntRoutine and retry |
| -4 | Error occured while creating interrupt event |
| -14 | An error occurred while calling the IOCTL function |
| int i_APCIE3660_ResetBoardIntRoutine | ( | uint8_t | boardId | ) |
Uninstalls the interrupt callback function.
| [in] | boardId | Target board index |
| 0 | No error |
| -1 | The boardId is wrong |
| -2 | No interrupt callback function was installed |
| -14 | An error occurred while calling the IOCTL function |