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

Functions

static int32_t GetChannelCount (uint32_t modId)
 
static nai_status_t naibrd_VR_VerifyChannel (uint32_t modId, int32_t channel)
 
static nai_status_t naibrd_VR_VerifyBoolean (bool_t enable)
 
static nai_status_t naibrd_VR_VerifyMeasuredValueType (naibrd_vr_measured_value_type_t type)
 
static nai_status_t naibrd_VR_VerifyConfigValueType (naibrd_vr_config_value_type_t type)
 
static nai_status_t naibrd_VR_VerifyChanMappedControlType (naibrd_vr_chan_mapped_control_type_t type)
 
static nai_status_t naibrd_VR_VerifyChanMappedStatusType (naibrd_vr_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_VR_VerifyChanMappedStatusLatchType (naibrd_vr_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_VR_VerifyRangeSelectType (naibrd_vr_range_select_type_t type)
 
static nai_status_t naibrd_VR_VerifyAutoDownRangeTimeType (naibrd_vr_auto_down_range_time_type_t type)
 
static nai_status_t naibrd_VR_VerifyTestEnableType (naibrd_vr_test_enable_t type)
 
static nai_status_t naibrd_VR_VerifyInterruptTriggerType (naibrd_int_trigger_type_t type)
 
static nai_status_t naibrd_VR_VerifyInterruptSteeringType (naibrd_int_steering_t type)
 
static nai_status_t naibrd_VR_VerifyRawType (naibrd_vr_raw_t type)
 
static nai_status_t naibrd_VR_VerifyRawReadableType (naibrd_vr_raw_t type)
 
static nai_status_t naibrd_VR_VerifyChannelRawType (naibrd_vr_channel_raw_t type)
 
static nai_status_t naibrd_VR_VerifyChannelRawWriteableType (naibrd_vr_channel_raw_t type)
 
static nai_status_t naibrd_VR_ConvertRawToValue (naibrd_vr_conversion_type_t type, uint32_t rawData, float64_t *p_outValue)
 
static nai_status_t naibrd_VR_ConvertValueToRaw (naibrd_vr_conversion_type_t type, float64_t value, uint32_t *p_outrawData)
 
NAIBRDFUNC int32_t NAIAPI naibrd_VR_GetChannelCount (uint32_t modId)
 Returns the number of channels for the specified VR Module ID.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetMeasurement (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_measured_value_type_t measValueType, float64_t *p_outMeasurement)
 Retrieves a measurement from the specified VR channel, based on the measured value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_chan_mapped_status_type_t statusType, nai_status_bit_t *p_outStatusBit)
 Retrieves the VR Status from the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_chan_mapped_status_type_t statusType)
 Clears the latched status for the specified VR channel and latched status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 Enables/disables status reporting for the specified VR channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_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 VR channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetConfigValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_config_value_type_t configValueType, float64_t configValue)
 Sets the configuration value of the specified VR module and channel, based on the naibrd_vr_config_value_type_t configuration value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetConfigValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_config_value_type_t configValueType, float64_t *p_outConfigValue)
 Retrieves the configuration value from the specified VR module and channel, based on the naibrd_vr_config_value_type_t configuration value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanMappedControl (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_chan_mapped_control_type_t controlType, bool_t enable)
 Sets the channel-mapped control bit of the specified VR module and channel, based on the naibrd_vr_chan_mapped_control_type_t channel-mapped control type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedControl (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_chan_mapped_control_type_t controlType, bool_t *p_outEnable)
 Retrieves the channel-mapped control bit from the specified VR module and channel, based on the naibrd_vr_chan_mapped_control_type_t channel-mapped control type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetPowerSupplyEnable (int32_t cardIndex, int32_t module, bool_t enable)
 Sets the enabled/disabled state of the power supply for the specified VR module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetPowerSupplyEnable (int32_t cardIndex, int32_t module, bool_t *p_outEnable)
 Retrieves the enabled/disabled state of the power supply for the specified VR module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetRangeSelect (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_range_select_type_t range)
 Sets the signal gain, which sets the effective measurement range, for the specified VR module and channel. For the list of valid range selections, refer to naibrd_vr_range_select_type_t definition.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetRangeSelect (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_range_select_type_t *p_outRange)
 Retrieves the signal gain, which sets the effective measurement range, for the specified VR module and channel. For the list of valid range selections, refer to naibrd_vr_range_select_type_t definition.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetZeroTorqueSignalPhaseToPhaseReading (int32_t cardIndex, int32_t module, int32_t channel)
 Sets the zero torque signal phase to the current phase reading for the specified VR module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetZeroTorqueSignalPhaseToPhaseReading (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outEnable)
 Retrieves the state of the bit corresponding to the specified VR channel in the register that sets the zero torque signal phase to the current phase reading for the specified VR module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_ResetCycleCount (int32_t cardIndex, int32_t module, int32_t channel)
 Resets the cycle counter for the specified VR module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetAutoDownRangeTime (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_auto_down_range_time_type_t autoDownRangeTime)
 Sets the auto down-range time for the specified VR module and channel. For the list of valid auto down-range time selections, refer to naibrd_vr_auto_down_range_time_type_t definition.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetAutoDownRangeTime (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_auto_down_range_time_type_t *p_outAutoDownRangeTime)
 Retrieves the auto down-range time for the specified VR module and channel. For the list of valid auto down-range time selections, refer to naibrd_vr_auto_down_range_time_type_t definition.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_vr_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_VR_GetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_vr_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_VR_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_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.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_chan_mapped_status_type_t type, naibrd_int_trigger_type_t interruptType)
 Sets the Interrupt Edge/Level trigger type property for the specified channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_chan_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outinterruptType)
 Retrieves the Interrupt Edge/Level trigger type property for the specified channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, uint32_t interruptVector)
 Sets the Interrupt Vector associated with the Status Type for the specified module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, uint32_t *p_outinterruptVector)
 Retrieves the Interrupt Vector associated with the Status Type for the specified module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering, which indicates the interrupt direction, for the specified module and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outsteering)
 Retrieves the Interrupt Steering, which indicates the interrupt direction, for the specified module and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetRaw (int32_t cardIndex, int32_t module, naibrd_vr_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_VR_GetRaw (int32_t cardIndex, int32_t module, naibrd_vr_raw_t type, uint32_t *p_outrawData)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_channel_raw_t type, uint32_t rawData)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_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_VR_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, uint32_t *p_outstatusRaw)
 Retrieves the raw data value in the status register associated with the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, uint32_t statusRaw)
 Sets the raw data value in the status register associated with the status type specified. This function may be used to clear multiple latched status bits in the status word.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, uint32_t statusIntEnabRaw)
 Sets the raw data value in the interrupt enable register associated with the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_vr_chan_mapped_status_type_t type, uint32_t *p_outstatusIntEnabRaw)
 Retrieves the raw data value in the interrupt enable register associated with the status type specified.
 

