|
static nai_status_t | isSDGen5Module (uint32_t modId) |
|
static int32_t | GetChannelCount (uint32_t modId) |
|
static nai_status_t | naibrd_SD_VerifyChannel (uint32_t modId, int32_t channel) |
|
static nai_status_t | naibrd_SD_VerifyChanMappedStatusType (naibrd_sd_chan_mapped_status_type_t type) |
|
static nai_status_t | naibrd_SD_VerifyChanMappedLatchStatusType (naibrd_sd_chan_mapped_status_type_t type) |
|
static nai_status_t | naibrd_SD_VerifyBoolean (bool_t enable) |
|
static nai_status_t | naibrd_SD_VerifyChanMode (naibrd_sd_format_t mode) |
|
static nai_status_t | naibrd_SD_VerifyVelScale (uint32_t velScale) |
|
static nai_status_t | naibrd_SD_VerifyRatio (uint32_t ratio) |
|
static nai_status_t | naibrd_SD_VerifyBandwidth (uint32_t bandwidth) |
|
static nai_status_t | naibrd_SD_VerifyBandwidthSelect (naibrd_sd_bandwidth_select_t bwSelect) |
|
static nai_status_t | naibrd_SD_VerifyFloatingPointAttributesType (naibrd_sd_floating_point_attributes_t type) |
|
static nai_status_t | naibrd_SD_VerifyThresholdType (naibrd_sd_threshold_t type) |
|
static nai_status_t | naibrd_SD_VerifyThreshold (naibrd_sd_threshold_t type, float64_t threshold) |
|
static nai_status_t | naibrd_SD_VerifyTestEnableType (naibrd_sd_test_enable_t type) |
|
static nai_status_t | naibrd_SD_VerifyTestAngle (float64_t testAngle) |
|
static nai_status_t | naibrd_SD_VerifyConvertAngle (float64_t angle) |
|
static nai_status_t | naibrd_SD_VerifyAngleDelta (float64_t angleDelta) |
|
static nai_status_t | naibrd_SD_VerifyInterruptTriggerType (naibrd_int_trigger_type_t triggerType) |
|
static nai_status_t | naibrd_SD_VerifyInterruptSteeringType (naibrd_int_steering_t steering) |
|
static nai_status_t | naibrd_SD_VerifyEventMappedStatusType (naibrd_sd_event_mapped_status_type_t type) |
|
static nai_status_t | naibrd_SD_VerifyEventMappedLatchStatusType (naibrd_sd_event_mapped_status_type_t type) |
|
static nai_status_t | naibrd_SD_VerifyEventMappedStatusCategoryType (naibrd_sd_event_mapped_category_type_t type) |
|
static nai_status_t | naibrd_SD_GetEventMappedInterruptShift (naibrd_sd_event_mapped_status_type_t type, int32_t *p_outShiftCount) |
|
static nai_status_t | naibrd_SD_VerifyStatusAccessType (nai_status_access_type_t accessType) |
|
static nai_status_t | naibrd_SD_VerifyRawType (naibrd_sd_raw_t type) |
|
static nai_status_t | naibrd_SD_VerifyChanRaw (naibrd_sd_channel_raw_t type) |
|
static nai_status_t | naibrd_SD_VerifyChanRawWriteable (naibrd_sd_channel_raw_t type) |
|
static nai_status_t | naibrd_SD_VerifyConvertVelScale (float64_t velScale) |
|
static nai_status_t | naibrd_SD_VerifyFIFOSize (uint32_t size) |
|
static nai_status_t | naibrd_SD_VerifyFIFOSampleRate (uint32_t sampleRate) |
|
static nai_status_t | naibrd_SD_VerifyFIFODataType (uint32_t dataType) |
|
static nai_status_t | naibrd_SD_VerifyFIFOTrigMode (uint32_t trigMode) |
|
NAIBRDFUNC int32_t NAIAPI | naibrd_SD_GetChannelCount (uint32_t modId) |
| Returns the number of channels for the specified SD Module ID.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetAngle (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outAngle) |
| Retrieves the angle reading from the specified channel. The angle value is scaled between 0 - 359.9954 Deg.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetVelocity (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outVelocity) |
| Retrieves velocity reading from the specified channel. The Velocity Scale register is read and used to scale the returned value between +/- 190.7348 RPS.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFrequency (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outFrequency) |
| Retrieves the Frequency in Hertz from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetSignalVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outSigVolt) |
| Retrieves the signal voltage (VLL) in volts from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetRefVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outRefVolt) |
| Retrieves the reference voltage in volts from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetSine (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outSine) |
| Retrieves the Sine from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetCosine (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outCosine) |
| Retrieves the Cosine from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_chan_mapped_status_type_t type, nai_status_bit_t *p_outStatusBit) |
| Retrieves the SD Status from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_chan_mapped_status_type_t type) |
| Clears the latched status for the specified SD channel and status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetLatch (int32_t cardIndex, int32_t module, int32_t channel, uint32_t latch) |
| Sets the Latch Control register to Latch the Angle Data for the specified channel. The Latch Control register allows for simultaneously measured inputs. After latching the channel, the angle data is latched until it is released by reading the channel's Angle Data register or setting the Latch Control register to 0.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetLatch (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outLatch) |
| Retrieves the Latch Control register to Latch the Angle Data for the specified channel. The Latch Control register allows for simultaneously measured inputs. After latching the channel, the angle data is latched until is release released by reading the channel's Angle Data register or setting the Latch Control register to 0.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetChanMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_format_t mode) |
| Sets the SD Configuration Mode for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetChanMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_format_t *p_outMode) |
| Retrieves the SD Configuration Mode from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, uint32_t setting) |
| Sets the channel status enable bit for the specified channel. When the channel status enable is set to "NAIBRD_SD_CHAN_STATUS_ENABLE_ACTIVE", it will report any bad status in the following module functions: 1. BIT Status,.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outSetting) |
| Retrieves the channel status enable bit for the specified channel. When the channel status enable is set to "NAIBRD_SD_CHAN_STATUS_ENABLE_ACTIVE", it will report any bad status in the following module functions: 1. BIT Status,.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetVelScale (int32_t cardIndex, int32_t module, int32_t channel, uint32_t velScale) |
| Sets the Velocity Scale Factor for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetVelScale (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outVelScale) |
| Retrieves the Velocity Scale Factor from the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetRatio (int32_t cardIndex, int32_t module, int32_t channel, uint32_t ratio) |
| Sets the ratio for the specified channel to be used for a two-speed or multi-speed configuration. When a 'ratio' is programmed, the odd channels provide the 'coarse' angle measurement. The even channels provide the 'combined' angle reading for both the coarse and fine angle measurements (which is a more accurate representation of the coarse channel). Ratio = 1 for single speed (independent channel) operation. 2 <= Ratio <= 255 for even channels for two-speed or multi-speed configuration.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetRatio (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outRatio) |
| Retrieves the ratio from the specified channel to be used for a two-speed or multi-speed configuration. When a 'ratio' is programmed, the odd channels provide the 'coarse' angle measurement. The even channels provide the 'combined' angle reading for both the coarse and fine angle measurements (which is a more accurate representation of the coarse channel). Ratio = 1 for single speed (independent channel) operation. 2 <= Ratio <= 255 for even channels for two-speed or multi-speed configuration.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetBandwidth (int32_t cardIndex, int32_t module, int32_t channel, uint32_t bandwidth) |
| Sets the Bandwidth for the specified channel in 2 Hz resolution from 6Hz to 1280Hz.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetBandwidth (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outBandwidth) |
| Retrieves the Bandwidth from the specified channel in 2 Hz resolution from 6Hz to 1280Hz.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetBandwidthSelect (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_bandwidth_select_t bwSelect) |
| Sets the Bandwidth Select for the specified channel. The BW Select can be set to "Automatic" or "Manual". When in "Automatic BW" mode, the input reference frequency is read and the bandwidth is automatically adjusted to approximately 1/10 of the carrier frequency. The Auto Bandwidth range has a minimum value of 10 Hz and a maximum value of 100 Hz. When in "Manual BW" mode, the user can enter the bandwidth between the range of 6 Hz and 1280 Hz, in 2 Hz increments.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetBandwidthSelect (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_bandwidth_select_t *p_outBwSelect) |
| Retrieves the Bandwidth Select from the specified channel. The BW Select can be set to "Automatic" or "Manual". When in "Automatic BW" mode, the input reference frequency is read and the bandwidth is automatically adjusted to approximately 1/10 of the carrier frequency. The Auto Bandwidth range has a minimum value of 10 Hz and a maximum value of 100 Hz. When in "Manual BW" mode, the user can enter the bandwidth between the range of 6 Hz and 1280 Hz, in 2 Hz increments.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFloatingPointAttributes (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_floating_point_attributes_t attributeType, float64_t attributeValue) |
| Sets the HW floating point angle or velocity offset or scale factor (depending on the specified naibrd_sd_floating_point_attributes_t type) for the specified SD 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_GetFloatingPointAttributes (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_floating_point_attributes_t attributeType, float64_t *p_outAttributeValue) |
| Retrieves the HW floating point angle or velocity offset or scale factor (depending on the specified naibrd_sd_floating_point_attributes_t type) for the specified SD 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_SetThreshold (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_threshold_t type, float64_t threshold) |
| Sets the threshold (depending on the naibrd_sd_threshold_t type specified) for the specified SD channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetThreshold (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_threshold_t type, float64_t *p_outThreshold) |
| Retrieves threshold (depending on the naibrd_sd_threshold_t type specified) for the specified SD channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetInverse (int32_t cardIndex, int32_t module, int32_t channel, uint32_t value) |
| Sets the inverse for the sin, cos, or reference controls. This is only supported on FPGA rev > 9.13.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetInverse (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outValue) |
| Retrieves the inverse for the sin, cos, or reference controls. This is only supported on FPGA rev > 9.13.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_sd_test_enable_t type, bool_t bitEnable) |
| Enables/Disables the BIT test specified by the type parameter. BITs are described as follows:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_sd_test_enable_t type, bool_t *p_outBitEnable) |
| Retrieves the state (Enabled or disabled) of the BIT test specified by the type parameter. BITs are described as follows:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_CheckPowerOnBITComplete (int32_t cardIndex, int32_t module, bool_t *p_outPBitComplete) |
| Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified module. The PBIT result will be in the BIT status register. Feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetTestAngle (int32_t cardIndex, int32_t module, float64_t testAngle) |
| Sets the Test Angle used for the D0 Test.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetTestAngle (int32_t cardIndex, int32_t module, float64_t *p_outTestAngle) |
| Retrieves the Test Angle used for the D0 Test.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetD2TestVerifyValue (int32_t cardIndex, int32_t module, uint32_t value) |
| Sets the D2 Test Verify value. When the D2 test is enabled, the board will set the D2 Test Verify register to 0x55. An external application can write a value to the D2 Test Verify register and then read it after 30 seconds to verify that the background bit testing (D2 test) is activated.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetD2TestVerifyValue (int32_t cardIndex, int32_t module, uint32_t *p_outValue) |
| Retrieves the D2 Test Verify value. When the D2 test is enabled, the board will set the D2 Test Verify register to 0x55. An external application can write a value to the D2 Test Verify register and then read it after 30 seconds to verify that the background bit testing (D2 test) is activated.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetBITErrorLimit (int32_t cardIndex, int32_t module, int32_t channel, float64_t bitErrorLimit) |
| Sets the BIT Test Error Limit for the specified SD channel. Feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetBITErrorLimit (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outBitErrorLimit) |
| Retrieves the BIT Test Error Limit for the specified SD channel. Feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetAngleDelta (int32_t cardIndex, int32_t module, int32_t channel, float64_t angleDelta) |
| Sets the angle delta in degrees before indicating an angle delta alert for the specified channel. Setting the angle delta to zero disables the Angle Delta alert.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetAngleDelta (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outAngleDelta) |
| Retrieves the angle delta in degrees before indicating an angle delta alert from the specified channel. Setting the angle delta to zero disables the Angle Delta alert.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetAngleDataInit (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
| Set Angle Delta Monitoring for the channel specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetAngleDataInit (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outEnable) |
| Retrieves the current state of Angle Delta Monitoring for the channel specified.
|
|
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_GetFIFOCount (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outCount) |
| Retrieves the number of items in the S/D FIFO Buffer for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ReadFIFORaw32 (int32_t cardIndex, int32_t module, int32_t channel, uint32_t count, uint32_t p_outData[], uint32_t *p_outRead) |
| Retrieves multiple values from the SD FIFO Buffer for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOValue (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outValue) |
| Retrieves one value from the S/D FIFO Buffer for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOFloatValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outValue) |
| Retrieves one value in floating-point format from the S/D FIFO Buffer for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOLoThreshold (int32_t cardIndex, int32_t module, int32_t channel, uint32_t threshold) |
| Sets the number of data words the FIFO will have left before setting the LoThreshold bit in the FIFO status register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOLoThreshold (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outThreshold) |
| Retrieves the count set in the LoThreshold register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOHiThreshold (int32_t cardIndex, int32_t module, int32_t channel, uint32_t threshold) |
| Sets the number of data words the FIFO will receive before setting the HiThreshold bit in the FIFO status register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOHiThreshold (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outThreshold) |
| Retrieves the count set in the HiThreshold register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOAlmostEmpty (int32_t cardIndex, int32_t module, int32_t channel, uint32_t empty) |
| Sets the almost empty mark/threshold to set or to reset the SD channel's FIFO Status "Almost Empty" bit. When the SD channel's FIFO counter is less than or equal to the almost empty mark, the "Almost Empty" bit will be set (1). When the SD channel's FIFO counter is greater than the almost empty mark, the "Almost Empty" bit will be reset (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOAlmostEmpty (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outEmpty) |
| Retrieves the "almost empty" mark/threshold used to set or to reset the SD channel's FIFO Status "Almost Empty" bit. When the SD channel's FIFO counter is less than or equal to the "almost empty" mark, the "Almost Empty" bit will be set (1). When the SD channel's FIFO counter is greater than the "almost empty" mark, the "Almost Empty" bit will be reset (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOAlmostFull (int32_t cardIndex, int32_t module, int32_t channel, uint32_t full) |
| Sets the almost full mark/threshold to set or to reset the SD channel's FIFO Status "Almost Full" bit. When the SD channel's FIFO counter is greater than or equal to the almost full mark, the "Almost Full" bit will be set (1). When the SD channel's FIFO counter is less than the almost full mark, the "Almost Full" bit will be reset (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOAlmostFull (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outFull) |
| Retrieves the "almost full" mark/threshold to set or to reset the SD channel's FIFO Status "Almost Full" bit. When the SD channel's FIFO counter is greater than or equal to the "almost full" mark, the "Almost Full" bit will be set (1). When the SD channel's FIFO counter is less than the "almost full" mark, the "Almost Full" bit will be reset (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFODelay (int32_t cardIndex, int32_t module, int32_t channel, uint32_t delay) |
| Sets the time delay before samples are taken after the trigger occurs. The time delay is a function of sample time multiplied by the delay parameter. The sample time is set by the function naibrd_SD_SetFIFOSampleRate.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFODelay (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outDelay) |
| Retrieves the time delay before samples are taken after the trigger occurs. The time delay is a function of sample time multiplied by the delay parameter. The sample time is set by the function naibrd_SD_SetFIFOSampleRate.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOSize (int32_t cardIndex, int32_t module, int32_t channel, uint32_t size) |
| Sets the number of samples taken after the trigger occurs.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOSize (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outSize) |
| Retrieves the number of samples taken after the trigger occurs.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOSampleRateValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t sampleRate) |
| Sets the time in usec between samples taken in intervals of 4.096us.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOSampleRateValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outSampleRate) |
| Retrieves the time in usec between samples taken in intervals of 4.096us.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOSampleRate (int32_t cardIndex, int32_t module, int32_t channel, uint32_t sampleRate) |
| Sets the time between samples taken. The sample time has a base period of 4.096us.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOSampleRate (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outSampleRate) |
| Retrieves the time between samples taken. The sample time has a base period of 4.096us.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFODataType (int32_t cardIndex, int32_t module, int32_t channel, uint32_t dataType) |
| Sets the type of data to acquire in the buffer.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFODataType (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outDataType) |
| Retrieves the type of data to acquire in the buffer.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ClearFIFO (int32_t cardIndex, int32_t module, int32_t channel) |
| Clears the S/D FIFO buffer for the specified channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetFIFOTrigMode (int32_t cardIndex, int32_t module, int32_t channel, uint32_t trigMode) |
| Sets the trigger mode to start data buffering.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFIFOTrigMode (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outTrigMode) |
| Retrieves the trigger mode to start data buffering.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SoftwareTrigger (int32_t cardIndex, int32_t module) |
| Sends a software trigger to all channels.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_status_type_t statusType, nai_status_bit_t *p_outStatus) |
| Retrieves the event mapped status of a channel for a specific event mapped status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ClearEventMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_status_type_t statusType) |
| Clears the SD Event Mapped Latched Status for the specified channel and status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetEventMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_status_type_t type, bool_t enable) |
| Sets the Event Mapped Interrupt Enable for the specified SD channel and event mapped interrupt status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_status_type_t type, bool_t *p_outEnable) |
| Retrieves the Event Mapped Interrupt Enable for the specified SD channel and event mapped interrupt status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetEventMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_status_type_t type, naibrd_int_trigger_type_t triggerType) |
| Sets the Event Mapped Interrupt Edge/Level property for the specified SD channel and event mapped interrupt status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outTriggerType) |
| Retrieves the Event Mapped Interrupt Edge/Level property for the specified SD channel and event mapped interrupt status type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetEventMappedInterruptVector (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, uint32_t vector) |
| Sets the Event Mapped Interrupt Vector for the specified SD channel and event mapped interrupt status category type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedInterruptVector (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, uint32_t *p_outVector) |
| Retrieves the Event Mapped Interrupt Vector for the specified SD channel and event mapped interrupt status category type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetEventMappedInterruptSteering (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, naibrd_int_steering_t steering) |
| Sets the Event Mapped Interrupt Steering, which indicates the interrupt direction, for the specified SD channel and event mapped interrupt status category type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedInterruptSteering (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, naibrd_int_steering_t *p_outSteering) |
| Retrieves the Event Mapped Interrupt Steering, which indicates the interrupt direction, for the specified SD channel and event mapped interrupt status category type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ConvertToAngle (uint32_t modId, uint32_t rawData, float64_t *p_outAngle) |
| Converts raw angle data to an angle value in degrees.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ConvertToAngleRaw (uint32_t modId, float64_t angle, uint32_t *p_outRawData) |
| Converts Angle value to raw angle value.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ConvertToVelocity (uint32_t modId, uint32_t rawData, float64_t velScale, float64_t *p_outVelocity) |
| Converts raw velocity data to a velocity value in RPS.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ConvertToFrequency (uint32_t modId, uint32_t rawData, float64_t *p_outFreq) |
| Converts raw frequency data to a frequency value represented as a 64 bit float.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ConvertToVoltage (uint32_t modId, uint32_t rawData, float64_t *p_outVoltage) |
| Converts raw voltage data to a voltage value represented as a 64 bit float.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ConvertToVoltageRaw (uint32_t modId, float64_t voltage, uint32_t *p_outRawData) |
| Converts scaled voltage value to raw voltage data.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetRaw (int32_t cardIndex, int32_t module, naibrd_sd_raw_t type, uint32_t rawData) |
| Sets the raw data value in the register associated with the register type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetRaw (int32_t cardIndex, int32_t module, naibrd_sd_raw_t type, uint32_t *p_outRawData) |
| Retrieves the raw data value in the register associated with the register type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_channel_raw_t type, uint32_t rawData) |
| Sets the raw data value in the register associated with the channel and channel register type specified. BIT Error Limit feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_channel_raw_t type, uint32_t *p_outRawData) |
| Retrieves the raw data value in the register associated with the channel and channel register type specified. BIT Error Limit feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t statusType, 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_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t statusType, 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_SetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t statusType, uint32_t enableRaw) |
| Sets the raw data value in the interrupt enable register associated with the status type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_sd_chan_mapped_status_type_t statusType, uint32_t *p_outEnableRaw) |
| Retrieves the raw data value in the interrupt enable register associated with the status type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedStatusRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_status_access_type_t accessType, naibrd_sd_event_mapped_category_type_t type, uint32_t *p_outStatusRaw) |
| Retrieves the raw data value in the event mapped status register associated with the SD channel and status type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ClearEventMappedStatusRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, uint32_t statusRaw) |
| Clears the raw data value in the event mapped status register associated with the SD channel and status type specified and the bits specified in the parameter statusRaw.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetEventMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, uint32_t enableRaw) |
| Sets the raw data value in the event mapped interrupt enable register associated with the SD channel and status type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetEventMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sd_event_mapped_category_type_t type, uint32_t *p_outEnableRaw) |
| Retrieves the raw data value in the event mapped interrupt enable register associated with the SD channel and status type specified.
|
|