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

Functions

static int32_t GetChannelCount (uint32_t modId)
 
static nai_status_t naibrd_DS_VerifyChannel (uint32_t modId, int32_t channel)
 
static nai_status_t naibrd_DS_VerifyAngleInfoType (naibrd_ds_angle_info_type_t type)
 
static nai_status_t naibrd_DS_VerifyMeasuredInfoType (naibrd_ds_measured_Info_type_t type)
 
static nai_status_t naibrd_DS_VerifyChanMappedStatusType (naibrd_ds_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_DS_VerifyChanMappedLatchStatusType (naibrd_ds_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_DS_VerifyExpectedVoltageType (naibrd_ds_expected_voltage_type_t type)
 
static nai_status_t naibrd_DS_VerifyThresholdVoltageType (naibrd_ds_threshold_voltage_type_t type)
 
static nai_status_t naibrd_DS_VerifyExpectedCurrentType (naibrd_ds_expected_current_type_t type)
 
static nai_status_t naibrd_DS_VerifyRotationConfigurationType (naibrd_ds_rotation_configuration_type_t type)
 
static nai_status_t naibrd_DS_VerifyMultiSpeedChanPairType (naibrd_ds_multi_speed_chan_pair_type_t type)
 
static nai_status_t naibrd_DS_VerifyTestModeType (naibrd_ds_test_mode_type_t type)
 
static nai_status_t naibrd_DS_VerifyInterruptSteeringType (naibrd_int_steering_t type)
 
static nai_status_t naibrd_DS_VerifyInterruptModeType (naibrd_ds_interruptMode_type_t type)
 
static nai_status_t naibrd_DS_VerifyRawModuleValueType (naibrd_ds_raw_module_value_type_t type)
 
static nai_status_t naibrd_DS_VerifyRawChannelValueType (naibrd_ds_raw_channel_value_type_t type)
 
static nai_status_t naibrd_DS_VerifyBoolean (bool_t enable)
 
static nai_status_t naibrd_DS_VerifyWrapAngleArraySize (int32_t arraySize, int32_t maxChan)
 
static nai_status_t naibrd_DS_VerifyOutputRatioFixedMode (naibrd_ds_output_ratio_fixed_mode_t mode)
 
static nai_status_t naibrd_DS_VerifySynchroResolver (naibrd_ds_synchro_resolver_t mode)
 
NAIBRDFUNC int32_t NAIAPI naibrd_DS_GetChannelCount (uint32_t modId)
 Returns the number of channels for the specified D/S Module based on its module id.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetAngle (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_angle_info_type_t type, float64_t inAngle)
 Sets various angle properties on a D/S module for a specified channel. Use naibrd_ds_angle_info_type_t to select the specified angle properties to be written to the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetAngle (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_angle_info_type_t type, float64_t *p_outAngle)
 Gets various angle properties on a D/S module from a specified channel. Use naibrd_ds_angle_info_type_t to select the specified angle properties to be read from the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetPowerEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t inPwrEnable)
 Sets a specified D/S channel output state on/off.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetPowerEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outPowerEnable)
 Gets a specified D/S channel output state.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetMeasuredValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_measured_Info_type_t type, float64_t *p_outMeasValue)
 Gets internally measured values from the D/S module for their specified channels. Internally measured value types include: angle, reference, output line-to-line voltage, reference frequency, signal current, and velocity.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetAllWrapAngles (int32_t cardIndex, int32_t module, int32_t arraySize, float64_t *p_outAngle)
 Gets all internally measured angles from the D/S module. Use this function for single speed operations only.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_chan_mapped_status_type_t type, naibrd_ds_module_status_t *p_outStatus)
 Gets the module status for a specific channel from the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_chan_mapped_status_type_t type)
 Clears latched status for a specific D/S channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetRotationStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_rotation_status_t *p_outStatus)
 Gets the latched rotation status for a specific channel from the D/S module. For Gen5 D/S modules, to unlatch a latched channel, write a one to the bit mask value for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetRealTimeRotationStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_rotation_status_t *p_outStatus)
 Gets the real time rotation status for a specific channel from the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetRotationEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t inRotEnable)
 Sets the start or stop rotation command for a specified channel in the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetRotationEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outRotEnable)
 Gets the start or stop rotation command for a specified channel in the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetExpectedVoltage (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_expected_voltage_type_t type, float64_t inExpVolt)
 Sets the expected reference and output line-line for a specified channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetExpectedVoltage (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_expected_voltage_type_t type, float64_t *p_outExpVolt)
 Gets the expected reference and output line-line for a specified channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetThresholdVoltage (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_threshold_voltage_type_t type, float64_t inThresVolt)
 Sets the expected reference and output line-line threshold voltage for a specified channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetThresholdVoltage (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_threshold_voltage_type_t type, float64_t *p_outThresVolt)
 Gets the expected reference and output line-line threshold voltage for a specified channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetThresholdCurrent (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_expected_current_type_t type, float64_t inThresCurrent)
 Sets the output line-line threshold current(RMS) for a specified channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetThresholdCurrent (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_expected_current_type_t type, float64_t *p_outThresCurrent)
 Gets the output line-line threshold current(RMS) for a specified channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetRatioFixedMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_output_ratio_fixed_mode_t inRatioFixMode)
 Sets the D/S channel ratio/fixed mode for a specified D/S channel for the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetRatioFixedMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_output_ratio_fixed_mode_t *p_outRatioFixMode)
 Gets the D/S Ratio/Fixed selection of a specified D/S channel for the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetSynRslMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_synchro_resolver_t inSynRslMode)
 Sets the Synchro or Resolver mode for a specified channel for the D/S module. Only mixed mode programming modules support this function.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetSynRslMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_synchro_resolver_t *p_outSynRslMode)
 Gets the Synchro or Resolver mode for a specified channel for the D/S module. Only mixed mode programming modules support this function.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetActiveChannel (int32_t cardIndex, int32_t module, int32_t channel, bool_t inActiveChan)
 Sets the active channel state for a specified D/S channel for the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetActiveChannel (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outActChanEnable)
 Gets the active channel state for a specified D/S channel for the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, uint32_t inSetting)
 Sets the channel status enable/disable for the specified D/S channel for the D/S module. When it is set to disable, ref loss, sig loss, bit fault, and phase loss status will not be updated.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outSetting)
 Gets the channel status enable/disable for the specified D/S channel for the D/S module. When it is set to disable, ref loss, sig loss, bit fault, and phase loss status will not be updated.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetRotationCtrl (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_rotation_configuration_type_t type, float64_t inRotationCtrl)
 Sets the Rotation control for a specified D/S channel of a D/S module. Refer to the Operation Manual for information on how to set each rotation control setting.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetRotationCtrl (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_rotation_configuration_type_t type, float64_t *p_outRotCtrl)
 Gets the Rotation control for a specified D/S channel of a D/S module. Refer to the Operation Manual for information on the rotation control settings.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetMultiSpeedRatio (int32_t cardIndex, int32_t module, naibrd_ds_multi_speed_chan_pair_type_t chanPairType, uint32_t inMultSpd)
 Sets the D/S multi-speed ratio for a specified D/S channel pair in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetMultiSpeedRatio (int32_t cardIndex, int32_t module, naibrd_ds_multi_speed_chan_pair_type_t chanPairType, uint32_t *p_outMultSpd)
 Gets the D/S multi-speed ratio for a specified D/S channel pair in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetPhaseOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t inPhase)
 Sets the phase offset of a specified D/S channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetPhaseOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outPhase)
 Gets the phase offset of a specified D/S channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetTestModeEnable (int32_t cardIndex, int32_t module, naibrd_ds_test_mode_type_t type, bool_t inEnable)
 Sets the test enable state for on-line(D2), and off-line(D3) test for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetTestModeEnable (int32_t cardIndex, int32_t module, naibrd_ds_test_mode_type_t type, bool_t *p_outEnable)
 Gets the test enable state for on-line(D2), and off-line(D3) test for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetTestVerify (int32_t cardIndex, int32_t module, uint32_t inTestVerify)
 Sets the test verify value for on-line(D2) test for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetTestVerify (int32_t cardIndex, int32_t module, uint32_t *p_outTestVerify)
 Gets the test verify value for on-line(D2) test for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_ds_chan_mapped_status_type_t type, uint32_t inInterruptVector)
 Sets the interrupt vector for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_ds_chan_mapped_status_type_t type, uint32_t *p_outIntVector)
 Gets the D/S interrupt vector that is assigned to the specified interrupt function in the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_chan_mapped_status_type_t type, uint32_t inEnable)
 Sets the D/S interrupt enable state for a specific channel in a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_chan_mapped_status_type_t type, uint32_t *p_outEnable)
 Gets the D/S interrupt enable state for a specific channel in the D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_ds_chan_mapped_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the DS modules. Interrupt steering used for NAI GEN 5 modules and with latched interrupt types.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_ds_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outsteering)
 Gets the Interrupt Steering which indicates the interrupt direction for the DS modules. Interrupt steering used for NAI GEN 5 modules and with latched interrupt types.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_chan_mapped_status_type_t type, naibrd_ds_interruptMode_type_t interruptType)
 Sets the Interrupt Edge/Level mode for the D/S modules. This feature only applies to NAI GEN 5 D/S modules.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_chan_mapped_status_type_t type, naibrd_ds_interruptMode_type_t *p_outinterruptType)
 Gets the Interrupt Edge/Level mode for the D/S modules. This feature only applies to NAI GEN 5 D/S modules.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetRaw (int32_t cardIndex, int32_t module, naibrd_ds_raw_module_value_type_t type, uint32_t inRawdata)
 Sets the raw data value in the register associated to the register type specified for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetRaw (int32_t cardIndex, int32_t module, naibrd_ds_raw_module_value_type_t type, uint32_t *p_outRawData)
 Gets the raw data value in the register associated to the register type specified from a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_raw_channel_value_type_t type, uint32_t inChanRaw)
 Sets the raw data value for a specified channel associated to a specified type for a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ds_raw_channel_value_type_t type, uint32_t *p_outChanRaw)
 Gets the raw data value for a specified channel with a specified type from a D/S module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_ds_chan_mapped_status_type_t type, uint32_t *p_outStatusRaw)
 Gets the raw status value for a specified status type from a D/S module. For Gen 5 modules, to unlatch the latched status, write a one to the latched channel mask position.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DS_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_ds_chan_mapped_status_type_t type, uint32_t rawdata)
 Clears the latched status data value in the register associated to the status type specified.
 

