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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rly_chan_mapped_status_type_t type, bool_t enable)
 Sets the Interrupt Enable for the specified RLY channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rly_chan_mapped_status_type_t type, bool_t *p_outenable)
 Retrieves the Interrupt Enable setting for the specified RLY channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rly_chan_mapped_status_type_t type, naibrd_int_trigger_type_t interruptType)
 Sets the Interrupt Edge/Level property for the specified RLY channel and interrupt status type. Determines whether an interrupt condition can retrigger on the same occurrence without clearing first.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rly_chan_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outinterruptType)
 Retrieves the Interrupt Edge/Level property for the specified RLY channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_rly_chan_mapped_status_type_t type, uint32_t vector)
 Sets the Interrupt Vector for the specified RLY interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_rly_chan_mapped_status_type_t type, uint32_t *p_outvector)
 Retrieves the Interrupt Vector for the specified RLY interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_rly_chan_mapped_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the specified RLY interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_rly_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outsteering)
 Retrieves the Interrupt Steering which indicates the interrupt direction for the specified RLY interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_rly_status_type_t type, bool_t enable)
 Sets the Interrupt Enable for the specified RLY channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_rly_status_type_t type, bool_t *p_outenable)
 Retrieves the Interrupt Enable setting for the specified RLY channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_rly_status_type_t type, nai_rly_interrupt_t interruptType)
 Sets the Interrupt Edge/Level property for the specified RLY channel and interrupt status type. Determines whether an interrupt condition can retrigger on the same occurrence without clearing first.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_rly_status_type_t type, nai_rly_interrupt_t *p_outinterruptType)
 Retrieves the Interrupt Edge/Level property for the specified RLY channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetGroupInterruptVector (int32_t cardIndex, int32_t module, int32_t group, nai_rly_status_type_t type, uint32_t vector)
 Sets the Interrupt Vector for the specified RLY channel group and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetGroupInterruptVector (int32_t cardIndex, int32_t module, int32_t group, nai_rly_status_type_t type, uint32_t *p_outvector)
 Retrieves the Interrupt Vector for the specified RLY channel group and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetGroupInterruptSteering (int32_t cardIndex, int32_t module, int32_t group, nai_rly_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the specified RLY group and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetGroupInterruptSteering (int32_t cardIndex, int32_t module, int32_t group, nai_rly_status_type_t type, naibrd_int_steering_t *p_outsteering)
 Retrieves the Interrupt Steering which indicates the interrupt direction for the specified RLY group and interrupt status type.
 

Detailed Description

Function Documentation

◆ naibrd_RLY_GetChanMappedInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rly_chan_mapped_status_type_t type,
bool_t * p_outenable )

Retrieves the Interrupt Enable setting for the specified RLY channel and interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
p_outenable: (Output) 0: disabled, 1: enabled.
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_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_GetChanMappedInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptSteering ( int32_t cardIndex,
int32_t module,
naibrd_rly_chan_mapped_status_type_t type,
naibrd_int_steering_t * p_outsteering )

Retrieves the Interrupt Steering which indicates the interrupt direction for the specified RLY interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
p_outsteering: (Output) Interrupt Steering: refer to naibrd_int_steering_t definitions.
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_RLY_GetChanMappedInterruptTriggerType()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptTriggerType ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rly_chan_mapped_status_type_t type,
naibrd_int_trigger_type_t * p_outinterruptType )

Retrieves the Interrupt Edge/Level property for the specified RLY channel and interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
p_outinterruptType: (Output) Interrupt Trigger Type: Refer to naibrd_int_trigger_type_t definitions.
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_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_GetChanMappedInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetChanMappedInterruptVector ( int32_t cardIndex,
int32_t module,
naibrd_rly_chan_mapped_status_type_t type,
uint32_t * p_outvector )

