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

Functions

static int32_t GetChannelCount (uint32_t modId)
 
static nai_status_t naibrd_SG_VerifyChannel (uint32_t modId, int32_t channel)
 
static nai_status_t naibrd_SG_VerifyChanMappedStatusType (naibrd_sg_chan_mapped_status_type_t statusType)
 
static nai_status_t naibrd_SG_VerifyRemoteSenseType (naibrd_sg_remote_sense_t remoteSenseType)
 
static nai_status_t naibrd_SG_VerifyExcitationSignal (float64_t excitationSignal)
 
static nai_status_t naibrd_SG_VerifyBridgeConfigType (naibrd_sg_bridge_config_type_t bridgeConfigType)
 
static nai_status_t naibrd_SG_VerifyPGAGainType (naibrd_sg_pga_gain_type_t pgaGainType)
 
static nai_status_t naibrd_SG_VerifySampleRateType (naibrd_sg_sample_rate_type_t sampleRateType)
 
static nai_status_t naibrd_SG_VerifyStrainAlertValueType (naibrd_sg_strain_alert_value_type_t strainAlertValueType)
 
static nai_status_t naibrd_SG_VerifyBoolean (bool_t enable)
 
static nai_status_t naibrd_SG_VerifyInterruptTriggerType (naibrd_int_trigger_type_t triggerType)
 
static nai_status_t naibrd_SG_VerifyInterruptSteeringType (naibrd_int_steering_t steeringType)
 
static nai_status_t naibrd_SG_VerifyRawType (naibrd_sg_raw_t rawType)
 
static nai_status_t naibrd_SG_VerifyChannelRawType (naibrd_sg_raw_channel_t channelRawType)
 
