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

Typedefs

typedef struct tc_gen5_samplerate_map tc_gen5_samplerate_map_t
 

Functions

static int32_t GetChannelCount (uint32_t modid)
 
static nai_status_t naibrd_TC_VerifyChannel (uint32_t modid, int32_t channel)
 
static nai_status_t naibrd_TC_VerifyChanMappedStatusType (naibrd_tc_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_TC_VerifyChanMappedLatchStatusType (naibrd_tc_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_TC_VerifyThermocoupleType (naibrd_tc_thermocouple_type_t tcType)
 
static nai_status_t naibrd_TC_VerifyTemperatureType (naibrd_tc_temperature_type_t tempType)
 
static nai_status_t naibrd_TC_VerifyCompType (naibrd_tc_comp_type_t tempType)
 
static nai_status_t naibrd_TC_VerifyConfigType (naibrd_tc_config_type_t configType)
 
static nai_status_t naibrd_TC_VerifyThresholdType (naibrd_tc_thresh_type_t type)
 
static nai_status_t naibrd_TC_VerifyChannelRawType (naibrd_tc_channel_raw_t type)
 
static nai_status_t naibrd_TC_VerifyBackgroundOpType (naibrd_tc_background_op_type_t opType)
 
static nai_status_t naibrd_TC_VerifyBoolean (bool_t enable)
 
static nai_status_t naibrd_TC_VerifyInterruptTriggerType (naibrd_int_trigger_type_t triggerType)
 
static nai_status_t naibrd_TC_VerifyInterruptSteeringType (naibrd_int_steering_t steeringType)
 
NAIBRDFUNC int32_t NAIAPI naibrd_TC_GetChannelCount (uint32_t modid)
 Returns the number of channels for the specified TC Module ID.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outVoltage)
 Retrieves the voltage measurement for the specified TC channel. The raw data reading is 32 bits formatted as IEEE 754 Single Precision Floating Point.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetAllVoltages (int32_t cardIndex, int32_t module, int32_t arraysize, float64_t outVoltages[])
 Retrieves all the voltage measurements for the specified TC module. The raw data reading is 32 bits formatted as IEEE 754 Single Precision Floating Point.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetTemperature (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_temperature_type_t tempType, float64_t *p_outTemperature)
 Retrieves the temperature measurement in either fahrenheit or celsius for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetAllTemperatures (int32_t cardIndex, int32_t module, naibrd_tc_temperature_type_t tempType, int32_t arraysize, float64_t outTemperatures[])
 Retrieves all the temperature measurement in either fahrenheit or celsius for the specified TC module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type, nai_status_bit_t *p_outStatus)
 Retrieves the status for the specified TC channel and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type)
 Clears the latched status for the specified channel and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 Enables/disables status reporting for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_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 TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetThermocoupleType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_thermocouple_type_t tcType)
 Sets the TC thermocouple type for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetThermocoupleType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_thermocouple_type_t *p_outTcType)
 Retrieves the TC thermocouple type configuration for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetCJCEnable (int32_t cardIndex, int32_t module, bool_t enable)
 Enables or disables cold junction compensation block for the specified TC module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetCJCEnable (int32_t cardIndex, int32_t module, bool_t *p_outEnable)
 Retrieves the cold junction compensation block state for the specified TC module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, float64_t sampleRate)
 Sets the measurement sample rate for the specified TC channel.

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]).
sampleRate: (Input) Sample rates: 12Hz to 4800 Hz .
Returns

 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outsampleRate)
 Retrieves the measurement sample rate for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetCompTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t temperature)
 Sets the compensation temperature for the specified TC channel. This value is added to the temperature reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetCompTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outTemperature)
 Retrieves the compensation temperature for the specified TC channel. This value represents the compensation temperature that is added to the temperature reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetCompType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_comp_type_t compType)
 Sets the TC thermocouple compensation type for the specified TC channel. If set for manual, compensation is based off value set by naibrd_TC_SetCompTemperature, otherwise compensation is autoset by internal temperature reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetCompType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_comp_type_t *p_outCompType)
 Retrieves the TC thermocouple compensation type configuration for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_config_type_t configType)
 Sets the configuration for the specified channel as RTD or TC(Thermocouple), only applicable for TR1 module.

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]).
configType: (Input) Configuration Type RTD/TC, refer to nai_tc_config_type_t definition.

.