Variables

static const uint32_t ds_setAngle [] = NAI_DS_SET_ANGLE_GROUP
 
static const uint32_t ds_setVoltage [] = NAI_DS_SET_VOLTAGE_GROUP
 
static const uint32_t ds_expectedReference [] = NAI_DS_EXPECTED_REFERENCE_GROUP
 
static const uint32_t ds_setPhaseOffset [] = NAI_DS_SET_PHASE_OFFSET_GROUP
 
static const uint32_t ds_ratioFixedMode [] = NAI_DS_OUTPUT_MODE_GROUP
 
static const uint32_t ds_wrapAngle [] = NAI_DS_WRAP_ANGLE_GROUP
 
static const uint32_t ds_measuredFrequency [] = NAI_DS_MEASURED_FREQUENCY_GROUP
 
static const uint32_t ds_measuredSignalVoltage [] = NAI_DS_MEASURED_SIGNAL_VOLTAGE_GROUP
 
static const uint32_t ds_measuredReference [] = NAI_DS_MEASURED_REFERENCE_GROUP
 
static const uint32_t ds_measuredCurrent [] = NAI_DS_MEASURED_CURRENT_GROUP
 
static const uint32_t ds_measuredVelocity [] = NAI_DS_MEASURED_VELOCITY_GROUP
 