NAIBRDFUNC int32_t NAIAPI naibrd_SG_GetChannelCount (uint32_t modId)
 Returns the number of channels for the specified Strain Gauge Module ID.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetStrain (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outstrain)
 Retrieves the calculated strain for the specified SG Channel in units of microstrain. This function is only supported by modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetOutputVoutVexc (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outoutputvv)
 Retrieves the Vout/Vexcitation voltage ratio for the specified SG Channel in units of V/V. This function is only supported by modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetMinStrainValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outminStrainValue)
 Retrieves the minimum strain value recorded for the specified SG Channel in units of microstrain. This function is only supported by modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetMaxStrainValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outmaxStrainValue)
 Retrieves the maximum strain value recorded for the specified SG Channel in units of microstrain. This function is only supported by modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetRawADReading (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outrawADReading)
 Retrieves the raw A/D channel voltage reading for the specified SG Channel. This function is only supported by modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, nai_status_bit_t *p_outstatusBit)
 Retrieves the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status for the specified SG channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type)
 Clears the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status for the specified SG channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 Enables/disables status reporting for the specified SG channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_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 SG channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetRemoteDriveSense (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_remote_sense_t sense)
 Sets the Remote Sense Drive mode for the specified SG channel per table below.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetRemoteDriveSense (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_remote_sense_t *p_outsense)
 Retrieves the Remote Sense Drive setting for the specified SG channel per table below.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetExcitationSignal (int32_t cardIndex, int32_t module, int32_t channel, float64_t excitationVolt)
 Sets the Excitation/Drive Voltage setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetExcitationSignal (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outexcitationVolt)
 Retrieves the Excitation/Drive Voltage setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetBridgeConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_bridge_config_type_t bridgeConfig)
 Sets the Bridge Configuration type setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetBridgeConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_bridge_config_type_t *p_outbridgeConfig)
 Retrieves the Bridge Configuration type setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetPGAGain (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_pga_gain_type_t pgaGain)
 Sets the PGA Gain setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The PGA Gain is set based on the values in the table below:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetPGAGain (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_pga_gain_type_t *p_outpgaGain)
 Retrieves the PGA Gain setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The PGA Gain value is based on the values in the table below:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetNominalResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t nominalResistance)
 Sets the Nominal Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetNominalResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outnominalResistance)
 Retrieves the Nominal Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. Resistance is in Ohms.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetGaugeFactor (int32_t cardIndex, int32_t module, int32_t channel, float64_t gaugeFactor)
 Sets the Gauge Factor setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetGaugeFactor (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outgaugeFactor)
 Retrieves the Gauge Factor setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetPoissonRatio (int32_t cardIndex, int32_t module, int32_t channel, float64_t poissonRatio)
 Sets the Poisson's Ratio setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetPoissonRatio (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outpoissonRatio)
 Retrieves the Poisson's Ratio setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetLeadResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t leadResistance)
 Sets the Lead Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetLeadResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outleadResistance)
 Retrieves the Lead Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_sample_rate_type_t sampleRate)
 Sets the Sample Rate setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The Sample Rate is set based on the values in the table below:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_sample_rate_type_t *p_outsampleRate)
 Retrieves the Sample Rate setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The Sample Rate value is based on the values in the table below:
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetStrainAlertValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_strain_alert_value_type_t strainAlertValueType, float64_t strainAlertValue)
 Sets the Strain Alert Value of the specified type for the specified SG channel. This function only applies to modules that are Generation 5 or later. Valid Strain Alert Value types are High Strain Alert Value 1, High Strain Alert Value 2, Low Strain Alert Value 1, and Low Strain Alert Value 2.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetStrainAlertValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_strain_alert_value_type_t strainAlertValueType, float64_t *p_outstrainAlertValue)
 Retrieves the Strain Alert Value of the specified type for the specified SG channel. This function only applies to modules that are Generation 5 or later. Valid Strain Alert Value types are High Strain Alert Value 1, High Strain Alert Value 2, Low Strain Alert Value 1, and Low Strain Alert Value 2.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetImbalanceOffsetValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t imbalanceOffsetValue)
 Sets the Imbalance Offset Value for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetImbalanceOffsetValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outimbalanceOffsetValue)
 Retrieves the Imbalance Offset Value for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ResetMinimumAndMaximumStrain (int32_t cardIndex, int32_t module, int32_t channel)
 Resets the minimum and maximum strain values to 0 microstrain for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetUseInternalBridgeCompletion (int32_t cardIndex, int32_t module, int32_t channel, bool_t useInternalBridgeCompletion)
 Sets the register bit that determines whether or not to use internal bridge completion for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetUseInternalBridgeCompletion (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outuseInternalBridgeCompletion)
 Retrieves the register bit that determines whether or not to use internal bridge completion for the specified SG channel. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_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_SG_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, bool_t enable)
 Sets the bit corresponding to the specified SG Channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Interrupt Enable register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, bool_t *p_outenable)
 Retrieves the bit corresponding to the specified SG Channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Interrupt Enable register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t vector)
 This function will set the vector for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t *p_outvector)
 This function will read the vector for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_trigger_type_t triggerType)
 Sets the bit corresponding to the specified SG channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 edge/level interrupt register. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outtriggerType)
 Retrieves the bit corresponding to the specified SG channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 edge/level interrupt register. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_steering_t steering)
 This function will set the interrupt steering, which indicates the interrupt direction, for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outsteering)
 This function retrieves the interrupt steering, which indicates the interrupt direction, for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetRaw (int32_t cardIndex, int32_t module, naibrd_sg_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_SG_GetRaw (int32_t cardIndex, int32_t module, naibrd_sg_raw_t type, uint32_t *p_outrawdata)
 Retrieves the raw digital data value from the register associated with the register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_raw_channel_t type, uint32_t rawdata)
 Sets the raw data value in the register associated with the channel and register type specified. Note: values written to data output registers will have no effect. This function will return NAI_ERROR_NOT_SUPPORTED if the register type specified corresponds to a data output register. Note: Data format may be in floating point, signed integer, or unsigned integer, depending on the selection of the data type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_raw_channel_t type, uint32_t *p_outrawdata)
 Retrieves the raw data value from the register associated with the channel and register type specified. Note: Data format may be in floating point, signed integer, or unsigned integer, depending on the selection of the data type being accessed.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t *p_outrawdata)
 Retrieves the raw status data value from the register associated with the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t rawdata)
 Clears the bits set in the rawdata parameter in the status register associated with the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t rawdata)
 Sets the raw interrupt enable data value in the register associated with the status type specified. The interrupt enable registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t *p_outrawdata)
 Retrieves the raw interrupt enable data value from the register associated with the status type specified. The interrupt enable registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 

Variables

static const uint32_t sg_gen5_reg_bridge_config_type [] = NAI_SG_GEN5_BRIDGE_CONFIGURATION_TYPE_ADD
 
static const uint32_t sg_gen5_reg_pga_gain [] = NAI_SG_GEN5_PGA_GAIN_ADD
 
static const uint32_t sg_gen5_reg_nominal_resistance [] = NAI_SG_GEN5_NOMINAL_SG_RESISTANCE_ADD
 
static const uint32_t sg_gen5_reg_gauge_factor [] = NAI_SG_GEN5_GAUGE_FACTOR_ADD
 
static const uint32_t sg_gen5_reg_poisson_ratio [] = NAI_SG_GEN5_POISSON_RATIO_ADD
 
