Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
naibrd_sd_legacy.c File Reference

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type, uint32_t *p_outStatus)
 Retrieves the SD Status from the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type)
 Clears the latched status for the specified SD channel and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetSigLossThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t threshold)
 Sets the minimum signal voltage level in volts before indicating a signal loss for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetSigLossThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outThreshold)
 Retrieves the minimum signal voltage level in volts before indicating a signal loss from the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetRefLossThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t threshold)
 Sets the minimum reference voltage level in volts before indicating a reference loss for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetRefLossThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outThreshold)
 Retrieves the minimum reference voltage level in volts before indicating a reference loss from the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetOpenThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t threshold)
 Sets the open circuit threshold of the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetOpenThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outThreshold)
 Retrieves the open threshold of the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetShortThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t threshold)
 Sets the short threshold of the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetShortThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outThreshold)
 Retrieves the short threshold of the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFloatingPointAngleOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t angleOffset)
 Sets the HW floating point angle offset for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFloatingPointAngleOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outAngleOffset)
 Retrieves the HW floating point angle offset for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFloatingPointAngleScale (int32_t cardIndex, int32_t module, int32_t channel, float64_t angleScale)
 Sets the HW floating point angle scale factor for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFloatingPointAngleScale (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outAngleScale)
 Retrieves the HW floating point angle scale factor for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFloatingPointVelocityOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t velocityOffset)
 Sets the HW floating point velocity offset for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFloatingPointVelocityOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outVelocityOffset)
 Retrieves the HW floating point velocity offset for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFloatingPointVelocityScale (int32_t cardIndex, int32_t module, int32_t channel, float64_t velocityScale)
 Sets the HW floating point velocity scale factor for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFloatingPointVelocityScale (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outVelocityScale)
 Retrieves the HW floating point velocity scale factor for the specified S/D channel. This feature is only applicable when the HW floating point conversion mode is enabled (See naibrd_SetFloatingPointModeEnable()). Not all modules support HW floating point conversions, please refer to the module's HW specification for details.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetActiveChannel (int32_t cardIndex, int32_t module, int32_t channel, uint32_t setting)
 Note: This routine has been deprecated and has been replaced with naibrd_SD_SetChanStatusEnable.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetActiveChannel (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outSetting)
 Note: This routine has been deprecated and has been replaced with naibrd_SD_GetChanStatusEnable.
 
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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFIFORealtimeStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outStatus)
 Retrieves the raw data value in the FIFO Realtime status register associated with the SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFIFOLatchedStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outStatus)
 Retrieves the raw data value in the FIFO Latched status register associated with the SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ClearFIFOLatchedStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t bit)
 Clears the raw data value in the FIFO Latched status register associated with the SD channel and the bits specified in the parameter bit.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFIFOIntEnable (int32_t cardIndex, int32_t module, int32_t channel, uint32_t intEnable)
 Sets the raw data value in the FIFO interrupt enable register associated with the SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFIFOIntEnable (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outIntEnable)
 Retrieves the raw data value in the FIFO interrupt enable register associated with the SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFIFOInterruptVector (int32_t cardIndex, int32_t module, int32_t channel, uint32_t vector32)
 Sets the FIFO Interrupt Vector for the specified SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFIFOInterruptVector (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outVector32)
 Retrieves the FIFO Interrupt Vector for the specified SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFIFOInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_fifo_status_t edgeLevelMask)
 Sets the edge or level triggered interrupt event mapped (e.g. hi-watermark, full, etc) mask for the specified SD channel's FIFO Buffer.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFIFOInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_fifo_status_t *p_outEdgeLevelMask)
 Retrieves the edge or level triggered interrupt event mapped (e.g. hi-watermark, full, etc) mask for the specified SD channel's FIFO Buffer.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetFIFOInterruptSteering (int32_t cardIndex, int32_t module, int32_t channel, naibrd_int_steering_t steering)
 Sets the FIFO Interrupt Steering, which indicates the interrupt direction, for the specified SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFIFOInterruptSteering (int32_t cardIndex, int32_t module, int32_t channel, naibrd_int_steering_t *p_outSteering)
 Retrieves the FIFO Interrupt Steering, which indicates the interrupt direction, for the specified SD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetStatusRaw (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, uint32_t statusRaw)
 Sets the raw data value in the status register associated with the status type specified. This function may be used to clear multiple latched status bits in the status word.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetStatusRaw (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, uint32_t *p_outStatusRaw)
 Retrieves the raw data value in the status register associated with the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetInterruptEnableRaw (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, uint32_t statusIntEnabRaw)
 Sets the raw data value in the interrupt enable register associated with the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetInterruptEnableRaw (int32_t cardIndex, int32_t module, nai_sd_status_type_t type, uint32_t *p_outStatusIntEnabRaw)
 Retrieves the raw data value in the interrupt enable register associated with the status type specified.
 

Variables

static const uint32_t sd_gen5_fifo_int_edgelevel [NAI_SD_GEN5_CHANNELS] = NAI_SD_GEN5_FIFO_EDGE_LEVEL_INT_ADD
 

Variable Documentation

◆ sd_gen5_fifo_int_edgelevel

const uint32_t sd_gen5_fifo_int_edgelevel[NAI_SD_GEN5_CHANNELS] = NAI_SD_GEN5_FIFO_EDGE_LEVEL_INT_ADD
static