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

Typedefs

typedef struct rtd_gen5_samplerate_map rtd_gen5_samplerate_map_t
 

Functions

static int32_t GetChannelCount (uint32_t modid)
 
static float64_t GetMaxResistance (uint32_t modid)
 
static nai_status_t naibrd_RTD_VerifyChannel (uint32_t modid, int32_t channel)
 
static nai_status_t naibrd_RTD_VerifyWireMode (naibrd_rtd_wire_mode_t wiremode)
 
static nai_status_t naibrd_RTD_VerifyZeroTempType (naibrd_rtd_zero_temp_resistance_type_t zerotemptype)
 
static nai_status_t naibrd_RTD_VerifyTemperatureType (naibrd_rtd_temperature_type_t temperatureType)
 
static nai_status_t naibrd_RTD_VerifyChanMappedStatusType (naibrd_rtd_chan_mapped_status_type_t statusType)
 
static nai_status_t naibrd_RTD_VerifyBoolean (bool_t enable)
 
static nai_status_t naibrd_RTD_VerifyConfigurationType (naibrd_rtd_config_type_t configType)
 
static nai_status_t naibrd_RTD_VerifyBackgroundOpType (naibrd_rtd_background_op_type_t opType)
 
static nai_status_t naibrd_RTD_VerifyInterruptTriggerType (naibrd_int_trigger_type_t interruptType)
 
static nai_status_t naibrd_RTD_VerifyInterruptSteeringType (naibrd_int_steering_t steeringType)
 
static nai_status_t naibrd_RTD_VerifyThresholdType (naibrd_rtd_thresh_type_t thresholdType)
 
static nai_status_t naibrd_RTD_VerifyChannelRawWriteableType (naibrd_rtd_channel_raw_t chanRawType)
 
static nai_status_t naibrd_RTD_VerifyChannelRawType (naibrd_rtd_channel_raw_t chanRawType)
 
NAIBRDFUNC int32_t NAIAPI naibrd_RTD_GetChannelCount (uint32_t modid)
 Returns the number of channels for the specified RTD Module ID.
 