Variables

static const uint32_t vr_gen5_reg_voltage_threshold_high [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_VOLTAGE_THRESHOLD_HIGH_ADD
 
static const uint32_t vr_gen5_reg_voltage_threshold_low [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_VOLTAGE_THRESHOLD_LOW_ADD
 
static const uint32_t vr_gen5_reg_zero_torque_signal_phase [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_ZERO_TORQUE_SIGNAL_PHASE_ADD
 
static const uint32_t vr_gen5_reg_max_torque_signal_phase [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MAX_TORQUE_SIGNAL_PHASE_ADD
 
static const uint32_t vr_gen5_reg_measured_period [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_PERIOD_ADD
 
static const uint32_t vr_gen5_reg_measured_phase [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_PHASE_ADD
 
static const uint32_t vr_gen5_reg_measured_percent_torque [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_PERCENT_TORQUE_ADD
 
static const uint32_t vr_gen5_reg_measured_amplitude [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_AMPLITUDE_ADD
 
static const uint32_t vr_gen5_reg_measured_frequency [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_FREQUENCY_ADD
 
static const uint32_t vr_gen5_reg_number_of_teeth [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_NUMBER_OF_TEETH_ADD
 
static const uint32_t vr_gen5_reg_measured_rpm [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_RPM_ADD
 
static const uint32_t vr_gen5_reg_averaging_time [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AVERAGING_TIME_ADD
 
static const uint32_t vr_gen5_reg_debounce_time [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_DEBOUNCE_TIME_ADD
 
static const uint32_t vr_gen5_reg_minimum_amplitude [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MINIMUM_AMPLITUDE_ADD
 
static const uint32_t vr_gen5_reg_minimum_frequency [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MINIMUM_FREQUENCY_ADD
 
static const uint32_t vr_gen5_reg_cycle_count [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_CYCLE_COUNT_ADD
 
static const uint32_t vr_gen5_reg_auto_threshold_percent [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AUTO_THRESHOLD_PERCENT_ADD
 
static const uint32_t vr_gen5_reg_auto_threshold_hysteresis [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AUTO_THRESHOLD_HYSTERESIS_ADD
 
static const uint32_t vr_gen5_reg_auto_down_range_time [NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AUTO_DOWN_RANGE_TIME_ADD
 
static const uint32_t vr_gen5_reg_status [NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t vr_gen5_IntEnableRegAddr [NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t vr_gen5_IntTypeRegAddr [NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const int32_t vr_gen5_InterruptNum [NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t vr_gen5_reg_chan_mapped_control [NAIBRD_VR_CHAN_MAPPED_CONTROL_TYPE_ENUM_COUNT]
 
static const uint32_t vr_gen5_reg_raw [NAIBRD_VR_RAW_ENUM_COUNT]
 
static const uint32_t *const vr_gen5_reg_chan_raw [NAIBRD_VR_CHAN_RAW_ENUM_COUNT]
 

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modId)
static

◆ naibrd_VR_ConvertRawToValue()

static nai_status_t naibrd_VR_ConvertRawToValue ( naibrd_vr_conversion_type_t type,
uint32_t rawData,
float64_t * p_outValue )
static

◆ naibrd_VR_ConvertValueToRaw()

static nai_status_t naibrd_VR_ConvertValueToRaw ( naibrd_vr_conversion_type_t type,
float64_t value,
uint32_t * p_outrawData )
static

◆ naibrd_VR_VerifyAutoDownRangeTimeType()

static nai_status_t naibrd_VR_VerifyAutoDownRangeTimeType ( naibrd_vr_auto_down_range_time_type_t type)
static

◆ naibrd_VR_VerifyBoolean()

static nai_status_t naibrd_VR_VerifyBoolean ( bool_t enable)
static

◆ naibrd_VR_VerifyChanMappedControlType()

static nai_status_t naibrd_VR_VerifyChanMappedControlType ( naibrd_vr_chan_mapped_control_type_t type)
static

◆ naibrd_VR_VerifyChanMappedStatusLatchType()

static nai_status_t naibrd_VR_VerifyChanMappedStatusLatchType ( naibrd_vr_chan_mapped_status_type_t type)
static

◆ naibrd_VR_VerifyChanMappedStatusType()

static nai_status_t naibrd_VR_VerifyChanMappedStatusType ( naibrd_vr_chan_mapped_status_type_t type)
static

◆ naibrd_VR_VerifyChannel()

static nai_status_t naibrd_VR_VerifyChannel ( uint32_t modId,
int32_t channel )
static

◆ naibrd_VR_VerifyChannelRawType()

static nai_status_t naibrd_VR_VerifyChannelRawType ( naibrd_vr_channel_raw_t type)
static

◆ naibrd_VR_VerifyChannelRawWriteableType()

static nai_status_t naibrd_VR_VerifyChannelRawWriteableType ( naibrd_vr_channel_raw_t type)
static

◆ naibrd_VR_VerifyConfigValueType()

static nai_status_t naibrd_VR_VerifyConfigValueType ( naibrd_vr_config_value_type_t type)
static

◆ naibrd_VR_VerifyInterruptSteeringType()

static nai_status_t naibrd_VR_VerifyInterruptSteeringType ( naibrd_int_steering_t type)
static

◆ naibrd_VR_VerifyInterruptTriggerType()

static nai_status_t naibrd_VR_VerifyInterruptTriggerType ( naibrd_int_trigger_type_t type)
static

◆ naibrd_VR_VerifyMeasuredValueType()

static nai_status_t naibrd_VR_VerifyMeasuredValueType ( naibrd_vr_measured_value_type_t type)
static

◆ naibrd_VR_VerifyRangeSelectType()

static nai_status_t naibrd_VR_VerifyRangeSelectType ( naibrd_vr_range_select_type_t type)
static

◆ naibrd_VR_VerifyRawReadableType()

static nai_status_t naibrd_VR_VerifyRawReadableType ( naibrd_vr_raw_t type)
static

◆ naibrd_VR_VerifyRawType()

static nai_status_t naibrd_VR_VerifyRawType ( naibrd_vr_raw_t type)
static

◆ naibrd_VR_VerifyTestEnableType()

static nai_status_t naibrd_VR_VerifyTestEnableType ( naibrd_vr_test_enable_t type)
static

Variable Documentation

◆ vr_gen5_IntEnableRegAddr

const uint32_t vr_gen5_IntEnableRegAddr[NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_VR_GEN5_REG_BIT_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_BIT_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_TERMINATION_FAULT_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_TERMINATION_FAULT_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_SIGNAL_LOSS_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_SIGNAL_LOSS_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_SUMMARY_INT_ENABLE_ADD,
NAI_VR_GEN5_REG_SUMMARY_INT_ENABLE_ADD
}

◆ vr_gen5_InterruptNum

const int32_t vr_gen5_InterruptNum[NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_VR_GEN5_REG_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_TERMINATION_FAULT_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_TERMINATION_FAULT_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_SIGNAL_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_SIGNAL_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_SUMMARY_INT_VECTOR_STEERING_INTNUM,
NAI_VR_GEN5_REG_SUMMARY_INT_VECTOR_STEERING_INTNUM
}

◆ vr_gen5_IntTypeRegAddr

const uint32_t vr_gen5_IntTypeRegAddr[NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_VR_GEN5_REG_BIT_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_BIT_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_TERMINATION_FAULT_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_TERMINATION_FAULT_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_SIGNAL_LOSS_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_SIGNAL_LOSS_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_SUMMARY_EDGE_LEVEL_INT_ADD,
NAI_VR_GEN5_REG_SUMMARY_EDGE_LEVEL_INT_ADD
}

◆ vr_gen5_reg_auto_down_range_time

const uint32_t vr_gen5_reg_auto_down_range_time[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AUTO_DOWN_RANGE_TIME_ADD
static

◆ vr_gen5_reg_auto_threshold_hysteresis

const uint32_t vr_gen5_reg_auto_threshold_hysteresis[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AUTO_THRESHOLD_HYSTERESIS_ADD
static

◆ vr_gen5_reg_auto_threshold_percent

const uint32_t vr_gen5_reg_auto_threshold_percent[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AUTO_THRESHOLD_PERCENT_ADD
static

◆ vr_gen5_reg_averaging_time

const uint32_t vr_gen5_reg_averaging_time[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_AVERAGING_TIME_ADD
static

◆ vr_gen5_reg_chan_mapped_control

const uint32_t vr_gen5_reg_chan_mapped_control[NAIBRD_VR_CHAN_MAPPED_CONTROL_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_VR_GEN5_REG_CHANNEL_ENABLE_ADD,
NAI_VR_GEN5_REG_DIPOLE_ENABLE_ADD,
NAI_VR_GEN5_REG_FALLING_EDGE_MEASUREMENT_ENABLE_ADD,
NAI_VR_GEN5_REG_TERMINATION_ENABLE_ADD,
NAI_VR_GEN5_REG_AC_COUPLE_ENABLE_ADD,
NAI_VR_GEN5_REG_AUTO_THRESHOLD_ENABLE_ADD
}

◆ vr_gen5_reg_chan_raw

const uint32_t* const vr_gen5_reg_chan_raw[NAIBRD_VR_CHAN_RAW_ENUM_COUNT]
static
Initial value:
=
{
}
static const uint32_t vr_gen5_reg_measured_frequency[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:37
static const uint32_t vr_gen5_reg_measured_amplitude[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:36
static const uint32_t vr_gen5_reg_measured_period[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:33
static const uint32_t vr_gen5_reg_auto_threshold_percent[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:45
static const uint32_t vr_gen5_reg_zero_torque_signal_phase[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:31
static const uint32_t vr_gen5_reg_number_of_teeth[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:38
static const uint32_t vr_gen5_reg_measured_rpm[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:39
static const uint32_t vr_gen5_reg_averaging_time[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:40
static const uint32_t vr_gen5_reg_max_torque_signal_phase[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:32
static const uint32_t vr_gen5_reg_cycle_count[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:44
static const uint32_t vr_gen5_reg_minimum_amplitude[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:42
static const uint32_t vr_gen5_reg_voltage_threshold_high[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:29
static const uint32_t vr_gen5_reg_voltage_threshold_low[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:30
static const uint32_t vr_gen5_reg_measured_phase[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:34
static const uint32_t vr_gen5_reg_auto_down_range_time[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:47
static const uint32_t vr_gen5_reg_debounce_time[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:41
static const uint32_t vr_gen5_reg_minimum_frequency[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:43
static const uint32_t vr_gen5_reg_auto_threshold_hysteresis[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:46
static const uint32_t vr_gen5_reg_measured_percent_torque[NAI_VR_GEN5_CHANNELS]
Definition naibrd_vr.c:35

◆ vr_gen5_reg_cycle_count

const uint32_t vr_gen5_reg_cycle_count[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_CYCLE_COUNT_ADD
static

◆ vr_gen5_reg_debounce_time

const uint32_t vr_gen5_reg_debounce_time[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_DEBOUNCE_TIME_ADD
static

◆ vr_gen5_reg_max_torque_signal_phase

const uint32_t vr_gen5_reg_max_torque_signal_phase[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MAX_TORQUE_SIGNAL_PHASE_ADD
static

◆ vr_gen5_reg_measured_amplitude

const uint32_t vr_gen5_reg_measured_amplitude[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_AMPLITUDE_ADD
static

◆ vr_gen5_reg_measured_frequency

const uint32_t vr_gen5_reg_measured_frequency[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_FREQUENCY_ADD
static

◆ vr_gen5_reg_measured_percent_torque

const uint32_t vr_gen5_reg_measured_percent_torque[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_PERCENT_TORQUE_ADD
static

◆ vr_gen5_reg_measured_period

const uint32_t vr_gen5_reg_measured_period[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_PERIOD_ADD
static

◆ vr_gen5_reg_measured_phase

const uint32_t vr_gen5_reg_measured_phase[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_PHASE_ADD
static

◆ vr_gen5_reg_measured_rpm

const uint32_t vr_gen5_reg_measured_rpm[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MEASURED_RPM_ADD
static

◆ vr_gen5_reg_minimum_amplitude

const uint32_t vr_gen5_reg_minimum_amplitude[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MINIMUM_AMPLITUDE_ADD
static

◆ vr_gen5_reg_minimum_frequency

const uint32_t vr_gen5_reg_minimum_frequency[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_MINIMUM_FREQUENCY_ADD
static

◆ vr_gen5_reg_number_of_teeth

const uint32_t vr_gen5_reg_number_of_teeth[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_NUMBER_OF_TEETH_ADD
static

◆ vr_gen5_reg_raw

const uint32_t vr_gen5_reg_raw[NAIBRD_VR_RAW_ENUM_COUNT]
static
Initial value:
= {
NAI_VR_GEN5_REG_TEST_ENABLE_ADD,
NAI_VR_GEN5_REG_POWER_SUPPLY_ENABLE_ADD,
NAI_VR_GEN5_REG_CHAN_STATUS_ENABLE_ADD,
NAI_VR_GEN5_REG_CHANNEL_ENABLE_ADD,
NAI_VR_GEN5_REG_DIPOLE_ENABLE_ADD,
NAI_VR_GEN5_REG_FALLING_EDGE_MEASUREMENT_ENABLE_ADD,
NAI_VR_GEN5_REG_TERMINATION_ENABLE_ADD,
NAI_VR_GEN5_REG_AC_COUPLE_ENABLE_ADD,
NAI_VR_GEN5_REG_RANGE_SELECT_ADD,
NAI_VR_GEN5_REG_SET_ZERO_TORQUE_SIGNAL_PHASE_ADD,
NAI_VR_GEN5_REG_RESET_CYCLE_COUNT_ADD,
NAI_VR_GEN5_REG_AUTO_THRESHOLD_ENABLE_ADD
}

◆ vr_gen5_reg_status

const uint32_t vr_gen5_reg_status[NAIBRD_VR_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_VR_GEN5_REG_BIT_LATCHED_STATUS_ADD,
NAI_VR_GEN5_REG_BIT_REALTIME_STATUS_ADD,
NAI_VR_GEN5_REG_TERMINATION_FAULT_LATCHED_STATUS_ADD,
NAI_VR_GEN5_REG_TERMINATION_FAULT_REALTIME_STATUS_ADD,
NAI_VR_GEN5_REG_SIGNAL_LOSS_LATCHED_STATUS_ADD,
NAI_VR_GEN5_REG_SIGNAL_LOSS_REALTIME_STATUS_ADD,
NAI_VR_GEN5_REG_SUMMARY_LATCHED_STATUS_ADD,
NAI_VR_GEN5_REG_SUMMARY_REALTIME_STATUS_ADD
}

◆ vr_gen5_reg_voltage_threshold_high

const uint32_t vr_gen5_reg_voltage_threshold_high[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_VOLTAGE_THRESHOLD_HIGH_ADD
static

◆ vr_gen5_reg_voltage_threshold_low

const uint32_t vr_gen5_reg_voltage_threshold_low[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_VOLTAGE_THRESHOLD_LOW_ADD
static

◆ vr_gen5_reg_zero_torque_signal_phase

const uint32_t vr_gen5_reg_zero_torque_signal_phase[NAI_VR_GEN5_CHANNELS] = NAI_VR_GEN5_REG_ZERO_TORQUE_SIGNAL_PHASE_ADD
static