static const uint32_t sg_gen5_reg_lead_resistance [] = NAI_SG_GEN5_LEAD_RESISTANCE_ADD
 
static const uint32_t sg_gen5_reg_excitation_voltage [] = NAI_SG_GEN5_EXCITATION_VOLTAGE_ADD
 
static const uint32_t sg_gen5_reg_remote_sense_mode [] = NAI_SG_GEN5_REMOTE_SENSE_MODE_ADD
 
static const uint32_t sg_gen5_reg_sample_rate [] = NAI_SG_GEN5_SAMPLE_RATE_ADD
 
static const uint32_t sg_gen5_reg_high_strain_alert_1_value [] = NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_VALUE_ADD
 
static const uint32_t sg_gen5_reg_high_strain_alert_2_value [] = NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_VALUE_ADD
 
static const uint32_t sg_gen5_reg_low_strain_alert_1_value [] = NAI_SG_GEN5_LOW_STRAIN_ALERT_1_VALUE_ADD
 
static const uint32_t sg_gen5_reg_low_strain_alert_2_value [] = NAI_SG_GEN5_LOW_STRAIN_ALERT_2_VALUE_ADD
 
static const uint32_t sg_gen5_reg_imbalance_offset_value [] = NAI_SG_GEN5_IMBALANCE_OFFSET_VALUE_ADD
 
static const uint32_t sg_gen5_reg_output_data_v_per_v [] = NAI_SG_GEN5_OUTPUT_DATA_V_PER_V_ADD
 
static const uint32_t sg_gen5_reg_strain_output_data [] = NAI_SG_GEN5_STRAIN_OUTPUT_DATA_ADD
 
static const uint32_t sg_gen5_reg_min_strain_value [] = NAI_SG_GEN5_MIN_STRAIN_VALUE_ADD
 
static const uint32_t sg_gen5_reg_max_strain_value [] = NAI_SG_GEN5_MAX_STRAIN_VALUE_ADD
 