Retrieves the Interrupt Vector for the specified RLY interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
p_outvector: (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_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_RLY_GetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_rly_status_type_t type,
nai_rly_interrupt_t * p_outinterruptType )

Retrieves the Interrupt Edge/Level property for the specified RLY channel and interrupt status type.

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_rly_status_type_t definition.
p_outinterruptType: (Output) Interrupt trigger mode: Refer to nai_rly_interrupt_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_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_GetGroupInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetGroupInterruptSteering ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_rly_status_type_t type,
naibrd_int_steering_t * p_outsteering )

Retrieves the Interrupt Steering which indicates the interrupt direction for the specified RLY group and interrupt status type.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_rly_status_type_t definition.
p_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 group parameter or invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_GetGroupInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetGroupInterruptVector ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_rly_status_type_t type,
uint32_t * p_outvector )

Retrieves the Interrupt Vector for the specified RLY channel group and interrupt status type.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_rly_status_type_t definition.
p_outvector: (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_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group parameter or invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_GetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_GetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_rly_status_type_t type,
bool_t * p_outenable )

Retrieves the Interrupt Enable setting for the specified RLY channel and interrupt status type.

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_rly_status_type_t definition.
p_outenable: (Output) 0: disabled, 1: enabled.
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_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_SetChanMappedInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rly_chan_mapped_status_type_t type,
bool_t enable )

Sets the Interrupt Enable for the specified RLY channel and interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
enable: (Input) 0 to disable, 1 to enable 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_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter or invalid enable parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_SetChanMappedInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptSteering ( int32_t cardIndex,
int32_t module,
naibrd_rly_chan_mapped_status_type_t type,
naibrd_int_steering_t steering )

Sets the Interrupt Steering which indicates the interrupt direction for the specified RLY interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
steering: (Input) Interrupt Steering: refer to naibrd_int_steering_t definitions.
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_RLY_SetChanMappedInterruptTriggerType()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptTriggerType ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rly_chan_mapped_status_type_t type,
naibrd_int_trigger_type_t interruptType )

Sets the Interrupt Edge/Level property for the specified RLY channel and interrupt status type. Determines whether an interrupt condition can retrigger on the same occurrence without clearing first.

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 naibrd_rly_chan_mapped_status_type_t definitions.
interruptType: (Input) Interrupt Trigger Type: Refer to naibrd_int_trigger_type_t definitions.
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_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter or invalid interruptType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_SetChanMappedInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetChanMappedInterruptVector ( int32_t cardIndex,
int32_t module,
naibrd_rly_chan_mapped_status_type_t type,
uint32_t vector )

Sets the Interrupt Vector for the specified RLY interrupt status type.

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 naibrd_rly_chan_mapped_status_type_t definitions.
vector: (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_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_RLY_SetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_rly_status_type_t type,
nai_rly_interrupt_t interruptType )

Sets the Interrupt Edge/Level property for the specified RLY channel and interrupt status type. Determines whether an interrupt condition can retrigger on the same occurrence without clearing first.

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_rly_status_type_t definition.
interruptType: (Input) Interrupt Type: Refer to nai_rly_interrupt_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_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter or invalid interruptType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_SetGroupInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetGroupInterruptSteering ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_rly_status_type_t type,
naibrd_int_steering_t steering )

Sets the Interrupt Steering which indicates the interrupt direction for the specified RLY group and interrupt status type.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_rly_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 group parameter, invalid type parameter, or invalid steering parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_SetGroupInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetGroupInterruptVector ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_rly_status_type_t type,
uint32_t vector )

Sets the Interrupt Vector for the specified RLY channel group and interrupt status type.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_rly_status_type_t definition.
vector: (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_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group parameter or invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RLY_SetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RLY_SetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_rly_status_type_t type,
bool_t enable )

Sets the Interrupt Enable for the specified RLY channel and interrupt status type.

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_rly_status_type_t definition.
enable: (Input) 0 to disable, 1 to enable 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_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter or invalid enable parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.