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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_chan_mapped_status_type_t type, bool_t intEnable)
 Sets the Interrupt Enable associated with the Status Type for the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_chan_mapped_status_type_t type, bool_t *p_outIntEnable)
 Retrieves the Interrupt Enable associated with the Status Type from the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_chan_mapped_status_type_t type, naibrd_int_trigger_type_t interruptType)
 Sets the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_chan_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outInterruptType)
 Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t type, uint32_t interruptVector)
 Sets the Interrupt Vector associated with the Status Type for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t type, uint32_t *p_outInterruptVector)
 Retrieves the Interrupt Vector associated with the Status Type from the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outSteering)
 Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type, nai_sd_enable_t intEnable)
 Sets the Interrupt Enable associated with the Status Type for the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type, nai_sd_enable_t *p_outIntEnable)
 Retrieves the Interrupt Enable associated with the Status Type from the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type, nai_sd_interrupt_t interruptType)
 Sets the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type, nai_sd_interrupt_t *p_outInterruptType)
 Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptVector (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, uint32_t interruptVector)
 Sets the Interrupt Vector associated with the Status Type for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptVector (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, uint32_t *p_outInterruptVector)
 Retrieves the Interrupt Vector associated with the Status Type from the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptSteering (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptSteering (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, naibrd_int_steering_t *p_outSteering)
 Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME supported in FPGA Version >= 9.28.
 

Detailed Description

Function Documentation

◆ naibrd_SD_GetChanMappedInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_sd_chan_mapped_status_type_t type,
bool_t * p_outIntEnable )

Retrieves the Interrupt Enable associated with the Status Type from the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
p_outIntEnable: (Output) NAI_TRUE when interrupts are enabled or NAI_FALSE when interrupts are 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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetChanMappedInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptSteering ( int32_t cardIndex,
int32_t module,
naibrd_sd_chan_mapped_status_type_t type,
naibrd_int_steering_t * p_outSteering )

Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetChanMappedInterruptTriggerType()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptTriggerType ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_sd_chan_mapped_status_type_t type,
naibrd_int_trigger_type_t * p_outInterruptType )

Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
p_outInterruptType: (Output) NAIBRD_INT_TRIGGER_TYPE_EDGE or NAIBRD_INT_TRIGGER_TYPE_LEVEL.
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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetChanMappedInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetChanMappedInterruptVector ( int32_t cardIndex,
int32_t module,
naibrd_sd_chan_mapped_status_type_t type,
uint32_t * p_outInterruptVector )

Retrieves the Interrupt Vector associated with the Status Type from the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
p_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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_sd_status_type_t type,
nai_sd_interrupt_t * p_outInterruptType )

Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
p_outInterruptType: (Output) NAIBRD_INT_TRIGGER_TYPE_EDGE or NAIBRD_INT_TRIGGER_TYPE_LEVEL.
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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_sd_status_type_t type,
nai_sd_enable_t * p_outIntEnable )

Retrieves the Interrupt Enable associated with the Status Type from the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
p_outIntEnable: (Output) NAI_TRUE when interrupts are enabled or NAI_FALSE when interrupts are 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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptSteering ( int32_t cardIndex,
int32_t module,
nai_sd_status_type_t type,
naibrd_int_steering_t * p_outSteering )

Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_GetInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptVector ( int32_t cardIndex,
int32_t module,
nai_sd_status_type_t type,
uint32_t * p_outInterruptVector )

Retrieves the Interrupt Vector associated with the Status Type from the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
p_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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_SetChanMappedInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_sd_chan_mapped_status_type_t type,
bool_t intEnable )

Sets the Interrupt Enable associated with the Status Type for the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
intEnable: (Input) NAI_TRUE to enable interrupts or NAI_FALSE to disable interrupts.
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 invalid type parameter or invalid intEnable parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_SetChanMappedInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptSteering ( int32_t cardIndex,
int32_t module,
naibrd_sd_chan_mapped_status_type_t type,
naibrd_int_steering_t steering )

Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_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_SD_SetChanMappedInterruptTriggerType()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptTriggerType ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_sd_chan_mapped_status_type_t type,
naibrd_int_trigger_type_t interruptType )

Sets the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
interruptType: (Input) NAIBRD_INT_TRIGGER_TYPE_EDGE or NAIBRD_INT_TRIGGER_TYPE_LEVEL.
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 invalid type parameter or invalid interruptType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_SetChanMappedInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetChanMappedInterruptVector ( int32_t cardIndex,
int32_t module,
naibrd_sd_chan_mapped_status_type_t type,
uint32_t interruptVector )

Sets the Interrupt Vector associated with the Status Type for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_SetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_sd_status_type_t type,
nai_sd_interrupt_t interruptType )

Sets the Interrupt Edge/Level property for the specified channel and interrupt status type. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
interruptType: (Input) NAIBRD_INT_TRIGGER_TYPE_EDGE or NAIBRD_INT_TRIGGER_TYPE_LEVEL.
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 invalid type parameter or invalid interruptType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_SetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_sd_status_type_t type,
nai_sd_enable_t intEnable )

Sets the Interrupt Enable associated with the Status Type for the specified channel. By default, interrupts are disabled. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_status_type_t definition.
intEnable: (Input) NAI_TRUE to enable interrupts or NAI_FALSE to disable interrupts.
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 invalid type parameter or invalid intEnable parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_SetInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptSteering ( int32_t cardIndex,
int32_t module,
nai_sd_status_type_t type,
naibrd_int_steering_t steering )

Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_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_SD_SetInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptVector ( int32_t cardIndex,
int32_t module,
nai_sd_status_type_t type,
uint32_t interruptVector )

Sets the Interrupt Vector associated with the Status Type for the specified channel. NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_LATCHED and NAIBRD_SD_CHAN_MAPPED_STATUS_SUMMARY_REALTIME 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 naibrd_sd_chan_mapped_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 invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.