Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
Board Interrupt Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_ConnectISR (int32_t cardIndex, nai_isr_t isr)
 Handles associating the Interrupt Service Routine for PCI and Ethernet communication.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DisconnectISR (int32_t cardIndex)
 Handles removing the interrupt associations (Interrupt Service Routine or Interrupt Driven Ethernet Messages).
 

Detailed Description

Function Documentation

◆ naibrd_ConnectISR()

NAIBRDFUNC nai_status_t NAIAPI naibrd_ConnectISR ( int32_t cardIndex,
nai_isr_t isr )

Handles associating the Interrupt Service Routine for PCI and Ethernet communication.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
isr: (Input) Interrupt Service Routine.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported or the interrupt level address is invalid.

◆ naibrd_DisconnectISR()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DisconnectISR ( int32_t cardIndex)

Handles removing the interrupt associations (Interrupt Service Routine or Interrupt Driven Ethernet Messages).

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported or the interrupt level address is invalid.