NAIBRDFUNC float64_t NAIAPI naibrd_RTD_GetMaxResistance (uint32_t modid)
 Returns the maximum resistance value in ohms for the specified RTD Module ID.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outresistance)
 Retrieves the resistance measurement for the specified RTD channel. For Generation 5 modules (RT1), the raw data reading is a 32 bits formatted as IEEE 754 Single Precision Floating Point. For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllResistances (int32_t cardIndex, int32_t module, int32_t arraysize, float64_t p_outresistances[])
 Retrieves all the resistance measurement for the specified RTD module. For Generation 5 modules (RT1), the raw data reading is a 32 bits formatted as IEEE 754 Single Precision Floating Point.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outtemperature)
 Retrieves the temperature measurement in Celsius for the specified RTD channel. This feature is available only on Generation 5 modules (RT1). For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetTemperatureEx (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_temperature_type_t tempType, float64_t *p_outtemperature)
 Retrieves the temperature measurement in either fahrenheit or celsius for the specified RTD channel. This feature is available only on Generation 5 modules (RT1). For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllTemperatures (int32_t cardIndex, int32_t module, int32_t arraysize, float64_t p_outtemperatures[])
 Retrieves all the temperature measurement for the specified RTD module. This feature is available only on Generation 5 modules (RT1).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllTemperaturesEx (int32_t cardIndex, int32_t module, naibrd_rtd_temperature_type_t tempType, int32_t arraysize, float64_t p_outtemperatures[])
 Retrieves all the temperature measurement in either fahrenheit or celsius for the specified RTD module. This feature is available only on Generation 5 modules (RT1).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_chan_mapped_status_type_t type, nai_status_bit_t *p_outstatusBit)
 Retrieves the status for the specified RTD channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_chan_mapped_status_type_t type)
 Clears the latched status for the specified channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 Enables/disables status reporting for the specified RTD channel. Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outenable)
 Retrieves the enabled/disabled state of status reporting for the specified RTD channel. Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetZeroTempResistance (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_zero_temp_resistance_type_t zeroTempResistance)
 NOTE: This API is deprecated for RT1, please use extended function naibrd_RTD_SetZeroTempResistanceEx instead. Sets the transducer's 0 degree Celsius resistance (in ohms) setting for the specified channel as follows:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetZeroTempResistance (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_zero_temp_resistance_type_t *p_outZeroTempResistance)
 NOTE: This API is deprecated for RT1, please use extended function naibrd_RTD_GetZeroTempResistanceEx instead. Retrieves the transducer's 0 degree Celsius resistance (in ohms) setting for the specified channel as follows:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetZeroTempResistanceEx (int32_t cardIndex, int32_t module, int32_t channel, float64_t zeroTempResistance)
 Sets the transducer's 0 degree Celsius resistance (in ohms) setting for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetZeroTempResistanceEx (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outZeroTempResistance)
 Retrieves the transducer's 0 degree Celsius resistance (in ohms) setting for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetWireMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_wire_mode_t wiremode)
 Sets the RTD wire mode configuration for the specified RTD channel as follows:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetWireMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_wire_mode_t *p_outwiremode)
 Retrieves the RTD wire mode configuration for the specified RTD channel as follows:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetCompResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t resistance)
 Sets the 2-wire resistance compensation. Used only when the specified RTD channel is set for 2-wire mode. This value represents the TOTAL lead resistance and is subtracted from the resistance measurement when the channel is set for 2-wire mode.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetCompResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outresistance)
 Retrieves the 2-wire resistance compensation. Used only when the specified RTD channel is set for 2-wire mode. This value represents the TOTAL lead resistance and is subtracted from the resistance measurement when the channel is set for 2-wire mode.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, float64_t sampleRate)
 Sets the measurement sample rate for the specified RTD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outsampleRate)
 Retrieves the measurement sample rate for the specified RTD channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_config_type_t configType)
 Sets the configuration for the specified channel as RTD or TC(Thermocouple), only applicable for TR1 module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_config_type_t *p_outConfigType)
 Retrieves the configuration for the specified channel, only applicable for TR1 module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetOffsetTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t offsetTemperature)
 Sets the RTD offset temperature for the specified RTD channel. The offset temperature is in degrees Celsius and is subtracted from the output temperature degrees Celsius reading. The result of the subtraction is also reflected in the output temperature degrees Fahrenheit reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetOffsetTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outOffsetTemperature)
 Retrieves the RTD offset temperature for the specified RTD channel. The offset temperature is in degrees Celsius and is subtracted from the output temperature degrees Celsius reading. The result of the subtraction is also reflected in the output temperature degrees Fahrenheit reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetBackgroundOpSuspend (int32_t cardIndex, int32_t module, int32_t channel, bool_t disable)
 Sets the bit corresponding to the specified RTD channel in the suspend background operation register. Writing a 1 to the bit suspends the BIT and Open-Line tests, and writing a 0 re-enables them to run at the regular 30 second intervals.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetBackgroundOpSuspend (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outDisable)
 Retrieves the bit corresponding to the specified RTD channel in the suspend background operation register. 1 indicates that the BIT and Open-Line tests are suspended, while 0 indicates that they are enabled to run at the regular 30 second intervals.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_TriggerBackgroundOperation (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_background_op_type_t opType)
 Sets the bit corresponding to the specified RTD channel in the register corresponding to the specified background operation type. The bit is set to a 1, which triggers a single execution of the operation. Valid operation types are BIT Test and Open-Line Test. Bit is cleared upon completion of the operation.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetBitOpenInterval (int32_t cardIndex, int32_t module, uint32_t bitopeninterval)
 Sets the time interval between successive BIT/open detection tests. Writing '0' disables BIT/open detection. The time interval LSB is 1.024 msec for RT1. For Gen 5 modules, this function applies to X1 modules only and is not supported for Gen 5 X2 modules. For Gen 5 X2 modules, the BIT/Open interval is fixed at 30 seconds, or optionally suspended.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetBitOpenInterval (int32_t cardIndex, int32_t module, uint32_t *p_outbitopeninterval)
 Retrieves the time interval between successive BIT/open detection tests. Writing '0' disables BIT/open detection. The time interval LSB is 1.024 msec for RT1. For Gen 5 modules, this function applies to X1 modules only and is not supported for Gen 5 X2 modules. For Gen 5 X2 modules, the BIT/Open interval is fixed at 30 seconds.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_CheckPowerOnBITComplete (int32_t cardIndex, int32_t module, bool_t *p_outpbitComplete)
 Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified channel. The PBIT result will be in the BIT status register. Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_chan_mapped_status_type_t type, bool_t statusintenab)
 Sets the RTD Interrupt Enable state corresponding to the specified RTD Status type for the specified RTD channel. BIT Status and Open Status are part of the background testing. When the interrupt is enabled, a non-compliant channel will trigger an interrupt. By default, interrupts are disabled. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_chan_mapped_status_type_t type, bool_t *p_outstatusintenab)
 Retrieves the RTD Interrupt Enable state corresponding to the specified RTD Status type for the specified RTD channel. BIT Status and Open Status are part of the background testing. When the interrupt is enabled, a non-compliant channel will trigger an interrupt. By default, interrupts are disabled. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_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. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_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. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, uint32_t interruptvector)
 Sets the RTD Interrupt Vector for the specified RTD module and RTD Status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, uint32_t *p_outinterruptvector)
 Retrieves the RTD Interrupt Vector for the specified RTD module and RTD Status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering, which indicates the interrupt direction, for the specified interrupt status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outsteering)
 Retrieves the Interrupt Steering, which indicates the interrupt direction, for the specified interrupt status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetThreshold (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_thresh_type_t type, float64_t threshold)
 This function sets the specified RTD channel's temperature threshold represented by the parameter "type." Valid threshold types are Alert Lo, Alarm Lo, Alert Hi, and Alarm Hi. If the specified channel's temperature meets or exceeds the Alarm Hi Threshold, then the bit in the Alarm Hi status register that corresponds to the channel will be set to 1. If the specified channel's temperature meets or goes below the Alarm Lo Threshold, then the bit in the Alarm Lo status register that corresponds to the channel will be set to 1. The Alert Lo register works the same way as the Alarm Lo register except that the Alert Lo threshold should not be as low as the Alarm Lo threshold. The Alert Hi register works the same way as the Alarm Hi register except that the Alert Hi threshold should not be as high as the Alarm Hi threshold.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetThreshold (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_thresh_type_t type, float64_t *p_outthreshold)
 This function retrieves the specified RTD channel's temperature threshold represented by the parameter "type." Valid threshold types are Alert Lo, Alarm Lo, Alert Hi, and Alarm Hi. If the specified channel's temperature meets or exceeds the Alarm Hi Threshold, then the bit in the Alarm Hi status register that corresponds to the channel will be set to 1. If the specified channel's temperature meets or goes below the Alarm Lo Threshold, then the bit in the Alarm Lo status register that corresponds to the channel will be set to 1. The Alert Lo register works the same way as the Alarm Lo register except that the Alert Lo threshold should not be as low as the Alarm Lo threshold. The Alert Hi register works the same way as the Alarm Hi register except that the Alert Hi threshold should not be as high as the Alarm Hi threshold.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ConvertToSampleRate (uint32_t modid, uint32_t rawdata, float64_t *p_outsampleRate)
 Calculates the sample rate in Hz from the given raw data.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ConvertToSampleRateRaw (uint32_t modid, float64_t sampleRate, uint32_t *p_outrawdata)
 Calculates the raw data code corresponding to the given sample rate.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_channel_raw_t type, uint32_t rawdata)
 Sets the raw data value in the register associated with the channel and channel register type specified. Note: The registers corresponding to the channel register types NAIBRD_RTD_RAW_RESISTANCE and NAIBRD_RTD_RAW_TEMPERATURE are read-only, and NAI_ERROR_INVALID_VALUE will be returned by this function if either of those types are passed in as the type parameter.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, uint32_t *p_outstatusraw)
 Retrieves the raw status value in the register associated with the status type specified. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, uint32_t clearstatusraw)
 Clears the status for the channels specified (bit-masked) of the status type specified. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_SetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, uint32_t statusintenab)
 Sets the raw interrupt enable data value in the register associated with the status type specified. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_rtd_chan_mapped_status_type_t type, uint32_t *p_outstatusintenab)
 Retrieves the raw interrupt enable data value in the register associated with the status type specified. Module Summary Status: Feature supported in FPGA Version >= X.X.
 