static const uint32_t sg_gen5_reg_status [NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t sg_gen5_reg_int_enable [NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t sg_gen5_reg_int_edgelevel [NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const int32_t sg_gen5_int_vector_steering_intnum [NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t sg_gen5_reg_raw [NAIBRD_SG_RAW_TYPE_ENUM_COUNT]
 
static const uint32_t *const sg_gen5_reg_chan_raw [NAIBRD_SG_RAW_CHAN_TYPE_ENUM_COUNT]
 

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modId)
static

◆ naibrd_SG_VerifyBoolean()

static nai_status_t naibrd_SG_VerifyBoolean ( bool_t enable)
static

◆ naibrd_SG_VerifyBridgeConfigType()

static nai_status_t naibrd_SG_VerifyBridgeConfigType ( naibrd_sg_bridge_config_type_t bridgeConfigType)
static

◆ naibrd_SG_VerifyChanMappedStatusType()

static nai_status_t naibrd_SG_VerifyChanMappedStatusType ( naibrd_sg_chan_mapped_status_type_t statusType)
static

◆ naibrd_SG_VerifyChannel()

static nai_status_t naibrd_SG_VerifyChannel ( uint32_t modId,
int32_t channel )
static

◆ naibrd_SG_VerifyChannelRawType()

static nai_status_t naibrd_SG_VerifyChannelRawType ( naibrd_sg_raw_channel_t channelRawType)
static

◆ naibrd_SG_VerifyExcitationSignal()

static nai_status_t naibrd_SG_VerifyExcitationSignal ( float64_t excitationSignal)
static

◆ naibrd_SG_VerifyInterruptSteeringType()

static nai_status_t naibrd_SG_VerifyInterruptSteeringType ( naibrd_int_steering_t steeringType)
static

◆ naibrd_SG_VerifyInterruptTriggerType()

static nai_status_t naibrd_SG_VerifyInterruptTriggerType ( naibrd_int_trigger_type_t triggerType)
static

◆ naibrd_SG_VerifyPGAGainType()

static nai_status_t naibrd_SG_VerifyPGAGainType ( naibrd_sg_pga_gain_type_t pgaGainType)
static

◆ naibrd_SG_VerifyRawType()

static nai_status_t naibrd_SG_VerifyRawType ( naibrd_sg_raw_t rawType)
static

◆ naibrd_SG_VerifyRemoteSenseType()

static nai_status_t naibrd_SG_VerifyRemoteSenseType ( naibrd_sg_remote_sense_t remoteSenseType)
static

◆ naibrd_SG_VerifySampleRateType()

static nai_status_t naibrd_SG_VerifySampleRateType ( naibrd_sg_sample_rate_type_t sampleRateType)
static

◆ naibrd_SG_VerifyStrainAlertValueType()

static nai_status_t naibrd_SG_VerifyStrainAlertValueType ( naibrd_sg_strain_alert_value_type_t strainAlertValueType)
static

Variable Documentation

◆ sg_gen5_int_vector_steering_intnum

const int32_t sg_gen5_int_vector_steering_intnum[NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_SG_GEN5_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_OPEN_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_OPEN_INT_VECTOR_STEERING_INTNUM,
0,
0,
0,
0,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_SUMMARY_INT_VECTOR_STEERING_INTNUM,
NAI_SG_GEN5_SUMMARY_INT_VECTOR_STEERING_INTNUM
}

◆ sg_gen5_reg_bridge_config_type

const uint32_t sg_gen5_reg_bridge_config_type[] = NAI_SG_GEN5_BRIDGE_CONFIGURATION_TYPE_ADD
static

◆ sg_gen5_reg_chan_raw

const uint32_t* const sg_gen5_reg_chan_raw[NAIBRD_SG_RAW_CHAN_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NULL,
NULL,
}
static const uint32_t sg_gen5_reg_excitation_voltage[]
Definition naibrd_sg.c:38
static const uint32_t sg_gen5_reg_lead_resistance[]
Definition naibrd_sg.c:37
static const uint32_t sg_gen5_reg_imbalance_offset_value[]
Definition naibrd_sg.c:45
static const uint32_t sg_gen5_reg_min_strain_value[]
Definition naibrd_sg.c:48
static const uint32_t sg_gen5_reg_poisson_ratio[]
Definition naibrd_sg.c:36
static const uint32_t sg_gen5_reg_output_data_v_per_v[]
Definition naibrd_sg.c:46
static const uint32_t sg_gen5_reg_strain_output_data[]
Definition naibrd_sg.c:47
static const uint32_t sg_gen5_reg_max_strain_value[]
Definition naibrd_sg.c:49
static const uint32_t sg_gen5_reg_pga_gain[]
Definition naibrd_sg.c:33
static const uint32_t sg_gen5_reg_high_strain_alert_2_value[]
Definition naibrd_sg.c:42
static const uint32_t sg_gen5_reg_sample_rate[]
Definition naibrd_sg.c:40
static const uint32_t sg_gen5_reg_bridge_config_type[]
Definition naibrd_sg.c:32
static const uint32_t sg_gen5_reg_high_strain_alert_1_value[]
Definition naibrd_sg.c:41
static const uint32_t sg_gen5_reg_gauge_factor[]
Definition naibrd_sg.c:35
static const uint32_t sg_gen5_reg_nominal_resistance[]
Definition naibrd_sg.c:34
static const uint32_t sg_gen5_reg_remote_sense_mode[]
Definition naibrd_sg.c:39
static const uint32_t sg_gen5_reg_low_strain_alert_2_value[]
Definition naibrd_sg.c:44
static const uint32_t sg_gen5_reg_low_strain_alert_1_value[]
Definition naibrd_sg.c:43

◆ sg_gen5_reg_excitation_voltage

const uint32_t sg_gen5_reg_excitation_voltage[] = NAI_SG_GEN5_EXCITATION_VOLTAGE_ADD
static

◆ sg_gen5_reg_gauge_factor

const uint32_t sg_gen5_reg_gauge_factor[] = NAI_SG_GEN5_GAUGE_FACTOR_ADD
static

◆ sg_gen5_reg_high_strain_alert_1_value

const uint32_t sg_gen5_reg_high_strain_alert_1_value[] = NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_VALUE_ADD
static

◆ sg_gen5_reg_high_strain_alert_2_value

const uint32_t sg_gen5_reg_high_strain_alert_2_value[] = NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_VALUE_ADD
static

◆ sg_gen5_reg_imbalance_offset_value

const uint32_t sg_gen5_reg_imbalance_offset_value[] = NAI_SG_GEN5_IMBALANCE_OFFSET_VALUE_ADD
static

◆ sg_gen5_reg_int_edgelevel

const uint32_t sg_gen5_reg_int_edgelevel[NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_SG_GEN5_BIT_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_BIT_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_OPEN_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_OPEN_EDGE_LEVEL_INT_ADD,
0u,
0u,
0u,
0u,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_SUMMARY_EDGE_LEVEL_INT_ADD,
NAI_SG_GEN5_SUMMARY_EDGE_LEVEL_INT_ADD
}

◆ sg_gen5_reg_int_enable

const uint32_t sg_gen5_reg_int_enable[NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_SG_GEN5_BIT_INT_ENABLE_ADD,
NAI_SG_GEN5_BIT_INT_ENABLE_ADD,
NAI_SG_GEN5_OPEN_INT_ENABLE_ADD,
NAI_SG_GEN5_OPEN_INT_ENABLE_ADD,
0u,
0u,
0u,
0u,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_INT_ENABLE_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_INT_ENABLE_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_INT_ENABLE_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_INT_ENABLE_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_INT_ENABLE_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_INT_ENABLE_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_INT_ENABLE_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_INT_ENABLE_ADD,
NAI_SG_GEN5_SUMMARY_INT_ENABLE_ADD,
NAI_SG_GEN5_SUMMARY_INT_ENABLE_ADD
}

◆ sg_gen5_reg_lead_resistance

const uint32_t sg_gen5_reg_lead_resistance[] = NAI_SG_GEN5_LEAD_RESISTANCE_ADD
static

◆ sg_gen5_reg_low_strain_alert_1_value

const uint32_t sg_gen5_reg_low_strain_alert_1_value[] = NAI_SG_GEN5_LOW_STRAIN_ALERT_1_VALUE_ADD
static

◆ sg_gen5_reg_low_strain_alert_2_value

const uint32_t sg_gen5_reg_low_strain_alert_2_value[] = NAI_SG_GEN5_LOW_STRAIN_ALERT_2_VALUE_ADD
static

◆ sg_gen5_reg_max_strain_value

const uint32_t sg_gen5_reg_max_strain_value[] = NAI_SG_GEN5_MAX_STRAIN_VALUE_ADD
static

◆ sg_gen5_reg_min_strain_value

const uint32_t sg_gen5_reg_min_strain_value[] = NAI_SG_GEN5_MIN_STRAIN_VALUE_ADD
static

◆ sg_gen5_reg_nominal_resistance

const uint32_t sg_gen5_reg_nominal_resistance[] = NAI_SG_GEN5_NOMINAL_SG_RESISTANCE_ADD
static

◆ sg_gen5_reg_output_data_v_per_v

const uint32_t sg_gen5_reg_output_data_v_per_v[] = NAI_SG_GEN5_OUTPUT_DATA_V_PER_V_ADD
static

◆ sg_gen5_reg_pga_gain

const uint32_t sg_gen5_reg_pga_gain[] = NAI_SG_GEN5_PGA_GAIN_ADD
static

◆ sg_gen5_reg_poisson_ratio

const uint32_t sg_gen5_reg_poisson_ratio[] = NAI_SG_GEN5_POISSON_RATIO_ADD
static

◆ sg_gen5_reg_raw

const uint32_t sg_gen5_reg_raw[NAIBRD_SG_RAW_TYPE_ENUM_COUNT]
static
Initial value:
=
{
0u,
NAI_SG_GEN5_USE_INTERNAL_BRIDGE_COMPLETION_ADD
}

◆ sg_gen5_reg_remote_sense_mode

const uint32_t sg_gen5_reg_remote_sense_mode[] = NAI_SG_GEN5_REMOTE_SENSE_MODE_ADD
static

◆ sg_gen5_reg_sample_rate

const uint32_t sg_gen5_reg_sample_rate[] = NAI_SG_GEN5_SAMPLE_RATE_ADD
static

◆ sg_gen5_reg_status

const uint32_t sg_gen5_reg_status[NAIBRD_SG_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_SG_GEN5_BIT_LATCHED_STATUS_ADD,
NAI_SG_GEN5_BIT_REALTIME_STATUS_ADD,
NAI_SG_GEN5_OPEN_LATCHED_STATUS_ADD,
NAI_SG_GEN5_OPEN_REALTIME_STATUS_ADD,
0u,
0u,
0u,
0u,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_LATCHED_STATUS_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_1_REALTIME_STATUS_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_LATCHED_STATUS_ADD,
NAI_SG_GEN5_HIGH_STRAIN_ALERT_2_REALTIME_STATUS_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_LATCHED_STATUS_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_1_REALTIME_STATUS_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_LATCHED_STATUS_ADD,
NAI_SG_GEN5_LOW_STRAIN_ALERT_2_REALTIME_STATUS_ADD,
NAI_SG_GEN5_SUMMARY_LATCHED_STATUS_ADD,
NAI_SG_GEN5_SUMMARY_REALTIME_STATUS_ADD
}

◆ sg_gen5_reg_strain_output_data

const uint32_t sg_gen5_reg_strain_output_data[] = NAI_SG_GEN5_STRAIN_OUTPUT_DATA_ADD
static