static const uint32_t ds_signalLossThreshold [] = NAI_DS_SIGNAL_LOSS_THRESHOLD_GROUP
 
static const uint32_t ds_referenceLossThreshold [] = NAI_DS_REFERENCE_LOSS_THRESHOLD_GROUP
 
static const uint32_t ds_currentThreshold [] = NAI_DS_CURRENT_THRESHOLD_GROUP
 
static const uint32_t ds_synchroResolverSelect [] = NAI_DS_SYNCRHO_RESOLVER_SELECT_GROUP
 
static const uint32_t ds_rotationMode [] = NAI_DS_ROTATION_MODE_GROUP
 
static const uint32_t ds_stopAngle [] = NAI_DS_STOP_ANGLE_GROUP
 
static const uint32_t ds_rotationRate [] = NAI_DS_ROTATION_RATE_GROUP
 
static const uint32_t ds_rotSouceAndSlope [] = NAI_DS_TRIG_SRC_TRIG_SLP_GROUP
 
static const uint32_t ds_test_verify = NAI_DS_TEST_VERIFY
 
static const uint32_t ds_bit_test_enable = NAI_DS_BIT_TEST_ENABLE
 
static const uint32_t ds_twoSpdRatio = NAI_DS_RATIO
 
static const uint32_t ds_startRotation = NAI_DS_START_ROT
 
