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

Functions

static int32_t GetChannelCount (uint32_t modId)
 
static nai_status_t isDLGen5Module (uint32_t modId)
 
static nai_status_t naibrd_DL_VerifyChannel (uint32_t modId, int32_t channel)
 
static nai_status_t naibrd_DL_VerifyPosition (float64_t position)
 
static nai_status_t naibrd_DL_VerifyConfiguration (uint32_t modId, naibrd_dl_configuration_type_t configurationType, float64_t configurationValue)
 
static nai_status_t naibrd_DL_VerifySubChannelType (naibrd_dl_subchannel_t type)
 
static nai_status_t naibrd_DL_VerifyOnOffType (naibrd_dl_on_off_t type)
 
static nai_status_t naibrd_DL_VerifyMeasuredValueType (naibrd_dl_measured_value_type_t type)
 
static nai_status_t naibrd_DL_VerifyConfigurationType (naibrd_dl_configuration_type_t type)
 
static nai_status_t naibrd_DL_VerifyFloatingPointAttributesType (naibrd_dl_floating_point_attributes_type_t type)
 
static nai_status_t naibrd_DL_VerifyChanMappedStatusType (naibrd_dl_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_DL_VerifyChanMappedLatchStatusType (naibrd_dl_chan_mapped_status_type_t type)
 
static nai_status_t naibrd_DL_VerifyVllModeType (naibrd_dl_vll_mode_type_t type)
 
static nai_status_t naibrd_DL_VerifyWireModeType (naibrd_dl_wire_mode_type_t type)
 
static nai_status_t naibrd_DL_VerifyTestType (naibrd_dl_test_type_t type)
 
static nai_status_t naibrd_DL_VerifyRawByChannelType (naibrd_dl_rawByChannel_type_t type)
 
static nai_status_t naibrd_DL_VerifyRawType (naibrd_dl_raw_type_t type)
 
static nai_status_t naibrd_DL_VerifyBoolean (bool_t enable)
 
static nai_status_t naibrd_DL_VerifyInterruptTriggerType (naibrd_int_trigger_type_t triggerType)
 
static nai_status_t naibrd_DL_VerifyInterruptSteeringType (naibrd_int_steering_t steering)
 
static nai_status_t naibrd_DL_ConvertRawToPosition (uint32_t rawdata, float64_t *p_outposition)
 Converts raw value to position value.
 
static nai_status_t naibrd_DL_ConvertPositionToRaw (float64_t inPosition, int32_t *p_outrawData)
 Converts position to raw position value.
 
static nai_status_t naibrd_DL_ConvertRawToPhase (uint32_t modId, uint32_t rawdata, float64_t *p_outphase)
 Converts raw value to phase value.
 
static nai_status_t naibrd_DL_ConvertPhaseToRaw (uint32_t modId, float64_t inPhase, uint32_t *p_outrawData)
 Converts phase to raw phase value.
 
NAIBRDFUNC int32_t NAIAPI naibrd_DL_GetChannelCount (uint32_t modId)
 Returns the number of channels for the specified D/L Module based on its module id.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetPosition (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_subchannel_t subchannel, float64_t position)
 Sets position on a DLV module for a specified subchannel and channel. Use naibrd_dl_subchannel_t to select the specified subchannel to be written to the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetPosition (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_subchannel_t subchannel, float64_t *p_outposition)
 Retrieves position on a DLV module from a specified subchannel and channel. Use naibrd_dl_subchannel_t to select the specified subchannel to be read from the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetConfigurationValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_configuration_type_t opMode, float64_t opValue)
 Sets various configuration values on a DLV module for a specified channel. Use naibrd_dl_configuration_type_t to select the specified configuration type to be written to the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetConfigurationValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_configuration_type_t opMode, float64_t *p_outopValue)
 Retrieves various configuration values on a DLV module for a specified channel. Use naibrd_dl_configuration_type_t to select the specified configuration type to be read from the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 Enables/disables status reporting for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_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 channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetWireMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_wire_mode_type_t mode)
 Sets the wire mode (4-wire or 2-wire) for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetWireMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_wire_mode_type_t *p_outmode)
 Retrieves the wire mode (4-wire or 2-wire) for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetOutputMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_vll_mode_type_t mode)
 Sets the output mode (ratio mode or fixed mode) for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetOutputMode (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_vll_mode_type_t *p_outmode)
 Retrieves the output mode (ratio mode or fixed mode) for the specified channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetFloatingPointAttributes (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_floating_point_attributes_type_t attrType, float64_t attrValue)
 Sets the floating-point attribute value of the specified attribute type for the specified DLV channel. Valid attribute types are Position A Offset, Position B Offset, Position A Scale, and Position B Scale.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetFloatingPointAttributes (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_floating_point_attributes_type_t attrType, float64_t *p_outattrValue)
 Retrieves the floating-point attribute value of the specified attribute type for the specified DLV channel. Valid attribute types are Position A Offset, Position B Offset, Position A Scale, and Position B Scale.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetMeasuredValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_measured_value_type_t opMode, float64_t *p_outopValue)
 Retrieves a measured value for the specified DLV channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_chan_mapped_status_type_t statusType, naibrd_dl_module_status_t *p_outstatus)
 Retrieves the module status for a specific channel and status type from the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_chan_mapped_status_type_t statusType)
 Clears the module latched status for a specific channel and status type for the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_chan_mapped_status_type_t statusType, bool_t enable)
 Sets the Interrupt Enable for the specified DLV channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_chan_mapped_status_type_t statusType, bool_t *p_outenable)
 Retrieves the Interrupt Enable for the specified DLV channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_chan_mapped_status_type_t statusType, naibrd_int_trigger_type_t triggerType)
 Sets the Interrupt Edge/Level trigger type property for the specified DLV channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_chan_mapped_status_type_t statusType, naibrd_int_trigger_type_t *p_outtriggerType)
 Retrieves the Interrupt Edge/Level trigger type property for the specified DLV channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, uint32_t vector)
 Sets the Interrupt Vector for the specified interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, uint32_t *p_outVector)
 Retrieves the Interrupt Vector for the specified interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, 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_DL_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, 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_DL_SetPowerSupplyState (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_on_off_t setting)
 Sets the Power Supply State for the specified DLV channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetPowerSupplyState (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_on_off_t *p_outsetting)
 Retrieves the Power Supply State for the specified DLV channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetTestEnable (int32_t cardIndex, int32_t module, naibrd_dl_test_type_t type, bool_t inTestEnable)
 Sets the test enable state for D0, on-line(D2), or off-line(D3) test for a DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetTestEnable (int32_t cardIndex, int32_t module, naibrd_dl_test_type_t type, bool_t *p_outtestEnable)
 Retrieves the test enable state for D0, on-line(D2), or off-line(D3) test for a DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetD2TestVerifyValue (int32_t cardIndex, int32_t module, uint32_t inValue)
 Sets the D2 Test Verify value. When the D2 test is enabled, the board will set the D2 Test Verify register to 0x55. An external application can write a value to the D2 Test Verify register and then read it after 30 seconds to verify that the background bit testing (D2 test) is activated.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetD2TestVerifyValue (int32_t cardIndex, int32_t module, uint32_t *p_outvalue)
 Retrieves the D2 Test Verify value. When the D2 test is enabled, the board will set the D2 Test Verify register to 0x55. An external application can write a value to the D2 Test Verify register and then read it after 30 seconds to verify that the background bit testing (D2 test) is activated.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetRawValueByChannel (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_rawByChannel_type_t opMode, uint32_t opValue)
 Writes a raw value to a register based on channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetRawValueByChannel (int32_t cardIndex, int32_t module, int32_t channel, naibrd_dl_rawByChannel_type_t opMode, uint32_t *p_outopValue)
 Retrieves a raw value from a register based on channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetRawValue (int32_t cardIndex, int32_t module, naibrd_dl_raw_type_t opMode, uint32_t opValue)
 Writes the raw value to a register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetRawValue (int32_t cardIndex, int32_t module, naibrd_dl_raw_type_t opMode, uint32_t *p_outopValue)
 Retrieves the raw value from a register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, 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_DL_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, 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_DL_SetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, uint32_t enableRaw)
 Sets the raw data value in the interrupt enable register associated with the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_dl_chan_mapped_status_type_t statusType, uint32_t *p_outenableRaw)
 Retrieves the raw data value in the interrupt enable register associated with the status type specified.
 

