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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_lvdt_status_type_t type, nai_lvdt_enable_t intenable)
 Sets the Interrupt Enable associated with the Status Type for the specified channel. By default, interrupts are disabled. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_lvdt_status_type_t type, nai_lvdt_enable_t *outintenable)
 Retrieves the Interrupt Enable associated with the Status Type from the specified channel. By default, interrupts are disabled. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_lvdt_status_type_t type, nai_lvdt_interrupt_t interruptType)
 Sets the Interrupt Edge/Level property for the specified channel and interrupt status type. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_lvdt_status_type_t type, nai_lvdt_interrupt_t *outinterruptType)
 Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetInterruptVector (int32_t cardIndex, int32_t module, nai_lvdt_status_type_t type, uint32_t interruptvector)
 Sets the Interrupt Vector associated with the Status Type for the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetInterruptVector (int32_t cardIndex, int32_t module, nai_lvdt_status_type_t type, uint32_t *outinterruptvector)
 Retrieves the Interrupt Vector associated with the Status Type from the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetInterruptSteering (int32_t cardIndex, int32_t module, nai_lvdt_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetInterruptSteering (int32_t cardIndex, int32_t module, nai_lvdt_status_type_t type, naibrd_int_steering_t *outsteering)
 Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.
 

Detailed Description


Function Documentation

◆ naibrd_LVDT_GetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_lvdt_status_type_t type,
nai_lvdt_interrupt_t * outinterruptType )

Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
outinterruptType: (Output) NAI_LVDT_EDGE_INTERRUPT or NAI_LVDT_LEVEL_INTERRUPT.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when the type parameter is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_GetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_lvdt_status_type_t type,
nai_lvdt_enable_t * outintenable )

Retrieves the Interrupt Enable associated with the Status Type from the specified channel. By default, interrupts are disabled. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
outintenable: (Output) NAI_LVDT_STATE_ENABLED or NAI_LVDT_STATE_DISABLED.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when the type parameter is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_GetInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetInterruptSteering ( int32_t cardIndex,
int32_t module,
nai_lvdt_status_type_t type,
naibrd_int_steering_t * outsteering )

Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
outsteering: (Output) Interrupt Steering: refer to naibrd_int_steering_t definition.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_GetInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_GetInterruptVector ( int32_t cardIndex,
int32_t module,
nai_lvdt_status_type_t type,
uint32_t * outinterruptvector )

Retrieves the Interrupt Vector associated with the Status Type from the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
outinterruptvector: (Output) Interrupt Vector.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_INVALID_VALUE when the type parameter is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_SetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_lvdt_status_type_t type,
nai_lvdt_interrupt_t interruptType )

Sets the Interrupt Edge/Level property for the specified channel and interrupt status type. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
interruptType: (Input) NAI_LVDT_EDGE_INTERRUPT or NAI_LVDT_LEVEL_INTERRUPT.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when the type or interruptType parameters are invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_SetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_lvdt_status_type_t type,
nai_lvdt_enable_t intenable )

Sets the Interrupt Enable associated with the Status Type for the specified channel. By default, interrupts are disabled. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
intenable: (Input) NAI_LVDT_STATE_ENABLED or NAI_LVDT_STATE_DISABLED.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when the type or intenable parameters are invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_SetInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetInterruptSteering ( int32_t cardIndex,
int32_t module,
nai_lvdt_status_type_t type,
naibrd_int_steering_t steering )

Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
steering: (Input) Interrupt Steering: refer to naibrd_int_steering_t definition.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter or invalid steering parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_SetInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_SetInterruptVector ( int32_t cardIndex,
int32_t module,
nai_lvdt_status_type_t type,
uint32_t interruptvector )

Sets the Interrupt Vector associated with the Status Type for the specified channel. Feature NAI_LVDT_STATUS_SUMMARY supported in FPGA Version >= 9.28.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
type: (Input) Status Type: refer to nai_lvdt_status_type_t definition.
interruptvector: (Input) Interrupt Vector.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_INVALID_VALUE when the type parameter is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.