static const uint32_t ds_stopRotation = NAI_DS_GEN_STOP_ROT
 
static const uint32_t ds_power_enable = NAI_DS_POWER_ENABLE
 
static const uint32_t ds_channel_status_enable = NAI_DS_ENABLE_CHAN_STATUS
 
static const uint32_t ds_status_latch_rotation = NAI_DS_REG_ROTATION_LATCHED_STATUS
 
static const uint32_t ds_status_realTime_rotation = NAI_DS_REG_ROTATION_REALTIME_STATUS
 
static const uint32_t ds_status [NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT] = NAI_DS_STATUS_TYPE
 
static const uint32_t ds_rawChannelData [NAIBRD_DS_RAW_CHANNEL_VALUE_TYPE_ENUM_COUNT] = NAI_DS_CHANNEL_RAW_TYPE
 
static const uint32_t ds_raw_module_value [NAIBRD_DS_RAW_MODULE_VALUE_TYPE_ENUM_COUNT] = NAI_DS_MODULE_RAW_TYPE
 
static const uint32_t DS_IntEnableRegAddr [NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t DS_InterruptModeRegAddr [NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const int32_t ds_gen5_interrupt_num [NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modId)
static

◆ naibrd_DS_VerifyAngleInfoType()

static nai_status_t naibrd_DS_VerifyAngleInfoType ( naibrd_ds_angle_info_type_t type)
static

◆ naibrd_DS_VerifyBoolean()

static nai_status_t naibrd_DS_VerifyBoolean ( bool_t enable)
static

◆ naibrd_DS_VerifyChanMappedLatchStatusType()

static nai_status_t naibrd_DS_VerifyChanMappedLatchStatusType ( naibrd_ds_chan_mapped_status_type_t type)
static

◆ naibrd_DS_VerifyChanMappedStatusType()

static nai_status_t naibrd_DS_VerifyChanMappedStatusType ( naibrd_ds_chan_mapped_status_type_t type)
static

◆ naibrd_DS_VerifyChannel()

static nai_status_t naibrd_DS_VerifyChannel ( uint32_t modId,
int32_t channel )
static

◆ naibrd_DS_VerifyExpectedCurrentType()

static nai_status_t naibrd_DS_VerifyExpectedCurrentType ( naibrd_ds_expected_current_type_t type)
static

◆ naibrd_DS_VerifyExpectedVoltageType()

static nai_status_t naibrd_DS_VerifyExpectedVoltageType ( naibrd_ds_expected_voltage_type_t type)
static

◆ naibrd_DS_VerifyInterruptModeType()

static nai_status_t naibrd_DS_VerifyInterruptModeType ( naibrd_ds_interruptMode_type_t type)
static

◆ naibrd_DS_VerifyInterruptSteeringType()

static nai_status_t naibrd_DS_VerifyInterruptSteeringType ( naibrd_int_steering_t type)
static

◆ naibrd_DS_VerifyMeasuredInfoType()

static nai_status_t naibrd_DS_VerifyMeasuredInfoType ( naibrd_ds_measured_Info_type_t type)
static

◆ naibrd_DS_VerifyMultiSpeedChanPairType()

static nai_status_t naibrd_DS_VerifyMultiSpeedChanPairType ( naibrd_ds_multi_speed_chan_pair_type_t type)
static

◆ naibrd_DS_VerifyOutputRatioFixedMode()

static nai_status_t naibrd_DS_VerifyOutputRatioFixedMode ( naibrd_ds_output_ratio_fixed_mode_t mode)
static

◆ naibrd_DS_VerifyRawChannelValueType()

static nai_status_t naibrd_DS_VerifyRawChannelValueType ( naibrd_ds_raw_channel_value_type_t type)
static

◆ naibrd_DS_VerifyRawModuleValueType()

static nai_status_t naibrd_DS_VerifyRawModuleValueType ( naibrd_ds_raw_module_value_type_t type)
static

◆ naibrd_DS_VerifyRotationConfigurationType()

static nai_status_t naibrd_DS_VerifyRotationConfigurationType ( naibrd_ds_rotation_configuration_type_t type)
static

◆ naibrd_DS_VerifySynchroResolver()

static nai_status_t naibrd_DS_VerifySynchroResolver ( naibrd_ds_synchro_resolver_t mode)
static

◆ naibrd_DS_VerifyTestModeType()

static nai_status_t naibrd_DS_VerifyTestModeType ( naibrd_ds_test_mode_type_t type)
static

◆ naibrd_DS_VerifyThresholdVoltageType()

static nai_status_t naibrd_DS_VerifyThresholdVoltageType ( naibrd_ds_threshold_voltage_type_t type)
static

◆ naibrd_DS_VerifyWrapAngleArraySize()

static nai_status_t naibrd_DS_VerifyWrapAngleArraySize ( int32_t arraySize,
int32_t maxChan )
static

Variable Documentation

◆ ds_bit_test_enable

const uint32_t ds_bit_test_enable = NAI_DS_BIT_TEST_ENABLE
static

◆ ds_channel_status_enable

const uint32_t ds_channel_status_enable = NAI_DS_ENABLE_CHAN_STATUS
static

◆ ds_currentThreshold

const uint32_t ds_currentThreshold[] = NAI_DS_CURRENT_THRESHOLD_GROUP
static

◆ ds_expectedReference

const uint32_t ds_expectedReference[] = NAI_DS_EXPECTED_REFERENCE_GROUP
static

◆ ds_gen5_interrupt_num

const int32_t ds_gen5_interrupt_num[NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_DS_REG_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_SIG_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_SIG_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_REF_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_REF_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_PHASE_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_PHASE_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_ROTATION_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_ROTATION_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_OVERCURRENT_INT_VECTOR_STEERING_INTNUM,
NAI_DS_REG_OVERCURRENT_INT_VECTOR_STEERING_INTNUM
}

◆ DS_IntEnableRegAddr

const uint32_t DS_IntEnableRegAddr[NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_DS_REG_BIT_INT_ENABLE_ADD,
NAI_DS_REG_BIT_INT_ENABLE_ADD,
NAI_DS_REG_SIG_LOSS_INT_ENABLE_ADD,
NAI_DS_REG_SIG_LOSS_INT_ENABLE_ADD,
NAI_DS_REG_REF_LOSS_INT_ENABLE_ADD,
NAI_DS_REG_REF_LOSS_INT_ENABLE_ADD,
NAI_DS_REG_PHASE_LOSS_INT_ENABLE_ADD,
NAI_DS_REG_PHASE_LOSS_INT_ENABLE_ADD,
NAI_DS_REG_ROTATION_INT_ENABLE_ADD,
NAI_DS_REG_ROTATION_INT_ENABLE_ADD,
NAI_DS_REG_OVERCURRENT_INT_ENABLE_ADD,
NAI_DS_REG_OVERCURRENT_INT_ENABLE_ADD
}

◆ DS_InterruptModeRegAddr

const uint32_t DS_InterruptModeRegAddr[NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_DS_REG_BIT_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_BIT_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_SIG_LOSS_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_SIG_LOSS_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_REF_LOSS_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_REF_LOSS_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_PHASE_LOSS_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_PHASE_LOSS_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_ROTATION_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_ROTATION_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_OVERCURRENT_EDGE_LEVEL_INT_ADD,
NAI_DS_REG_OVERCURRENT_EDGE_LEVEL_INT_ADD
}

◆ ds_measuredCurrent

const uint32_t ds_measuredCurrent[] = NAI_DS_MEASURED_CURRENT_GROUP
static

◆ ds_measuredFrequency

const uint32_t ds_measuredFrequency[] = NAI_DS_MEASURED_FREQUENCY_GROUP
static

◆ ds_measuredReference

const uint32_t ds_measuredReference[] = NAI_DS_MEASURED_REFERENCE_GROUP
static

◆ ds_measuredSignalVoltage

const uint32_t ds_measuredSignalVoltage[] = NAI_DS_MEASURED_SIGNAL_VOLTAGE_GROUP
static

◆ ds_measuredVelocity

const uint32_t ds_measuredVelocity[] = NAI_DS_MEASURED_VELOCITY_GROUP
static

◆ ds_power_enable

const uint32_t ds_power_enable = NAI_DS_POWER_ENABLE
static

◆ ds_ratioFixedMode

const uint32_t ds_ratioFixedMode[] = NAI_DS_OUTPUT_MODE_GROUP
static

◆ ds_raw_module_value

const uint32_t ds_raw_module_value[NAIBRD_DS_RAW_MODULE_VALUE_TYPE_ENUM_COUNT] = NAI_DS_MODULE_RAW_TYPE
static

◆ ds_rawChannelData

const uint32_t ds_rawChannelData[NAIBRD_DS_RAW_CHANNEL_VALUE_TYPE_ENUM_COUNT] = NAI_DS_CHANNEL_RAW_TYPE
static

◆ ds_referenceLossThreshold

const uint32_t ds_referenceLossThreshold[] = NAI_DS_REFERENCE_LOSS_THRESHOLD_GROUP
static

◆ ds_rotationMode

const uint32_t ds_rotationMode[] = NAI_DS_ROTATION_MODE_GROUP
static

◆ ds_rotationRate

const uint32_t ds_rotationRate[] = NAI_DS_ROTATION_RATE_GROUP
static

◆ ds_rotSouceAndSlope

const uint32_t ds_rotSouceAndSlope[] = NAI_DS_TRIG_SRC_TRIG_SLP_GROUP
static

◆ ds_setAngle

const uint32_t ds_setAngle[] = NAI_DS_SET_ANGLE_GROUP
static

◆ ds_setPhaseOffset

const uint32_t ds_setPhaseOffset[] = NAI_DS_SET_PHASE_OFFSET_GROUP
static

◆ ds_setVoltage

const uint32_t ds_setVoltage[] = NAI_DS_SET_VOLTAGE_GROUP
static

◆ ds_signalLossThreshold

const uint32_t ds_signalLossThreshold[] = NAI_DS_SIGNAL_LOSS_THRESHOLD_GROUP
static

◆ ds_startRotation

const uint32_t ds_startRotation = NAI_DS_START_ROT
static

◆ ds_status

const uint32_t ds_status[NAIBRD_DS_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT] = NAI_DS_STATUS_TYPE
static

◆ ds_status_latch_rotation

const uint32_t ds_status_latch_rotation = NAI_DS_REG_ROTATION_LATCHED_STATUS
static

◆ ds_status_realTime_rotation

const uint32_t ds_status_realTime_rotation = NAI_DS_REG_ROTATION_REALTIME_STATUS
static

◆ ds_stopAngle

const uint32_t ds_stopAngle[] = NAI_DS_STOP_ANGLE_GROUP
static

◆ ds_stopRotation

const uint32_t ds_stopRotation = NAI_DS_GEN_STOP_ROT
static

◆ ds_synchroResolverSelect

const uint32_t ds_synchroResolverSelect[] = NAI_DS_SYNCRHO_RESOLVER_SELECT_GROUP
static

◆ ds_test_verify

const uint32_t ds_test_verify = NAI_DS_TEST_VERIFY
static

◆ ds_twoSpdRatio

const uint32_t ds_twoSpdRatio = NAI_DS_RATIO
static

◆ ds_wrapAngle

const uint32_t ds_wrapAngle[] = NAI_DS_WRAP_ANGLE_GROUP
static