Variables

static const uint32_t rtd_gen5_reg_configuration [1] = NAI_RTD_GEN5_REG_CONFIG_ADD
 
static const uint32_t rtd_gen5_reg_background_op_suspend [1] = NAI_RTD_GEN5_REG_BACKGROUND_OP_SUSPEND_ADD
 
static const uint32_t rtd_gen5_reg_resistance [8] = NAI_RTD_GEN5_REG_RESISTANCE_ADD
 
static const uint32_t rtd_gen5_reg_2wire_compensation_resistance [8] = NAI_RTD_GEN5_REG_2WIRE_COMPENSATION_RES_ADD
 
static const uint32_t rtd_gen5_reg_wire_mode [8] = NAI_RTD_GEN5_REG_WIRE_MODE_ADD
 
static const uint32_t rtd_gen5_reg_bit_open_interval [1] = NAI_RTD_GEN5_REG_BIT_OPEN_INTERVAL_ADD
 
static const uint32_t rtd_gen5_reg_temperature [8] = NAI_RTD_GEN5_REG_TEMPERATURE_ADD
 
static const uint32_t rtd_gen5_reg_fahrenheit_temperature [8] = NAI_RTD_GEN5_REG_TEMPERATURE_FAHRENHEIT_ADD
 
static const uint32_t rtd_gen5_reg_zero_temp_resistance [8] = NAI_RTD_GEN5_ZERO_TEMP_RESISTANCE
 