Variables

static const uint32_t dl_reg_gen5_position_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_POSITION_A_ADDR
 
static const uint32_t dl_reg_gen5_position_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_POSITION_B_ADDR
 
static const uint32_t dl_reg_gen5_sig_voltage_in [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_SIG_VOLTAGE_IN_ADDR
 
static const uint32_t dl_reg_gen5_ref_voltage_in [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_REF_VOLTAGE_IN_ADDR
 
static const uint32_t dl_reg_gen5_phase_offset [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_PHASE_OFFSET_ADDR
 
static const uint32_t dl_reg_gen5_ratio_fixed_mode [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_RATIO_FIXED_MODE_ADDR
 
static const uint32_t dl_reg_gen5_measured_position_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_POSITION_A_ADDR
 
static const uint32_t dl_reg_gen5_measured_position_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_POSITION_B_ADDR
 
static const uint32_t dl_reg_gen5_measured_velocity_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_VELOCITY_A_ADDR
 
static const uint32_t dl_reg_gen5_measured_velocity_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_VELOCITY_B_ADDR
 
static const uint32_t dl_reg_gen5_measured_frequency [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_FREQUENCY_ADDR
 
static const uint32_t dl_reg_gen5_measured_sig_voltage_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_SIG_VOLTAGE_A_ADDR
 
static const uint32_t dl_reg_gen5_measured_sig_voltage_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_SIG_VOLTAGE_B_ADDR
 
static const uint32_t dl_reg_gen5_measured_ref_voltage [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_REF_VOLTAGE_ADDR
 
static const uint32_t dl_reg_gen5_measured_current_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_CURRENT_A_ADDR
 
static const uint32_t dl_reg_gen5_measured_current_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_CURRENT_B_ADDR
 
static const uint32_t dl_reg_gen5_sig_loss_threshold_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_SIG_LOSS_THRESHOLD_A_ADDR
 
static const uint32_t dl_reg_gen5_sig_loss_threshold_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_SIG_LOSS_THRESHOLD_B_ADDR
 
static const uint32_t dl_reg_gen5_ref_loss_threshold [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_REF_LOSS_THRESHOLD_ADDR
 
static const uint32_t dl_reg_gen5_current_threshold_a [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_CURRENT_THRESHOLD_A_ADDR
 
static const uint32_t dl_reg_gen5_current_threshold_b [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_CURRENT_THRESHOLD_B_ADDR
 
static const uint32_t dl_reg_gen5_wire_mode [NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_WIRE_MODE_ADDR
 
static const uint32_t dl_reg_gen5_floating_point_position_a_offset [NAI_DL_GEN5_CHANNELS]
 
static const uint32_t dl_reg_gen5_floating_point_position_b_offset [NAI_DL_GEN5_CHANNELS]
 
static const uint32_t dl_reg_gen5_floating_point_position_a_scale [NAI_DL_GEN5_CHANNELS]
 
static const uint32_t dl_reg_gen5_floating_point_position_b_scale [NAI_DL_GEN5_CHANNELS]
 
static const uint32_t dl_reg_gen5_chan_status_enable = NAI_DL_GEN5_CHANNEL_STATUS_ENABLE_ADDR
 
static const uint32_t dl_reg_gen5_test_enable = NAI_DL_GEN5_TEST_ENABLE_ADDR
 
static const uint32_t dl_reg_gen5_d2test_verify = NAI_DL_GEN5_D2_TEST_VERIFY_ADDR
 
static const uint32_t dl_reg_gen5_power_enable = NAI_DL_GEN5_POWER_ENABLE_ADDR
 
static const uint32_t dl_reg_gen5_bit_latched_status = NAI_DL_GEN5_BIT_STATUS_LATCHED_ADDR
 
static const uint32_t dl_reg_gen5_bit_realtime_status = NAI_DL_GEN5_BIT_STATUS_REALTIME_ADDR
 
static const uint32_t dl_reg_gen5_bit_int_enable = NAI_DL_GEN5_BIT_STATUS_INT_ENABLE_ADDR
 
static const uint32_t dl_reg_gen5_bit_int_edge_level = NAI_DL_GEN5_BIT_STATUS_EDGE_LEVEL_INT_ADDR
 
static const uint32_t dl_reg_gen5_sig_loss_latched_status = NAI_DL_GEN5_SIG_LOSS_STATUS_LATCHED_ADDR
 
static const uint32_t dl_reg_gen5_sig_loss_realtime_status = NAI_DL_GEN5_SIG_LOSS_STATUS_REALTIME_ADDR
 
static const uint32_t dl_reg_gen5_sig_loss_int_enable = NAI_DL_GEN5_SIG_LOSS_STATUS_INT_ENABLE_ADDR
 
static const uint32_t dl_reg_gen5_sig_loss_int_edge_level = NAI_DL_GEN5_SIG_LOSS_STATUS_EDGE_LEVEL_INT_ADDR
 
static const uint32_t dl_reg_gen5_status [NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t DL_IntEnableRegAddr [NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t DL_InterruptModeRegAddr [NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 
static const int32_t dl_gen5_interrupt_num [NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
 

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modId)
static

◆ isDLGen5Module()

static nai_status_t isDLGen5Module ( uint32_t modId)
static

◆ naibrd_DL_VerifyBoolean()

static nai_status_t naibrd_DL_VerifyBoolean ( bool_t enable)
static

◆ naibrd_DL_VerifyChanMappedLatchStatusType()

static nai_status_t naibrd_DL_VerifyChanMappedLatchStatusType ( naibrd_dl_chan_mapped_status_type_t type)
static

◆ naibrd_DL_VerifyChanMappedStatusType()

static nai_status_t naibrd_DL_VerifyChanMappedStatusType ( naibrd_dl_chan_mapped_status_type_t type)
static

◆ naibrd_DL_VerifyChannel()

static nai_status_t naibrd_DL_VerifyChannel ( uint32_t modId,
int32_t channel )
static

◆ naibrd_DL_VerifyConfiguration()

static nai_status_t naibrd_DL_VerifyConfiguration ( uint32_t modId,
naibrd_dl_configuration_type_t configurationType,
float64_t configurationValue )
static

◆ naibrd_DL_VerifyConfigurationType()

static nai_status_t naibrd_DL_VerifyConfigurationType ( naibrd_dl_configuration_type_t type)
static

◆ naibrd_DL_VerifyFloatingPointAttributesType()

static nai_status_t naibrd_DL_VerifyFloatingPointAttributesType ( naibrd_dl_floating_point_attributes_type_t type)
static

◆ naibrd_DL_VerifyInterruptSteeringType()

static nai_status_t naibrd_DL_VerifyInterruptSteeringType ( naibrd_int_steering_t steering)
static

◆ naibrd_DL_VerifyInterruptTriggerType()

static nai_status_t naibrd_DL_VerifyInterruptTriggerType ( naibrd_int_trigger_type_t triggerType)
static

◆ naibrd_DL_VerifyMeasuredValueType()

static nai_status_t naibrd_DL_VerifyMeasuredValueType ( naibrd_dl_measured_value_type_t type)
static

◆ naibrd_DL_VerifyOnOffType()

static nai_status_t naibrd_DL_VerifyOnOffType ( naibrd_dl_on_off_t type)
static

◆ naibrd_DL_VerifyPosition()

static nai_status_t naibrd_DL_VerifyPosition ( float64_t position)
static

◆ naibrd_DL_VerifyRawByChannelType()

static nai_status_t naibrd_DL_VerifyRawByChannelType ( naibrd_dl_rawByChannel_type_t type)
static

◆ naibrd_DL_VerifyRawType()

static nai_status_t naibrd_DL_VerifyRawType ( naibrd_dl_raw_type_t type)
static

◆ naibrd_DL_VerifySubChannelType()

static nai_status_t naibrd_DL_VerifySubChannelType ( naibrd_dl_subchannel_t type)
static

◆ naibrd_DL_VerifyTestType()

static nai_status_t naibrd_DL_VerifyTestType ( naibrd_dl_test_type_t type)
static

◆ naibrd_DL_VerifyVllModeType()

static nai_status_t naibrd_DL_VerifyVllModeType ( naibrd_dl_vll_mode_type_t type)
static

◆ naibrd_DL_VerifyWireModeType()

static nai_status_t naibrd_DL_VerifyWireModeType ( naibrd_dl_wire_mode_type_t type)
static

Variable Documentation

◆ dl_gen5_interrupt_num

const int32_t dl_gen5_interrupt_num[NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_DL_GEN5_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_BIT_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_SIG_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_SIG_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_REF_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_REF_LOSS_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_PHASE_LOCK_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_PHASE_LOCK_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_OVERCURRENT_INT_VECTOR_STEERING_INTNUM,
NAI_DL_GEN5_OVERCURRENT_INT_VECTOR_STEERING_INTNUM,
0 ,
0 ,
0 ,
0
}

◆ DL_IntEnableRegAddr

const uint32_t DL_IntEnableRegAddr[NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_DL_GEN5_BIT_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_BIT_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_SIG_LOSS_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_SIG_LOSS_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_REF_LOSS_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_REF_LOSS_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_PHASE_LOCK_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_PHASE_LOCK_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_OVERCURRENT_STATUS_INT_ENABLE_ADDR,
NAI_DL_GEN5_OVERCURRENT_STATUS_INT_ENABLE_ADDR,
0u,
0u,
0u,
0u
}

◆ DL_InterruptModeRegAddr

const uint32_t DL_InterruptModeRegAddr[NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_DL_GEN5_BIT_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_BIT_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_SIG_LOSS_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_SIG_LOSS_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_REF_LOSS_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_REF_LOSS_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_PHASE_LOCK_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_PHASE_LOCK_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_OVERCURRENT_STATUS_EDGE_LEVEL_INT_ADDR,
NAI_DL_GEN5_OVERCURRENT_STATUS_EDGE_LEVEL_INT_ADDR,
0u,
0u,
0u,
0u
}

◆ dl_reg_gen5_bit_int_edge_level

const uint32_t dl_reg_gen5_bit_int_edge_level = NAI_DL_GEN5_BIT_STATUS_EDGE_LEVEL_INT_ADDR
static

◆ dl_reg_gen5_bit_int_enable

const uint32_t dl_reg_gen5_bit_int_enable = NAI_DL_GEN5_BIT_STATUS_INT_ENABLE_ADDR
static

◆ dl_reg_gen5_bit_latched_status

const uint32_t dl_reg_gen5_bit_latched_status = NAI_DL_GEN5_BIT_STATUS_LATCHED_ADDR
static

◆ dl_reg_gen5_bit_realtime_status

const uint32_t dl_reg_gen5_bit_realtime_status = NAI_DL_GEN5_BIT_STATUS_REALTIME_ADDR
static

◆ dl_reg_gen5_chan_status_enable

const uint32_t dl_reg_gen5_chan_status_enable = NAI_DL_GEN5_CHANNEL_STATUS_ENABLE_ADDR
static

◆ dl_reg_gen5_current_threshold_a

const uint32_t dl_reg_gen5_current_threshold_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_CURRENT_THRESHOLD_A_ADDR
static

◆ dl_reg_gen5_current_threshold_b

const uint32_t dl_reg_gen5_current_threshold_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_CURRENT_THRESHOLD_B_ADDR
static

◆ dl_reg_gen5_d2test_verify

const uint32_t dl_reg_gen5_d2test_verify = NAI_DL_GEN5_D2_TEST_VERIFY_ADDR
static

◆ dl_reg_gen5_floating_point_position_a_offset

const uint32_t dl_reg_gen5_floating_point_position_a_offset[NAI_DL_GEN5_CHANNELS]
static
Initial value:
=
NAI_DL_GEN5_FLOATING_POINT_POSITION_A_OFFSET_ADDR

◆ dl_reg_gen5_floating_point_position_a_scale

const uint32_t dl_reg_gen5_floating_point_position_a_scale[NAI_DL_GEN5_CHANNELS]
static
Initial value:
=
NAI_DL_GEN5_FLOATING_POINT_POSITION_A_SCALE_ADDR

◆ dl_reg_gen5_floating_point_position_b_offset

const uint32_t dl_reg_gen5_floating_point_position_b_offset[NAI_DL_GEN5_CHANNELS]
static
Initial value:
=
NAI_DL_GEN5_FLOATING_POINT_POSITION_B_OFFSET_ADDR

◆ dl_reg_gen5_floating_point_position_b_scale

const uint32_t dl_reg_gen5_floating_point_position_b_scale[NAI_DL_GEN5_CHANNELS]
static
Initial value:
=
NAI_DL_GEN5_FLOATING_POINT_POSITION_B_SCALE_ADDR

◆ dl_reg_gen5_measured_current_a

const uint32_t dl_reg_gen5_measured_current_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_CURRENT_A_ADDR
static

◆ dl_reg_gen5_measured_current_b

const uint32_t dl_reg_gen5_measured_current_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_CURRENT_B_ADDR
static

◆ dl_reg_gen5_measured_frequency

const uint32_t dl_reg_gen5_measured_frequency[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_FREQUENCY_ADDR
static

◆ dl_reg_gen5_measured_position_a

const uint32_t dl_reg_gen5_measured_position_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_POSITION_A_ADDR
static

◆ dl_reg_gen5_measured_position_b

const uint32_t dl_reg_gen5_measured_position_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_POSITION_B_ADDR
static

◆ dl_reg_gen5_measured_ref_voltage

const uint32_t dl_reg_gen5_measured_ref_voltage[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_REF_VOLTAGE_ADDR
static

◆ dl_reg_gen5_measured_sig_voltage_a

const uint32_t dl_reg_gen5_measured_sig_voltage_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_SIG_VOLTAGE_A_ADDR
static

◆ dl_reg_gen5_measured_sig_voltage_b

const uint32_t dl_reg_gen5_measured_sig_voltage_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_SIG_VOLTAGE_B_ADDR
static

◆ dl_reg_gen5_measured_velocity_a

const uint32_t dl_reg_gen5_measured_velocity_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_VELOCITY_A_ADDR
static

◆ dl_reg_gen5_measured_velocity_b

const uint32_t dl_reg_gen5_measured_velocity_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_MEAS_VELOCITY_B_ADDR
static

◆ dl_reg_gen5_phase_offset

const uint32_t dl_reg_gen5_phase_offset[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_PHASE_OFFSET_ADDR
static

◆ dl_reg_gen5_position_a

const uint32_t dl_reg_gen5_position_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_POSITION_A_ADDR
static

◆ dl_reg_gen5_position_b

const uint32_t dl_reg_gen5_position_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_POSITION_B_ADDR
static

◆ dl_reg_gen5_power_enable

const uint32_t dl_reg_gen5_power_enable = NAI_DL_GEN5_POWER_ENABLE_ADDR
static

◆ dl_reg_gen5_ratio_fixed_mode

const uint32_t dl_reg_gen5_ratio_fixed_mode[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_RATIO_FIXED_MODE_ADDR
static

◆ dl_reg_gen5_ref_loss_threshold

const uint32_t dl_reg_gen5_ref_loss_threshold[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_REF_LOSS_THRESHOLD_ADDR
static

◆ dl_reg_gen5_ref_voltage_in

const uint32_t dl_reg_gen5_ref_voltage_in[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_REF_VOLTAGE_IN_ADDR
static

◆ dl_reg_gen5_sig_loss_int_edge_level

const uint32_t dl_reg_gen5_sig_loss_int_edge_level = NAI_DL_GEN5_SIG_LOSS_STATUS_EDGE_LEVEL_INT_ADDR
static

◆ dl_reg_gen5_sig_loss_int_enable

const uint32_t dl_reg_gen5_sig_loss_int_enable = NAI_DL_GEN5_SIG_LOSS_STATUS_INT_ENABLE_ADDR
static

◆ dl_reg_gen5_sig_loss_latched_status

const uint32_t dl_reg_gen5_sig_loss_latched_status = NAI_DL_GEN5_SIG_LOSS_STATUS_LATCHED_ADDR
static

◆ dl_reg_gen5_sig_loss_realtime_status

const uint32_t dl_reg_gen5_sig_loss_realtime_status = NAI_DL_GEN5_SIG_LOSS_STATUS_REALTIME_ADDR
static

◆ dl_reg_gen5_sig_loss_threshold_a

const uint32_t dl_reg_gen5_sig_loss_threshold_a[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_SIG_LOSS_THRESHOLD_A_ADDR
static

◆ dl_reg_gen5_sig_loss_threshold_b

const uint32_t dl_reg_gen5_sig_loss_threshold_b[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_SIG_LOSS_THRESHOLD_B_ADDR
static

◆ dl_reg_gen5_sig_voltage_in

const uint32_t dl_reg_gen5_sig_voltage_in[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_SIG_VOLTAGE_IN_ADDR
static

◆ dl_reg_gen5_status

const uint32_t dl_reg_gen5_status[NAIBRD_DL_CHAN_MAPPED_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
=
{
NAI_DL_GEN5_BIT_STATUS_LATCHED_ADDR,
NAI_DL_GEN5_BIT_STATUS_REALTIME_ADDR,
NAI_DL_GEN5_SIG_LOSS_STATUS_LATCHED_ADDR,
NAI_DL_GEN5_SIG_LOSS_STATUS_REALTIME_ADDR,
NAI_DL_GEN5_REF_LOSS_STATUS_LATCHED_ADDR,
NAI_DL_GEN5_REF_LOSS_STATUS_REALTIME_ADDR,
NAI_DL_GEN5_PHASE_LOCK_STATUS_LATCHED_ADDR,
NAI_DL_GEN5_PHASE_LOCK_STATUS_REALTIME_ADDR,
NAI_DL_GEN5_OVERCURRENT_STATUS_LATCHED_ADDR,
NAI_DL_GEN5_OVERCURRENT_STATUS_REALTIME_ADDR,
0u,
0u,
0u,
0u
}

◆ dl_reg_gen5_test_enable

const uint32_t dl_reg_gen5_test_enable = NAI_DL_GEN5_TEST_ENABLE_ADDR
static

◆ dl_reg_gen5_wire_mode

const uint32_t dl_reg_gen5_wire_mode[NAI_DL_GEN5_CHANNELS] = NAI_DL_GEN5_WIRE_MODE_ADDR
static