Returns

 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_config_type_t *p_outConfigType)
 Retrieves the configuration for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetOffsetTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t offsetTemperature)
 Sets the TC offset temperature for the specified TC channel. The offset temperature is in degrees Celsius and is subtracted from the p_output temperature degrees Celsius reading. The result of the subtraction is also reflected in the p_output temperature degrees Fahrenheit reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetOffsetTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outOffsetTemperature)
 Retrieves the TC offset temperature for the specified TC channel. The offset temperature is in degrees Celsius and is subtracted from the p_output temperature degrees Celsius reading. The result of the subtraction is also reflected in the p_output temperature degrees Fahrenheit reading.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetBackgroundOpSuspend (int32_t cardIndex, int32_t module, int32_t channel, bool_t disable)
 Sets the bit corresponding to the specified TC channel in the suspend background operation register. Writing a 1 to the bit suspends the BIT and Open-Line tests and System Calibration, and writing a 0 re-enables them to run at the regular 30 second intervals.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetBackgroundOpSuspend (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outDisable)
 Retrieves the bit corresponding to the specified TC channel in the suspend background operation register. 1 indicates that the BIT and Open-Line tests and System Calibration are suspended, while 0 indicates that they are enabled to run at the regular 30 second intervals.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_TriggerBackgroundOperation (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_background_op_type_t opType)
 Sets the bit corresponding to the specified TC 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, Open-Line Test, and System Calibration. Bit is cleared upon completion of the operation.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type, bool_t enable)
 Sets the TC BIT or Open Status Interrupt Enable state for the specified TC 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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type, bool_t *p_outenable)
 Retrieves the TC BIT or Open Status Interrupt Enable state for the specified TC 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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type, naibrd_int_trigger_type_t triggerType)
 Sets the Interrupt Edge/Level property for the specified channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outtriggerType)
 Retrieves the Interrupt Edge/Level property for the specified channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetInterruptVector (int32_t cardIndex, int32_t module, naibrd_tc_chan_mapped_status_type_t type, uint32_t interruptvector)
 Sets the TC BIT or Open Status Interrupt Vector for the specified TC module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetInterruptVector (int32_t cardIndex, int32_t module, naibrd_tc_chan_mapped_status_type_t type, uint32_t *p_outinterruptvector)
 Retrieves the TC BIT or Open Status Interrupt Vector for the specified TC module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetInterruptSteering (int32_t cardIndex, int32_t module, naibrd_tc_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetInterruptSteering (int32_t cardIndex, int32_t module, naibrd_tc_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetThreshold (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_thresh_type_t type, float64_t threshold)
 This function sets the specified TC 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_TC_GetThreshold (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_thresh_type_t type, float64_t *p_outthreshold)
 This function retrieves the specified TC 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_TC_ConvertToSampleRate (uint32_t modid, uint32_t rawdata, float64_t *p_outsampleRate)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ConvertToSampleRateRaw (uint32_t modid, float64_t sampleRate, uint32_t *p_outrawdata)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_channel_raw_t type, uint32_t rawdata)
 Sets the raw data value in the register associated with the channel and channel register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_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_TC_GetStatusRaw (int32_t cardIndex, int32_t module, naibrd_tc_chan_mapped_status_type_t type, uint32_t *p_outstatusraw)
 Retrieves the raw status value in the register associated with the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ClearStatusRaw (int32_t cardIndex, int32_t module, naibrd_tc_chan_mapped_status_type_t type, uint32_t clearstatusraw)
 Clears the status for the channels specified (bit-masked) of the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_SetInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_tc_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_tc_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.
 

Variables

static const uint32_t tc_gen5_reg_configuration [1] = NAI_TC_GEN5_REG_CONFIG_ADD
 
static const uint32_t tc_gen5_reg_cjc_enable [1] = NAI_TC_GEN5_REG_CJC_ENABLE_ADD
 
static const uint32_t tc_gen5_reg_background_op_suspend [1] = NAI_TC_GEN5_REG_BACKGROUND_OP_SUSPEND_ADD
 
static const uint32_t tc_gen5_reg_voltage [8] = NAI_TC_GEN5_REG_VOLTAGE_ADD
 
static const uint32_t tc_gen5_reg_temperature [8] = NAI_TC_GEN5_REG_TEMPERATURE_ADD
 
static const uint32_t tc_gen5_reg_fahrenheit_temperature [8] = NAI_TC_GEN5_REG_TEMPERATURE_FAHRENHEIT_ADD
 
static const uint32_t tc_gen5_reg_thermocouple_type [8] = NAI_TC_GEN5_THERMOCOUPLE_TYPE_ADD
 
static const uint32_t tc_gen5_reg_comp_type [8] = NAI_TC_GEN5_COMPENSATION_TYPE_ADD
 
static const uint32_t tc_gen5_reg_comp_temperature [8] = NAI_TC_GEN5_COMPENSATION_TEMPERATURE_ADD
 
static const uint32_t tc_gen5_reg_alert_lo [8] = NAI_TC_GEN5_REG_ALERT_TEMPERATURE_LO_ADD
 
static const uint32_t tc_gen5_reg_alarm_lo [8] = NAI_TC_GEN5_REG_ALARM_TEMPERATURE_LO_ADD
 
static const uint32_t tc_gen5_reg_alert_hi [8] = NAI_TC_GEN5_REG_ALERT_TEMPERATURE_HI_ADD
 
static const uint32_t tc_gen5_reg_alarm_hi [8] = NAI_TC_GEN5_REG_ALARM_TEMPERATURE_HI_ADD
 
static const uint32_t tc_gen5_reg_sample_rate [8] = NAI_TC_GEN5_REG_SAMPLE_RATE_ADD
 
static const uint32_t tc_gen5_reg_offset_temperature [8] = NAI_TC_GEN5_REG_OFFSET_TEMPERATURE_ADD
 
static const tc_gen5_samplerate_map_t TC_gen5_SampleRate_Mapping []
 
static const uint32_t tc_gen5_StatusRegAddr [NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t tc_gen5_EdgeLevelRegAddr [NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t tc_gen5_IntEnableRegAddr [NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
 
static const int32_t tc_gen5_interruptNum [NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t tc_gen5_reg_background_op [NAIBRD_TC_BACKGROUND_OP_TYPE_ENUM_COUNT]
 
static const uint32_t *const tc_gen5_reg_chan_raw [NAIBRD_TC_RAW_ENUM_COUNT]
 
static const uint32_t *const tc_gen5_reg_chan_temperature [NAIBRD_TC_TEMP_TYPE_ENUM_COUNT]
 
static const uint32_t *const tc_gen5_reg_threshold [NAIBRD_TC_THRESH_TYPE_ENUM_COUNT]
 

Typedef Documentation

◆ tc_gen5_samplerate_map_t

typedef struct tc_gen5_samplerate_map tc_gen5_samplerate_map_t

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modid)
static

◆ naibrd_TC_ConvertToSampleRate()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ConvertToSampleRate ( uint32_t modid,
uint32_t rawdata,
float64_t * p_outsampleRate )

◆ naibrd_TC_ConvertToSampleRateRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ConvertToSampleRateRaw ( uint32_t modid,
float64_t sampleRate,
uint32_t * p_outrawdata )

◆ naibrd_TC_VerifyBackgroundOpType()

static nai_status_t naibrd_TC_VerifyBackgroundOpType ( naibrd_tc_background_op_type_t opType)
static

◆ naibrd_TC_VerifyBoolean()

static nai_status_t naibrd_TC_VerifyBoolean ( bool_t enable)
static

◆ naibrd_TC_VerifyChanMappedLatchStatusType()

static nai_status_t naibrd_TC_VerifyChanMappedLatchStatusType ( naibrd_tc_chan_mapped_status_type_t type)
static

◆ naibrd_TC_VerifyChanMappedStatusType()

static nai_status_t naibrd_TC_VerifyChanMappedStatusType ( naibrd_tc_chan_mapped_status_type_t type)
static

◆ naibrd_TC_VerifyChannel()

static nai_status_t naibrd_TC_VerifyChannel ( uint32_t modid,
int32_t channel )
static

◆ naibrd_TC_VerifyChannelRawType()

static nai_status_t naibrd_TC_VerifyChannelRawType ( naibrd_tc_channel_raw_t type)
static

◆ naibrd_TC_VerifyCompType()

static nai_status_t naibrd_TC_VerifyCompType ( naibrd_tc_comp_type_t tempType)
static

◆ naibrd_TC_VerifyConfigType()

static nai_status_t naibrd_TC_VerifyConfigType ( naibrd_tc_config_type_t configType)
static

◆ naibrd_TC_VerifyInterruptSteeringType()

static nai_status_t naibrd_TC_VerifyInterruptSteeringType ( naibrd_int_steering_t steeringType)
static

◆ naibrd_TC_VerifyInterruptTriggerType()

static nai_status_t naibrd_TC_VerifyInterruptTriggerType ( naibrd_int_trigger_type_t triggerType)
static

◆ naibrd_TC_VerifyTemperatureType()

static nai_status_t naibrd_TC_VerifyTemperatureType ( naibrd_tc_temperature_type_t tempType)
static

◆ naibrd_TC_VerifyThermocoupleType()

static nai_status_t naibrd_TC_VerifyThermocoupleType ( naibrd_tc_thermocouple_type_t tcType)
static

◆ naibrd_TC_VerifyThresholdType()

static nai_status_t naibrd_TC_VerifyThresholdType ( naibrd_tc_thresh_type_t type)
static

Variable Documentation

◆ tc_gen5_EdgeLevelRegAddr

const uint32_t tc_gen5_EdgeLevelRegAddr[NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_TC_GEN5_REG_BIT_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_BIT_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_OPEN_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_OPEN_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALERT_LO_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALERT_LO_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALARM_LO_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALARM_LO_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALERT_HI_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALERT_HI_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALARM_HI_STATUS_EDGE_LEVEL_ADD,
NAI_TC_GEN5_REG_ALARM_HI_STATUS_EDGE_LEVEL_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_EDGE_LEVEL_MODE_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_EDGE_LEVEL_MODE_ADD
}

◆ tc_gen5_IntEnableRegAddr

const uint32_t tc_gen5_IntEnableRegAddr[NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_TC_GEN5_REG_BIT_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_BIT_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_OPEN_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_OPEN_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALERT_LO_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALERT_LO_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALARM_LO_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALARM_LO_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALERT_HI_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALERT_HI_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALARM_HI_STATUS_INT_ENAB_ADD,
NAI_TC_GEN5_REG_ALARM_HI_STATUS_INT_ENAB_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_ENABLE_ADD,
NAI_GEN5_SUMMARY_INTERRUPT_ENABLE_ADD
}

◆ tc_gen5_interruptNum

const int32_t tc_gen5_interruptNum[NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_TC_GEN5_BIT_INT_VECTOR,
NAI_TC_GEN5_BIT_INT_VECTOR,
NAI_TC_GEN5_OPEN_INT_VECTOR,
NAI_TC_GEN5_OPEN_INT_VECTOR,
NAI_TC_GEN5_ALERT_LO_INT_VECTOR,
NAI_TC_GEN5_ALERT_LO_INT_VECTOR,
NAI_TC_GEN5_ALARM_LO_INT_VECTOR,
NAI_TC_GEN5_ALARM_LO_INT_VECTOR,
NAI_TC_GEN5_ALERT_HI_INT_VECTOR,
NAI_TC_GEN5_ALERT_HI_INT_VECTOR,
NAI_TC_GEN5_ALARM_HI_INT_VECTOR,
NAI_TC_GEN5_ALARM_HI_INT_VECTOR,
NAI_GEN5_SUMMARY_INTERRUPT_NUM,
NAI_GEN5_SUMMARY_INTERRUPT_NUM
}

◆ tc_gen5_reg_alarm_hi

const uint32_t tc_gen5_reg_alarm_hi[8] = NAI_TC_GEN5_REG_ALARM_TEMPERATURE_HI_ADD
static

◆ tc_gen5_reg_alarm_lo

const uint32_t tc_gen5_reg_alarm_lo[8] = NAI_TC_GEN5_REG_ALARM_TEMPERATURE_LO_ADD
static

◆ tc_gen5_reg_alert_hi

const uint32_t tc_gen5_reg_alert_hi[8] = NAI_TC_GEN5_REG_ALERT_TEMPERATURE_HI_ADD
static

◆ tc_gen5_reg_alert_lo

const uint32_t tc_gen5_reg_alert_lo[8] = NAI_TC_GEN5_REG_ALERT_TEMPERATURE_LO_ADD
static

◆ tc_gen5_reg_background_op

const uint32_t tc_gen5_reg_background_op[NAIBRD_TC_BACKGROUND_OP_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_TC_GEN5_REG_TRIGGER_SYSTEM_CAL_ADD,
NAI_TC_GEN5_REG_TRIGGER_OPEN_CHECK_ADD,
NAI_TC_GEN5_REG_TRIGGER_BIT_ADD
}

◆ tc_gen5_reg_background_op_suspend

const uint32_t tc_gen5_reg_background_op_suspend[1] = NAI_TC_GEN5_REG_BACKGROUND_OP_SUSPEND_ADD
static

◆ tc_gen5_reg_chan_raw

const uint32_t* const tc_gen5_reg_chan_raw[NAIBRD_TC_RAW_ENUM_COUNT]
static
Initial value:
= {
}
static const uint32_t tc_gen5_reg_alarm_hi[8]
Definition naibrd_tc.c:46
static const uint32_t tc_gen5_reg_thermocouple_type[8]
Definition naibrd_tc.c:40
static const uint32_t tc_gen5_reg_alert_hi[8]
Definition naibrd_tc.c:45
static const uint32_t tc_gen5_reg_voltage[8]
Definition naibrd_tc.c:37
static const uint32_t tc_gen5_reg_comp_temperature[8]
Definition naibrd_tc.c:42
static const uint32_t tc_gen5_reg_temperature[8]
Definition naibrd_tc.c:38
static const uint32_t tc_gen5_reg_offset_temperature[8]
Definition naibrd_tc.c:48
static const uint32_t tc_gen5_reg_alarm_lo[8]
Definition naibrd_tc.c:44
static const uint32_t tc_gen5_reg_alert_lo[8]
Definition naibrd_tc.c:43

◆ tc_gen5_reg_chan_temperature

const uint32_t* const tc_gen5_reg_chan_temperature[NAIBRD_TC_TEMP_TYPE_ENUM_COUNT]
static
Initial value:
= {
}
static const uint32_t tc_gen5_reg_fahrenheit_temperature[8]
Definition naibrd_tc.c:39

◆ tc_gen5_reg_cjc_enable

const uint32_t tc_gen5_reg_cjc_enable[1] = NAI_TC_GEN5_REG_CJC_ENABLE_ADD
static

◆ tc_gen5_reg_comp_temperature

const uint32_t tc_gen5_reg_comp_temperature[8] = NAI_TC_GEN5_COMPENSATION_TEMPERATURE_ADD
static

◆ tc_gen5_reg_comp_type

const uint32_t tc_gen5_reg_comp_type[8] = NAI_TC_GEN5_COMPENSATION_TYPE_ADD
static

◆ tc_gen5_reg_configuration

const uint32_t tc_gen5_reg_configuration[1] = NAI_TC_GEN5_REG_CONFIG_ADD
static

◆ tc_gen5_reg_fahrenheit_temperature

const uint32_t tc_gen5_reg_fahrenheit_temperature[8] = NAI_TC_GEN5_REG_TEMPERATURE_FAHRENHEIT_ADD
static

◆ tc_gen5_reg_offset_temperature

const uint32_t tc_gen5_reg_offset_temperature[8] = NAI_TC_GEN5_REG_OFFSET_TEMPERATURE_ADD
static

◆ tc_gen5_reg_sample_rate

const uint32_t tc_gen5_reg_sample_rate[8] = NAI_TC_GEN5_REG_SAMPLE_RATE_ADD
static

◆ tc_gen5_reg_temperature

const uint32_t tc_gen5_reg_temperature[8] = NAI_TC_GEN5_REG_TEMPERATURE_ADD
static

◆ tc_gen5_reg_thermocouple_type

const uint32_t tc_gen5_reg_thermocouple_type[8] = NAI_TC_GEN5_THERMOCOUPLE_TYPE_ADD
static

◆ tc_gen5_reg_threshold

const uint32_t* const tc_gen5_reg_threshold[NAIBRD_TC_THRESH_TYPE_ENUM_COUNT]
static

◆ tc_gen5_reg_voltage

const uint32_t tc_gen5_reg_voltage[8] = NAI_TC_GEN5_REG_VOLTAGE_ADD
static

◆ TC_gen5_SampleRate_Mapping

const tc_gen5_samplerate_map_t TC_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},
}

◆ tc_gen5_StatusRegAddr

const uint32_t tc_gen5_StatusRegAddr[NAIBRD_TC_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_TC_GEN5_REG_BIT_STATUS_REALTIME_ADD,
NAI_TC_GEN5_REG_BIT_STATUS_LATCHED_ADD,
NAI_TC_GEN5_REG_OPEN_STATUS_REALTIME_ADD,
NAI_TC_GEN5_REG_OPEN_STATUS_LATCHED_ADD,
NAI_TC_GEN5_REG_ALERT_LO_STATUS_REALTIME_ADD,
NAI_TC_GEN5_REG_ALERT_LO_STATUS_LATCHED_ADD,
NAI_TC_GEN5_REG_ALARM_LO_STATUS_REALTIME_ADD,
NAI_TC_GEN5_REG_ALARM_LO_STATUS_LATCHED_ADD,
NAI_TC_GEN5_REG_ALERT_HI_STATUS_REALTIME_ADD,
NAI_TC_GEN5_REG_ALERT_HI_STATUS_LATCHED_ADD,
NAI_TC_GEN5_REG_ALARM_HI_STATUS_REALTIME_ADD,
NAI_TC_GEN5_REG_ALARM_HI_STATUS_LATCHED_ADD,
NAI_GEN5_SUMMARY_STATUS_REAL_TIME_ADD,
NAI_GEN5_SUMMARY_STATUS_LATCHED_ADD
}