static const uint32_t rtd_gen5_reg_sample_rate [8] = NAI_RTD_GEN5_REG_SAMPLE_RATE_ADD
 
static const uint32_t rtd_gen5_reg_alert_lo [8] = NAI_RTD_GEN5_REG_ALERT_TEMPERATURE_LO_ADD
 
static const uint32_t rtd_gen5_reg_alarm_lo [8] = NAI_RTD_GEN5_REG_ALARM_TEMPERATURE_LO_ADD
 
static const uint32_t rtd_gen5_reg_alert_hi [8] = NAI_RTD_GEN5_REG_ALERT_TEMPERATURE_HI_ADD
 
static const uint32_t rtd_gen5_reg_alarm_hi [8] = NAI_RTD_GEN5_REG_ALARM_TEMPERATURE_HI_ADD
 
static const uint32_t rtd_gen5_reg_offset_temperature [8] = NAI_RTD_GEN5_REG_OFFSET_TEMPERATURE_ADD
 
static const uint32_t rtd_gen5_mapped_wire_mode [3] = NAI_RTD_GEN5_WIRE_MODE_MAPPED_VALUE
 
static const uint32_t rtd_gen5_X1_mapped_wire_mode [3] = NAI_RTD_GEN5_X1_WIRE_MODE_MAPPED_VALUE
 
static const rtd_gen5_samplerate_map_t RTD_GEN5_SampleRate_Mapping []
 
static const float32_t rtd_range [NAIBRD_RTD_ZERO_TEMP_TYPE_ENUM_COUNT]
 
static const uint32_t rtd_gen5_StatusRegAddr [NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t rtd_gen5_EdgeLevelRegAddr [NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t rtd_gen5_IntEnableRegAddr [NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const int32_t rtd_gen5_interruptNum [NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t rtd_gen5_reg_background_op [NAIBRD_RTD_BACKGROUND_OP_TYPE_ENUM_COUNT]
 
static const uint32_t *const rtd_gen5_reg_chan_raw [NAIBRD_RTD_RAW_ENUM_COUNT]
 
static const uint32_t *const rtd_gen5_reg_chan_temperature [NAIBRD_RTD_TEMP_TYPE_ENUM_COUNT]
 
static const uint32_t *const rtd_gen5_reg_threshold [NAIBRD_RTD_THRESH_TYPE_ENUM_COUNT]
 

Typedef Documentation

◆ rtd_gen5_samplerate_map_t

typedef struct rtd_gen5_samplerate_map rtd_gen5_samplerate_map_t

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modid)
static

◆ GetMaxResistance()

static float64_t GetMaxResistance ( uint32_t modid)
static

◆ naibrd_RTD_VerifyBackgroundOpType()

static nai_status_t naibrd_RTD_VerifyBackgroundOpType ( naibrd_rtd_background_op_type_t opType)
static

◆ naibrd_RTD_VerifyBoolean()

static nai_status_t naibrd_RTD_VerifyBoolean ( bool_t enable)
static

◆ naibrd_RTD_VerifyChanMappedStatusType()

static nai_status_t naibrd_RTD_VerifyChanMappedStatusType ( naibrd_rtd_chan_mapped_status_type_t statusType)
static

◆ naibrd_RTD_VerifyChannel()

static nai_status_t naibrd_RTD_VerifyChannel ( uint32_t modid,
int32_t channel )
static

◆ naibrd_RTD_VerifyChannelRawType()

static nai_status_t naibrd_RTD_VerifyChannelRawType ( naibrd_rtd_channel_raw_t chanRawType)
static

◆ naibrd_RTD_VerifyChannelRawWriteableType()

static nai_status_t naibrd_RTD_VerifyChannelRawWriteableType ( naibrd_rtd_channel_raw_t chanRawType)
static

◆ naibrd_RTD_VerifyConfigurationType()

static nai_status_t naibrd_RTD_VerifyConfigurationType ( naibrd_rtd_config_type_t configType)
static

◆ naibrd_RTD_VerifyInterruptSteeringType()

static nai_status_t naibrd_RTD_VerifyInterruptSteeringType ( naibrd_int_steering_t steeringType)
static

◆ naibrd_RTD_VerifyInterruptTriggerType()

static nai_status_t naibrd_RTD_VerifyInterruptTriggerType ( naibrd_int_trigger_type_t interruptType)
static

◆ naibrd_RTD_VerifyTemperatureType()

static nai_status_t naibrd_RTD_VerifyTemperatureType ( naibrd_rtd_temperature_type_t temperatureType)
static

◆ naibrd_RTD_VerifyThresholdType()

static nai_status_t naibrd_RTD_VerifyThresholdType ( naibrd_rtd_thresh_type_t thresholdType)
static

◆ naibrd_RTD_VerifyWireMode()

static nai_status_t naibrd_RTD_VerifyWireMode ( naibrd_rtd_wire_mode_t wiremode)
static

◆ naibrd_RTD_VerifyZeroTempType()

static nai_status_t naibrd_RTD_VerifyZeroTempType ( naibrd_rtd_zero_temp_resistance_type_t zerotemptype)
static

Variable Documentation

◆ rtd_gen5_EdgeLevelRegAddr

const uint32_t rtd_gen5_EdgeLevelRegAddr[NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_RTD_GEN5_REG_BIT_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_BIT_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_OPEN_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_OPEN_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALERT_LO_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALERT_LO_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALARM_LO_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALARM_LO_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALERT_HI_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALERT_HI_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALARM_HI_STATUS_EDGE_LEVEL_ADD,
NAI_RTD_GEN5_REG_ALARM_HI_STATUS_EDGE_LEVEL_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_EDGE_LEVEL_MODE_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_EDGE_LEVEL_MODE_ADD
}

◆ rtd_gen5_IntEnableRegAddr

const uint32_t rtd_gen5_IntEnableRegAddr[NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_RTD_GEN5_REG_BIT_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_BIT_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_OPEN_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_OPEN_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALERT_LO_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALERT_LO_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALARM_LO_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALARM_LO_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALERT_HI_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALERT_HI_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALARM_HI_STATUS_INT_ENAB_ADD,
NAI_RTD_GEN5_REG_ALARM_HI_STATUS_INT_ENAB_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_ENABLE_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_ENABLE_ADD
}

◆ rtd_gen5_interruptNum

const int32_t rtd_gen5_interruptNum[NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_RTD_GEN5_BIT_INT_VECTOR,
NAI_RTD_GEN5_BIT_INT_VECTOR,
NAI_RTD_GEN5_OPEN_INT_VECTOR,
NAI_RTD_GEN5_OPEN_INT_VECTOR,
NAI_RTD_GEN5_ALERT_LO_INT_VECTOR,
NAI_RTD_GEN5_ALERT_LO_INT_VECTOR,
NAI_RTD_GEN5_ALARM_LO_INT_VECTOR,
NAI_RTD_GEN5_ALARM_LO_INT_VECTOR,
NAI_RTD_GEN5_ALERT_HI_INT_VECTOR,
NAI_RTD_GEN5_ALERT_HI_INT_VECTOR,
NAI_RTD_GEN5_ALARM_HI_INT_VECTOR,
NAI_RTD_GEN5_ALARM_HI_INT_VECTOR,
NAI_GEN5_SUMMARY_INTERRUPT_NUM,
NAI_GEN5_SUMMARY_INTERRUPT_NUM
}

◆ rtd_gen5_mapped_wire_mode

const uint32_t rtd_gen5_mapped_wire_mode[3] = NAI_RTD_GEN5_WIRE_MODE_MAPPED_VALUE
static

◆ rtd_gen5_reg_2wire_compensation_resistance

const uint32_t rtd_gen5_reg_2wire_compensation_resistance[8] = NAI_RTD_GEN5_REG_2WIRE_COMPENSATION_RES_ADD
static

◆ rtd_gen5_reg_alarm_hi

const uint32_t rtd_gen5_reg_alarm_hi[8] = NAI_RTD_GEN5_REG_ALARM_TEMPERATURE_HI_ADD
static

◆ rtd_gen5_reg_alarm_lo

const uint32_t rtd_gen5_reg_alarm_lo[8] = NAI_RTD_GEN5_REG_ALARM_TEMPERATURE_LO_ADD
static

◆ rtd_gen5_reg_alert_hi

const uint32_t rtd_gen5_reg_alert_hi[8] = NAI_RTD_GEN5_REG_ALERT_TEMPERATURE_HI_ADD
static

◆ rtd_gen5_reg_alert_lo

const uint32_t rtd_gen5_reg_alert_lo[8] = NAI_RTD_GEN5_REG_ALERT_TEMPERATURE_LO_ADD
static

◆ rtd_gen5_reg_background_op

const uint32_t rtd_gen5_reg_background_op[NAIBRD_RTD_BACKGROUND_OP_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_RTD_GEN5_REG_TRIGGER_OPEN_CHECK_ADD,
NAI_RTD_GEN5_REG_TRIGGER_BIT_ADD
}

◆ rtd_gen5_reg_background_op_suspend

const uint32_t rtd_gen5_reg_background_op_suspend[1] = NAI_RTD_GEN5_REG_BACKGROUND_OP_SUSPEND_ADD
static

◆ rtd_gen5_reg_bit_open_interval

const uint32_t rtd_gen5_reg_bit_open_interval[1] = NAI_RTD_GEN5_REG_BIT_OPEN_INTERVAL_ADD
static

◆ rtd_gen5_reg_chan_raw

const uint32_t* const rtd_gen5_reg_chan_raw[NAIBRD_RTD_RAW_ENUM_COUNT]
static
Initial value:
= {
}
static const uint32_t rtd_gen5_reg_alarm_hi[8]
Definition naibrd_rtd.c:91
static const uint32_t rtd_gen5_reg_resistance[8]
Definition naibrd_rtd.c:80
static const uint32_t rtd_gen5_reg_alert_lo[8]
Definition naibrd_rtd.c:88
static const uint32_t rtd_gen5_reg_alert_hi[8]
Definition naibrd_rtd.c:90
static const uint32_t rtd_gen5_reg_2wire_compensation_resistance[8]
Definition naibrd_rtd.c:81
static const uint32_t rtd_gen5_reg_zero_temp_resistance[8]
Definition naibrd_rtd.c:86
static const uint32_t rtd_gen5_reg_wire_mode[8]
Definition naibrd_rtd.c:82
static const uint32_t rtd_gen5_reg_offset_temperature[8]
Definition naibrd_rtd.c:92
static const uint32_t rtd_gen5_reg_alarm_lo[8]
Definition naibrd_rtd.c:89
static const uint32_t rtd_gen5_reg_temperature[8]
Definition naibrd_rtd.c:84

◆ rtd_gen5_reg_chan_temperature

const uint32_t* const rtd_gen5_reg_chan_temperature[NAIBRD_RTD_TEMP_TYPE_ENUM_COUNT]
static
Initial value:
= {
}
static const uint32_t rtd_gen5_reg_fahrenheit_temperature[8]
Definition naibrd_rtd.c:85

◆ rtd_gen5_reg_configuration

const uint32_t rtd_gen5_reg_configuration[1] = NAI_RTD_GEN5_REG_CONFIG_ADD
static

◆ rtd_gen5_reg_fahrenheit_temperature

const uint32_t rtd_gen5_reg_fahrenheit_temperature[8] = NAI_RTD_GEN5_REG_TEMPERATURE_FAHRENHEIT_ADD
static

◆ rtd_gen5_reg_offset_temperature

const uint32_t rtd_gen5_reg_offset_temperature[8] = NAI_RTD_GEN5_REG_OFFSET_TEMPERATURE_ADD
static

◆ rtd_gen5_reg_resistance

const uint32_t rtd_gen5_reg_resistance[8] = NAI_RTD_GEN5_REG_RESISTANCE_ADD
static

◆ rtd_gen5_reg_sample_rate

const uint32_t rtd_gen5_reg_sample_rate[8] = NAI_RTD_GEN5_REG_SAMPLE_RATE_ADD
static

◆ rtd_gen5_reg_temperature

const uint32_t rtd_gen5_reg_temperature[8] = NAI_RTD_GEN5_REG_TEMPERATURE_ADD
static

◆ rtd_gen5_reg_threshold

const uint32_t* const rtd_gen5_reg_threshold[NAIBRD_RTD_THRESH_TYPE_ENUM_COUNT]
static

◆ rtd_gen5_reg_wire_mode

const uint32_t rtd_gen5_reg_wire_mode[8] = NAI_RTD_GEN5_REG_WIRE_MODE_ADD
static

◆ rtd_gen5_reg_zero_temp_resistance

const uint32_t rtd_gen5_reg_zero_temp_resistance[8] = NAI_RTD_GEN5_ZERO_TEMP_RESISTANCE
static

◆ RTD_GEN5_SampleRate_Mapping

const rtd_gen5_samplerate_map_t RTD_GEN5_SampleRate_Mapping[]
static
Initial value:
=
{
{ 3.0, 0x27}, { 4.0, 0x26}, { 5.0, 0x25}, { 6.0, 0x24}, { 8.0, 0x23},
{ 10.0, 0x22}, { 12.0, 0x21}, { 15.0, 0x20}, { 16.0, 0x1F}, { 20.0, 0x1E},
{ 24.0, 0x1D}, { 25.0, 0x1C}, { 30.0, 0x1B}, { 32.0, 0x1A}, { 40.0, 0x19},
{ 48.0, 0x18}, { 50.0, 0x17}, { 60.0, 0x16}, { 64.0, 0x15}, { 75.0, 0x14},
{ 80.0, 0x13}, { 96.0, 0x12}, { 100.0, 0x11}, { 120.0, 0x10}, { 150.0, 0x0F},
{ 160.0, 0x0E}, { 192.0, 0x0D}, { 200.0, 0x0C}, { 240.0, 0x0B}, { 300.0, 0x0A},
{ 320.0, 0x09}, { 400.0, 0x08}, { 480.0, 0x07}, { 600.0, 0x06}, { 800.0, 0x05},
{ 960.0, 0x04}, {1200.0, 0x03}, {1600.0, 0x02}, {2400.0, 0x01}, {4800.0, 0x00},
}

◆ rtd_gen5_StatusRegAddr

const uint32_t rtd_gen5_StatusRegAddr[NAIBRD_RTD_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_RTD_GEN5_REG_BIT_STATUS_REALTIME_ADD,
NAI_RTD_GEN5_REG_BIT_STATUS_LATCHED_ADD,
NAI_RTD_GEN5_REG_OPEN_STATUS_REALTIME_ADD,
NAI_RTD_GEN5_REG_OPEN_STATUS_LATCHED_ADD,
NAI_RTD_GEN5_REG_ALERT_LO_STATUS_REALTIME_ADD,
NAI_RTD_GEN5_REG_ALERT_LO_STATUS_LATCHED_ADD,
NAI_RTD_GEN5_REG_ALARM_LO_STATUS_REALTIME_ADD,
NAI_RTD_GEN5_REG_ALARM_LO_STATUS_LATCHED_ADD,
NAI_RTD_GEN5_REG_ALERT_HI_STATUS_REALTIME_ADD,
NAI_RTD_GEN5_REG_ALERT_HI_STATUS_LATCHED_ADD,
NAI_RTD_GEN5_REG_ALARM_HI_STATUS_REALTIME_ADD,
NAI_RTD_GEN5_REG_ALARM_HI_STATUS_LATCHED_ADD,
NAI_GEN5_SUMMARY_STATUS_REAL_TIME_ADD,
NAI_GEN5_SUMMARY_STATUS_LATCHED_ADD
}

◆ rtd_gen5_X1_mapped_wire_mode

const uint32_t rtd_gen5_X1_mapped_wire_mode[3] = NAI_RTD_GEN5_X1_WIRE_MODE_MAPPED_VALUE
static

◆ rtd_range

const float32_t rtd_range[NAIBRD_RTD_ZERO_TEMP_TYPE_ENUM_COUNT]
static
Initial value:
=
{
100.0f,
500.0f,
1000.0f
}