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

Functions

static nai_status_t verify_channel (uint32_t modid, int32_t channel)
 
static int32_t GetChannelCount (uint32_t modid)
 
static nai_status_t GetFIFOInfo_Legacy (int32_t cardIndex, int32_t module, int32_t channel, uint32_t modid, uint32_t *outcount, nai_dt_fifo_status_t *outstatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_IsIOConfigurable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outconfigurable)
 Indicates if the specified Discrete channel is Input/Output configurable. For KA modules, only channels 13-16 are configurable, channels 1-12 are output-only channels, and channels 17-28 are input-only channels.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetOpMode (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_enhanced_mode_t mode)
 Sets the Operation mode in Enhanced mode for the specified Discrete channel. Default configuration for the channels is Enhanced Input. For KA and K6 modules, valid modes will be limited to PWM_FOREVER and basic modes only.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetOpMode (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_enhanced_mode_t *outmode)
 Retrieves the Operation mode in Enhanced mode for the specified Discrete channel. Default configuration for the channels is Enhanced Input.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_status_type_t type, nai_status_bit_t *outstatusBit)
 Retrieves the status for the specified Discrete channel and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_status_type_t type)
 Clears the latched status for the specified Discrete channel and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupStatusRaw (int32_t cardIndex, int32_t module, int32_t group, nai_dt_status_type_t type, uint32_t *outrawdata)
 Retrieves the raw status data value in the register associated to the group and status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ClearGroupStatusRaw (int32_t cardIndex, int32_t module, int32_t group, nai_dt_status_type_t type, uint32_t rawdata)
 Clears the status data value in the register associated to the group and status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetCurrent_mA (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outcurrent_mA)
 Retrieves the current measurement in milliamps for the specified Discrete channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetGroupRaw (int32_t cardIndex, int32_t module, int32_t group, nai_dt_raw_group_t type, uint32_t rawdata)
 Sets the raw data value in the register associated to the group and register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupRaw (int32_t cardIndex, int32_t module, int32_t group, nai_dt_raw_group_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the register associated to the group and register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_raw_channel_t type, uint32_t rawdata)
 Sets the raw data value in the register associated to the channel and register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_raw_channel_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the register associated to the channel and register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetBitStatusRaw (int32_t cardIndex, int32_t module, nai_dt_bit_status_type_t type, uint32_t *p_outstatus)
 Retrieves the BIT error trigger type for the specified channel and BIT status error trigger type, when BIT status has been set. A return of 1 indicates the BIT was a result of the queried trigger type (voltage measurement, or driver error).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_StartMeasurement (int32_t cardIndex, int32_t module, int32_t channel)
 Starts the Input Measurement for the specified Discrete channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ReadFIFORaw (int32_t cardIndex, int32_t module, int32_t channel, uint32_t count, uint32_t outdata[], uint32_t *outread)
 Retrieves the data elements from the Discrete channel's FIFO buffer.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ReadFIFORawEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t count, uint32_t timeout, uint32_t outdata[], uint32_t *outread, uint32_t *countRemaining)
 Retrieves the data elements from the Discrete channel's FIFO buffer.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetFIFOStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outcount, nai_dt_fifo_status_t *outstatus)
 Retrieves the Discrete channel's FIFO Buffer Status.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_status_type_t type, nai_dt_interrupt_t triggerType)
 Sets the Interrupt Edge/Level property for the specified Discrete channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_status_type_t type, nai_dt_interrupt_t *p_outtriggerType)
 Retrieves the Interrupt Edge/Level property for the specified Discrete channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_status_type_t type, bool_t enable)
 Sets the Interrupt Enable for the specified Discrete channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_dt_status_type_t type, bool_t *outenable)
 Retrieves the Interrupt Enable for the specified Discrete channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetGroupInterruptVector (int32_t cardIndex, int32_t module, int32_t group, nai_dt_status_type_t type, uint32_t vector)
 Sets the Interrupt Vector for the specified Discrete channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupInterruptVector (int32_t cardIndex, int32_t module, int32_t group, nai_dt_status_type_t type, uint32_t *outvector)
 Retrieves the Interrupt Vector for the specified Discrete channel and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetGroupInterruptSteering (int32_t cardIndex, int32_t module, int32_t group, nai_dt_status_type_t type, naibrd_int_steering_t steering)
 Sets the Interrupt Steering which indicates the interrupt direction for the specified Discrete group and interrupt status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupInterruptSteering (int32_t cardIndex, int32_t module, int32_t group, nai_dt_status_type_t type, naibrd_int_steering_t *outsteering)
 Retrieves the Interrupt Steering which indicates the interrupt direction for the specified Discrete group and interrupt status type.
 

Variables

static const uint32_t dt_16_reg_io_format [2] = NAI_DT_GEN3_16_REG_INPUT_OUTPUT_FORMAT_ADD
 
static const uint32_t dt_16_reg_pwm_mode [1] = { NAI_DT_GEN3_16_REG_PWM_MODE_ADD }
 
static const uint32_t dt_16_reg_status_bit_latched [1] = { NAI_DT_GEN3_16_REG_BIT_LATCHED_STATUS_ADD }
 
static const uint32_t dt_16_reg_status_overcurrent_latched [1] = { NAI_DT_GEN3_16_REG_OVERCURRENT_LATCHED_STATUS_ADD }
 
static const uint32_t dt_16_reg_status_maxhi_latched [1] = { NAI_DT_GEN3_16_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD }
 
static const uint32_t dt_16_reg_status_minlo_latched [1] = { NAI_DT_GEN3_16_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD }
 
static const uint32_t dt_16_reg_status_mid_range_fault_latched [1] = { NAI_DT_GEN3_16_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD }
 
static const uint32_t dt_16_reg_status_lohi_trans_latched [1] = { NAI_DT_GEN3_16_REG_LO_HI_TRANS_LATCHED_STATUS_ADD }
 
static const uint32_t dt_16_reg_status_hilo_trans_latched [1] = { NAI_DT_GEN3_16_REG_HI_LO_TRANS_LATCHED_STATUS_ADD }
 
static const uint32_t *const dt_16_reg_status [NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t dt_kb_reg_status_bit_latched [2] = NAI_DT_GEN3_KB_REG_BIT_LATCHED_STATUS_ADD
 
static const uint32_t dt_kb_reg_status_overcurrent_latched [2] = NAI_DT_GEN3_KB_REG_OVERCURRENT_LATCHED_STATUS_ADD
 
static const uint32_t dt_kb_reg_status_maxhi_latched [2] = NAI_DT_GEN3_KB_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_kb_reg_status_midrange_latched [2] = NAI_DT_GEN3_KB_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
 
static const uint32_t dt_kb_reg_status_minlo_latched [2] = NAI_DT_GEN3_KB_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_kb_reg_status_lohi_trans_latched [2] = NAI_DT_GEN3_KB_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t dt_kb_reg_status_hilo_trans_latched [2] = NAI_DT_GEN3_KB_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t *const dt_kb_reg_status [NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t dt_ka_reg_io_format [1] = NAI_DT_GEN3_KA_REG_INPUT_OUTPUT_FORMAT_ADD
 
static const uint32_t dt_ka_reg_pwm_mode [1] = NAI_DT_GEN3_KA_REG_PWM_MODE_ADD
 
static const uint32_t dt_ka_reg_status_bit_latched [2] = NAI_DT_GEN3_KA_REG_BIT_LATCHED_STATUS_ADD
 
static const uint32_t dt_ka_reg_status_overcurrent_latched [1] = NAI_DT_GEN3_KA_REG_OVERCURRENT_LATCHED_STATUS_ADD
 
static const uint32_t dt_ka_reg_status_maxhi_latched [2] = NAI_DT_GEN3_KA_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_ka_reg_status_minlo_latched [2] = NAI_DT_GEN3_KA_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_ka_reg_status_mid_range_fault_latched [2] = NAI_DT_GEN3_KA_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
 
static const uint32_t dt_ka_reg_status_lohi_trans_latched [2] = NAI_DT_GEN3_KA_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t dt_ka_reg_status_hilo_trans_latched [2] = NAI_DT_GEN3_KA_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t *const dt_ka_reg_status [NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t dt_pd_reg_status_bit_latched [2] = NAI_DT_GEN3_PD_REG_BIT_LATCHED_STATUS_ADD
 
static const uint32_t dt_pd_reg_status_overcurrent_latched [2] = NAI_DT_GEN3_PD_REG_OVERCURRENT_LATCHED_STATUS_ADD
 
static const uint32_t dt_pd_reg_status_maxhi_latched [2] = NAI_DT_GEN3_PD_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_pd_reg_status_midrange_latched [2] = NAI_DT_GEN3_PD_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
 
static const uint32_t dt_pd_reg_status_minlo_latched [2] = NAI_DT_GEN3_PD_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_pd_reg_status_lohi_trans_latched [2] = NAI_DT_GEN3_PD_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t dt_pd_reg_status_hilo_trans_latched [2] = NAI_DT_GEN3_PD_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t *const dt_pd_reg_status [NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t dt_48_reg_status_bit_latched [3] = NAI_DT_GEN3_48_REG_BIT_LATCHED_STATUS_ADD
 
static const uint32_t dt_48_reg_status_overcurrent_latched [3] = NAI_DT_GEN3_48_REG_OVERCURRENT_LATCHED_STATUS_ADD
 
static const uint32_t dt_48_reg_status_maxhi_latched [3] = NAI_DT_GEN3_48_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_48_reg_status_minlo_latched [3] = NAI_DT_GEN3_48_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
 
static const uint32_t dt_48_reg_status_mid_range_fault_latched [3] = NAI_DT_GEN3_48_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
 
static const uint32_t dt_48_reg_status_lohi_trans_latched [3] = NAI_DT_GEN3_48_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t dt_48_reg_status_hilo_trans_latched [3] = NAI_DT_GEN3_48_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
 
static const uint32_t *const dt_48_reg_status [NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
 
static const uint32_t DT_GEN5_EnhancedModeSelectAddr [24] = NAI_DT_GEN5_REG_MODE_SELECT_ADD
 
static const uint32_t DT_GEN5_EnhancedModeMappedVal [] = NAI_DT_GEN5_MODE_MAPPED_VALUE
 
static const uint32_t DT_GEN5_PWMPolarityRegAddr [1] = { NAI_DT_GEN5_PWM_POLARITY_SELECT_ADD }
 
static const uint32_t DT_CF1_GEN5_EnhancedModeSelectAddr [12] = NAI_CF1_GEN5_REG_MODE_SELECT_ADD
 
static const uint32_t DT_GEN5_EnhancedModeSelectPreRev10_2_Addr [24] = NAI_DT_GEN5_REG_MODE_SELECT_PRE_REV10_2_ADD
 
static const uint32_t DT_GEN5_EnhancedModeMappedPreRev10_2_Val [] = NAI_DT_GEN5_MODE_MAPPED_PRE_REV10_2_VALUE
 
static const uint32_t DT_GEN5_PWMPolarityRegPreRev10_2_Addr [1] = { NAI_DT_GEN5_PWM_POLARITY_SELECT_PRE_REV10_2_ADD }
 
static const uint32_t DT_GEN5_PWMMasterSelectRegAddr [1] = { NAI_DT_GEN5_PWM_MASTER_SELECT_PRE_REV10_2_ADD }
 
static const uint32_t DT_GEN5_PWM_PeriodRegPreRev10_2_Addr [24] = NAI_DT_GEN5_REG_PWM_PERIOD_PRE_REV10_2_ADD
 
static const uint32_t DT_GEN5_PWM_PulseWidthRegPreRev10_2_Addr [24] = NAI_DT_GEN5_REG_PWM_PULSEWIDTH_PRE_REV10_2_ADD
 
static const uint32_t DT_GEN5_PWM_BurstCountRegPreRev10_2_Addr [24] = NAI_DT_GEN5_REG_PWM_BURST_COUNT_PRE_REV10_2_ADD
 
static const uint32_t DT_GEN5_PWM_TriggerRegPreRev10_2_Addr [24] = NAI_DT_GEN5_REG_PWM_TRIGGER_PRE_REV10_2_ADD
 
static const uint32_t DT_GEN5_TimerResetRegPreRev10_2_Addr [24] = NAI_DT_GEN5_REG_RESET_TIMER_ONLY_ADD
 
static const uint32_t DT_GEN5_FIFO_DataRegAddr [24] = NAI_DT_GEN5_REG_FIFO_DATA_ADD
 
static const uint32_t DT_GEN5_FIFO_CountRegAddr [24] = NAI_DT_GEN5_REG_COUNT_ADD
 
static const uint32_t DT_GEN5_FIFO_StatusRegAddr [24] = NAI_DT_GEN5_REG_FIFO_STATUS_ADD
 
static const uint32_t dt_24_reg_status [NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
 

Function Documentation

◆ GetChannelCount()

static int32_t GetChannelCount ( uint32_t modid)
static

◆ GetFIFOInfo_Legacy()

static nai_status_t GetFIFOInfo_Legacy ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t modid,
uint32_t * outcount,
nai_dt_fifo_status_t * outstatus )
static

◆ naibrd_DT_ClearGroupStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ClearGroupStatusRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_status_type_t type,
uint32_t rawdata )

Clears the status data value in the register associated to the group and status type specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
rawdata: (Input) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid status register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetBitStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetBitStatusRaw ( int32_t cardIndex,
int32_t module,
nai_dt_bit_status_type_t type,
uint32_t * p_outstatus )

Retrieves the BIT error trigger type for the specified channel and BIT status error trigger type, when BIT status has been set. A return of 1 indicates the BIT was a result of the queried trigger type (voltage measurement, or driver error).

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
type: (Input) Status Query Type: refer to nai_dt_bit_status_type_t definition.
p_outstatus: uint with contents of bit error type register
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_INVALID_VALUE when invalid status type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetChannelRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetChannelRaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dt_raw_channel_t type,
uint32_t * outrawdata )

Retrieves the raw data value in the register associated to the channel and register type specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Channel Register Type: refer to nai_dt_raw_channel_t type definition.
outrawdata: (Output) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter.
  • NAI_ERROR_INVALID_VALUE when invalid channel or channel type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dt_status_type_t type,
nai_dt_interrupt_t * p_outtriggerType )

Retrieves the Interrupt Edge/Level property for the specified Discrete channel and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
p_outtriggerType: (Output) Interrupt trigger type (NAI_DT_EDGE_INTERRUPT) or (NAI_DT_LEVEL_INTERRUPT).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetFIFOStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetFIFOStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t * outcount,
nai_dt_fifo_status_t * outstatus )

Retrieves the Discrete channel's FIFO Buffer Status.

   FIFO Buffer status applies to the following nai_dt_enhanced_mode_t modes where the FIFO is used to store
   the measurements:
         NAI_DT_MODE_MEASURE_HIGH_TIME           - High Time Measurement
         NAI_DT_MODE_MEASURE_LOW_TIME            - Low Time Measurement
         NAI_DT_MODE_TIMESTAMP_RISING_EDGES      - Rising Edges Timestamps
         NAI_DT_MODE_TIMESTAMP_FALLING_EDGES     - Falling Edges Timestamps
         NAI_DT_MODE_TIMESTAMP_ALL_EDGES         - All Edges Timestamps
         NAI_DT_MODE_MEASURE_FREQUENCY           - Frequency Measurement

  FIFO Buffer Status Definition:
  ------------------------------
  Data count bits 8 .. 0      0x01FF
  FIFO empty bit 9             0x0200
  FIFO full bit 10             0x0400
Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
outcount: (Output) number of elements in Discrete channel FIFO .
outstatus: (Output) FIFO Buffer Status.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetGroupInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupInterruptSteering ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_status_type_t type,
naibrd_int_steering_t * outsteering )

Retrieves the Interrupt Steering which indicates the interrupt direction for the specified Discrete group and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
outsteering: (Output) Interrupt Steering: refer to naibrd_int_steering_t definition.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetGroupInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupInterruptVector ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_status_type_t type,
uint32_t * outvector )

Retrieves the Interrupt Vector for the specified Discrete channel and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
outvector: (Output) Interrupt Vector.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetGroupRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_raw_group_t type,
uint32_t * outrawdata )

Retrieves the raw data value in the register associated to the group and register type specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Group Register Type: refer to nai_dt_raw_group_t definition.
outrawdata: (Output) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetGroupStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetGroupStatusRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_status_type_t type,
uint32_t * outrawdata )

Retrieves the raw status data value in the register associated to the group and status type specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
outrawdata: (Output) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid status register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_GetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dt_status_type_t type,
bool_t * outenable )

Retrieves the Interrupt Enable for the specified Discrete channel and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
outenable: (Output) 0 to disable, 1 to enable interrupt.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_ReadFIFORaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ReadFIFORaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t count,
uint32_t outdata[],
uint32_t * outread )

Retrieves the data elements from the Discrete channel's FIFO buffer.

   FIFO Buffer applies to the following nai_dt_enhanced_mode_t modes where the FIFO is used to store
   the measurements:
         NAI_DT_MODE_MEASURE_HIGH_TIME           - High Time Measurement
         NAI_DT_MODE_MEASURE_LOW_TIME            - Low Time Measurement
         NAI_DT_MODE_TIMESTAMP_RISING_EDGES      - Rising Edges Timestamps
         NAI_DT_MODE_TIMESTAMP_FALLING_EDGES     - Falling Edges Timestamps
         NAI_DT_MODE_TIMESTAMP_ALL_EDGES         - All Edges Timestamps
         NAI_DT_MODE_MEASURE_FREQUENCY           - Frequency Measurement
Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
count: (Input) Number of data elements to retrieve.
outdata[]: (Output) Array of 32-bit raw data.
outread:(Output) Number of data elements read from the Discrete channel's FIFO buffer.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_ReadFIFORawEx()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ReadFIFORawEx ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t count,
uint32_t timeout,
uint32_t outdata[],
uint32_t * outread,
uint32_t * countRemaining )

Retrieves the data elements from the Discrete channel's FIFO buffer.

FIFO Buffer applies to the following nai_dt_enhanced_mode_t modes where the FIFO is used to store
the measurements:
NAI_DT_MODE_MEASURE_HIGH_TIME           - High Time Measurement
NAI_DT_MODE_MEASURE_LOW_TIME            - Low Time Measurement
NAI_DT_MODE_TIMESTAMP_RISING_EDGES      - Rising Edges Timestamps
NAI_DT_MODE_TIMESTAMP_FALLING_EDGES     - Falling Edges Timestamps
NAI_DT_MODE_TIMESTAMP_ALL_EDGES         - All Edges Timestamps
NAI_DT_MODE_MEASURE_FREQUENCY           - Frequency Measurement
Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
count: (Input) Number of data elements to retrieve.
timeout: (Input) The amount of time, in milliseconds, to wait for the FIFO's count to reach count before timing out.
outdata: (Output) Array of 32-bit raw data.
outread:(Output) Number of data elements read from the Discrete channel's FIFO buffer.
countRemaining: (Output) The number of elements remaining in the FIFO.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetChannelRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetChannelRaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dt_raw_channel_t type,
uint32_t rawdata )

Sets the raw data value in the register associated to the channel and register type specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Channel Register Type: refer to nai_dt_raw_channel_t definition.
rawdata: (Input) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter.
  • NAI_ERROR_INVALID_VALUE when invalid channel or channel type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetEdgeLevelInterrupt()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetEdgeLevelInterrupt ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dt_status_type_t type,
nai_dt_interrupt_t triggerType )

Sets the Interrupt Edge/Level property for the specified Discrete channel and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
triggerType: (Input) Interrupt trigger type (NAI_DT_EDGE_INTERRUPT) or (NAI_DT_LEVEL_INTERRUPT).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetGroupInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetGroupInterruptSteering ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_status_type_t type,
naibrd_int_steering_t steering )

Sets the Interrupt Steering which indicates the interrupt direction for the specified Discrete group and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
steering: (Input) Interrupt Steering: refer to naibrd_int_steering_t definition.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetGroupInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetGroupInterruptVector ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_status_type_t type,
uint32_t vector )

Sets the Interrupt Vector for the specified Discrete channel and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
vector: (Input) Interrupt Vector.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetGroupRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetGroupRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_dt_raw_group_t type,
uint32_t rawdata )

Sets the raw data value in the register associated to the group and register type specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Group Register Type: refer to nai_dt_raw_group_t definition.
rawdata: (Input) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dt_status_type_t type,
bool_t enable )

Sets the Interrupt Enable for the specified Discrete channel and interrupt status type.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Status Type: refer to nai_dt_status_type_t definition.
enable: (Input) 0 to disable, 1 to enable interrupt.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_StartMeasurement()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_StartMeasurement ( int32_t cardIndex,
int32_t module,
int32_t channel )

Starts the Input Measurement for the specified Discrete channel.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module])
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ verify_channel()

static nai_status_t verify_channel ( uint32_t modid,
int32_t channel )
static

Variable Documentation

◆ dt_16_reg_io_format

const uint32_t dt_16_reg_io_format[2] = NAI_DT_GEN3_16_REG_INPUT_OUTPUT_FORMAT_ADD
static

◆ dt_16_reg_pwm_mode

const uint32_t dt_16_reg_pwm_mode[1] = { NAI_DT_GEN3_16_REG_PWM_MODE_ADD }
static

◆ dt_16_reg_status

const uint32_t* const dt_16_reg_status[NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
static const uint32_t dt_16_reg_status_hilo_trans_latched[1]
Definition naibrd_dt_legacy.c:19
static const uint32_t dt_16_reg_status_mid_range_fault_latched[1]
Definition naibrd_dt_legacy.c:17
static const uint32_t dt_16_reg_status_bit_latched[1]
Definition naibrd_dt_legacy.c:13
static const uint32_t dt_16_reg_status_lohi_trans_latched[1]
Definition naibrd_dt_legacy.c:18
static const uint32_t dt_16_reg_status_overcurrent_latched[1]
Definition naibrd_dt_legacy.c:14
static const uint32_t dt_16_reg_status_minlo_latched[1]
Definition naibrd_dt_legacy.c:16
static const uint32_t dt_16_reg_status_maxhi_latched[1]
Definition naibrd_dt_legacy.c:15

◆ dt_16_reg_status_bit_latched

const uint32_t dt_16_reg_status_bit_latched[1] = { NAI_DT_GEN3_16_REG_BIT_LATCHED_STATUS_ADD }
static

◆ dt_16_reg_status_hilo_trans_latched

const uint32_t dt_16_reg_status_hilo_trans_latched[1] = { NAI_DT_GEN3_16_REG_HI_LO_TRANS_LATCHED_STATUS_ADD }
static

◆ dt_16_reg_status_lohi_trans_latched

const uint32_t dt_16_reg_status_lohi_trans_latched[1] = { NAI_DT_GEN3_16_REG_LO_HI_TRANS_LATCHED_STATUS_ADD }
static

◆ dt_16_reg_status_maxhi_latched

const uint32_t dt_16_reg_status_maxhi_latched[1] = { NAI_DT_GEN3_16_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD }
static

◆ dt_16_reg_status_mid_range_fault_latched

const uint32_t dt_16_reg_status_mid_range_fault_latched[1] = { NAI_DT_GEN3_16_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD }
static

◆ dt_16_reg_status_minlo_latched

const uint32_t dt_16_reg_status_minlo_latched[1] = { NAI_DT_GEN3_16_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD }
static

◆ dt_16_reg_status_overcurrent_latched

const uint32_t dt_16_reg_status_overcurrent_latched[1] = { NAI_DT_GEN3_16_REG_OVERCURRENT_LATCHED_STATUS_ADD }
static

◆ dt_24_reg_status

const uint32_t dt_24_reg_status[NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NAI_DT_GEN5_REG_BIT_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_BIT_REALTIME_STATUS_ADD,
NAI_DT_GEN5_REG_OVERCURRENT_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_OVERCURRENT_REALTIME_STATUS_ADD,
NAI_DT_GEN5_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_MAX_HI_THRESHOLD_REALTIME_STATUS_ADD,
NAI_DT_GEN5_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_MIN_LOW_THRESHOLD_REALTIME_STATUS_ADD,
NAI_DT_GEN5_REG_MID_RANGE_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_MID_RANGE_REALTIME_STATUS_ADD,
NAI_DT_GEN5_REG_LO_HI_TRANS_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_LO_HI_TRANS_REALTIME_STATUS_ADD,
NAI_DT_GEN5_REG_HI_LO_TRANS_LATCHED_STATUS_ADD,
NAI_DT_GEN5_REG_HI_LO_TRANS_REALTIME_STATUS_ADD,
}

◆ dt_48_reg_status

const uint32_t* const dt_48_reg_status[NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
static const uint32_t dt_48_reg_status_mid_range_fault_latched[3]
Definition naibrd_dt_legacy.c:121
static const uint32_t dt_48_reg_status_lohi_trans_latched[3]
Definition naibrd_dt_legacy.c:122
static const uint32_t dt_48_reg_status_minlo_latched[3]
Definition naibrd_dt_legacy.c:120
static const uint32_t dt_48_reg_status_bit_latched[3]
Definition naibrd_dt_legacy.c:117
static const uint32_t dt_48_reg_status_overcurrent_latched[3]
Definition naibrd_dt_legacy.c:118
static const uint32_t dt_48_reg_status_maxhi_latched[3]
Definition naibrd_dt_legacy.c:119
static const uint32_t dt_48_reg_status_hilo_trans_latched[3]
Definition naibrd_dt_legacy.c:123

◆ dt_48_reg_status_bit_latched

const uint32_t dt_48_reg_status_bit_latched[3] = NAI_DT_GEN3_48_REG_BIT_LATCHED_STATUS_ADD
static

◆ dt_48_reg_status_hilo_trans_latched

const uint32_t dt_48_reg_status_hilo_trans_latched[3] = NAI_DT_GEN3_48_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
static

◆ dt_48_reg_status_lohi_trans_latched

const uint32_t dt_48_reg_status_lohi_trans_latched[3] = NAI_DT_GEN3_48_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
static

◆ dt_48_reg_status_maxhi_latched

const uint32_t dt_48_reg_status_maxhi_latched[3] = NAI_DT_GEN3_48_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_48_reg_status_mid_range_fault_latched

const uint32_t dt_48_reg_status_mid_range_fault_latched[3] = NAI_DT_GEN3_48_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
static

◆ dt_48_reg_status_minlo_latched

const uint32_t dt_48_reg_status_minlo_latched[3] = NAI_DT_GEN3_48_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_48_reg_status_overcurrent_latched

const uint32_t dt_48_reg_status_overcurrent_latched[3] = NAI_DT_GEN3_48_REG_OVERCURRENT_LATCHED_STATUS_ADD
static

◆ DT_CF1_GEN5_EnhancedModeSelectAddr

const uint32_t DT_CF1_GEN5_EnhancedModeSelectAddr[12] = NAI_CF1_GEN5_REG_MODE_SELECT_ADD
static

◆ DT_GEN5_EnhancedModeMappedPreRev10_2_Val

const uint32_t DT_GEN5_EnhancedModeMappedPreRev10_2_Val[] = NAI_DT_GEN5_MODE_MAPPED_PRE_REV10_2_VALUE
static

◆ DT_GEN5_EnhancedModeMappedVal

const uint32_t DT_GEN5_EnhancedModeMappedVal[] = NAI_DT_GEN5_MODE_MAPPED_VALUE
static

◆ DT_GEN5_EnhancedModeSelectAddr

const uint32_t DT_GEN5_EnhancedModeSelectAddr[24] = NAI_DT_GEN5_REG_MODE_SELECT_ADD
static

◆ DT_GEN5_EnhancedModeSelectPreRev10_2_Addr

const uint32_t DT_GEN5_EnhancedModeSelectPreRev10_2_Addr[24] = NAI_DT_GEN5_REG_MODE_SELECT_PRE_REV10_2_ADD
static

◆ DT_GEN5_FIFO_CountRegAddr

const uint32_t DT_GEN5_FIFO_CountRegAddr[24] = NAI_DT_GEN5_REG_COUNT_ADD
static

◆ DT_GEN5_FIFO_DataRegAddr

const uint32_t DT_GEN5_FIFO_DataRegAddr[24] = NAI_DT_GEN5_REG_FIFO_DATA_ADD
static

◆ DT_GEN5_FIFO_StatusRegAddr

const uint32_t DT_GEN5_FIFO_StatusRegAddr[24] = NAI_DT_GEN5_REG_FIFO_STATUS_ADD
static

◆ DT_GEN5_PWM_BurstCountRegPreRev10_2_Addr

const uint32_t DT_GEN5_PWM_BurstCountRegPreRev10_2_Addr[24] = NAI_DT_GEN5_REG_PWM_BURST_COUNT_PRE_REV10_2_ADD
static

◆ DT_GEN5_PWM_PeriodRegPreRev10_2_Addr

const uint32_t DT_GEN5_PWM_PeriodRegPreRev10_2_Addr[24] = NAI_DT_GEN5_REG_PWM_PERIOD_PRE_REV10_2_ADD
static

◆ DT_GEN5_PWM_PulseWidthRegPreRev10_2_Addr

const uint32_t DT_GEN5_PWM_PulseWidthRegPreRev10_2_Addr[24] = NAI_DT_GEN5_REG_PWM_PULSEWIDTH_PRE_REV10_2_ADD
static

◆ DT_GEN5_PWM_TriggerRegPreRev10_2_Addr

const uint32_t DT_GEN5_PWM_TriggerRegPreRev10_2_Addr[24] = NAI_DT_GEN5_REG_PWM_TRIGGER_PRE_REV10_2_ADD
static

◆ DT_GEN5_PWMMasterSelectRegAddr

const uint32_t DT_GEN5_PWMMasterSelectRegAddr[1] = { NAI_DT_GEN5_PWM_MASTER_SELECT_PRE_REV10_2_ADD }
static

◆ DT_GEN5_PWMPolarityRegAddr

const uint32_t DT_GEN5_PWMPolarityRegAddr[1] = { NAI_DT_GEN5_PWM_POLARITY_SELECT_ADD }
static

◆ DT_GEN5_PWMPolarityRegPreRev10_2_Addr

const uint32_t DT_GEN5_PWMPolarityRegPreRev10_2_Addr[1] = { NAI_DT_GEN5_PWM_POLARITY_SELECT_PRE_REV10_2_ADD }
static

◆ DT_GEN5_TimerResetRegPreRev10_2_Addr

const uint32_t DT_GEN5_TimerResetRegPreRev10_2_Addr[24] = NAI_DT_GEN5_REG_RESET_TIMER_ONLY_ADD
static

◆ dt_ka_reg_io_format

const uint32_t dt_ka_reg_io_format[1] = NAI_DT_GEN3_KA_REG_INPUT_OUTPUT_FORMAT_ADD
static

◆ dt_ka_reg_pwm_mode

const uint32_t dt_ka_reg_pwm_mode[1] = NAI_DT_GEN3_KA_REG_PWM_MODE_ADD
static

◆ dt_ka_reg_status

const uint32_t* const dt_ka_reg_status[NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
static const uint32_t dt_ka_reg_status_minlo_latched[2]
Definition naibrd_dt_legacy.c:71
static const uint32_t dt_ka_reg_status_hilo_trans_latched[2]
Definition naibrd_dt_legacy.c:74
static const uint32_t dt_ka_reg_status_bit_latched[2]
Definition naibrd_dt_legacy.c:68
static const uint32_t dt_ka_reg_status_overcurrent_latched[1]
Definition naibrd_dt_legacy.c:69
static const uint32_t dt_ka_reg_status_mid_range_fault_latched[2]
Definition naibrd_dt_legacy.c:72
static const uint32_t dt_ka_reg_status_maxhi_latched[2]
Definition naibrd_dt_legacy.c:70
static const uint32_t dt_ka_reg_status_lohi_trans_latched[2]
Definition naibrd_dt_legacy.c:73

◆ dt_ka_reg_status_bit_latched

const uint32_t dt_ka_reg_status_bit_latched[2] = NAI_DT_GEN3_KA_REG_BIT_LATCHED_STATUS_ADD
static

◆ dt_ka_reg_status_hilo_trans_latched

const uint32_t dt_ka_reg_status_hilo_trans_latched[2] = NAI_DT_GEN3_KA_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
static

◆ dt_ka_reg_status_lohi_trans_latched

const uint32_t dt_ka_reg_status_lohi_trans_latched[2] = NAI_DT_GEN3_KA_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
static

◆ dt_ka_reg_status_maxhi_latched

const uint32_t dt_ka_reg_status_maxhi_latched[2] = NAI_DT_GEN3_KA_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_ka_reg_status_mid_range_fault_latched

const uint32_t dt_ka_reg_status_mid_range_fault_latched[2] = NAI_DT_GEN3_KA_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
static

◆ dt_ka_reg_status_minlo_latched

const uint32_t dt_ka_reg_status_minlo_latched[2] = NAI_DT_GEN3_KA_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_ka_reg_status_overcurrent_latched

const uint32_t dt_ka_reg_status_overcurrent_latched[1] = NAI_DT_GEN3_KA_REG_OVERCURRENT_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status

const uint32_t* const dt_kb_reg_status[NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
static const uint32_t dt_kb_reg_status_bit_latched[2]
Definition naibrd_dt_legacy.c:38
static const uint32_t dt_kb_reg_status_overcurrent_latched[2]
Definition naibrd_dt_legacy.c:39
static const uint32_t dt_kb_reg_status_minlo_latched[2]
Definition naibrd_dt_legacy.c:42
static const uint32_t dt_kb_reg_status_hilo_trans_latched[2]
Definition naibrd_dt_legacy.c:44
static const uint32_t dt_kb_reg_status_lohi_trans_latched[2]
Definition naibrd_dt_legacy.c:43
static const uint32_t dt_kb_reg_status_midrange_latched[2]
Definition naibrd_dt_legacy.c:41
static const uint32_t dt_kb_reg_status_maxhi_latched[2]
Definition naibrd_dt_legacy.c:40

◆ dt_kb_reg_status_bit_latched

const uint32_t dt_kb_reg_status_bit_latched[2] = NAI_DT_GEN3_KB_REG_BIT_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status_hilo_trans_latched

const uint32_t dt_kb_reg_status_hilo_trans_latched[2] = NAI_DT_GEN3_KB_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status_lohi_trans_latched

const uint32_t dt_kb_reg_status_lohi_trans_latched[2] = NAI_DT_GEN3_KB_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status_maxhi_latched

const uint32_t dt_kb_reg_status_maxhi_latched[2] = NAI_DT_GEN3_KB_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status_midrange_latched

const uint32_t dt_kb_reg_status_midrange_latched[2] = NAI_DT_GEN3_KB_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status_minlo_latched

const uint32_t dt_kb_reg_status_minlo_latched[2] = NAI_DT_GEN3_KB_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_kb_reg_status_overcurrent_latched

const uint32_t dt_kb_reg_status_overcurrent_latched[2] = NAI_DT_GEN3_KB_REG_OVERCURRENT_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status

const uint32_t* const dt_pd_reg_status[NAIBRD_DT_STATUS_TYPE_ENUM_COUNT]
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
static const uint32_t dt_pd_reg_status_overcurrent_latched[2]
Definition naibrd_dt_legacy.c:94
static const uint32_t dt_pd_reg_status_minlo_latched[2]
Definition naibrd_dt_legacy.c:97
static const uint32_t dt_pd_reg_status_maxhi_latched[2]
Definition naibrd_dt_legacy.c:95
static const uint32_t dt_pd_reg_status_midrange_latched[2]
Definition naibrd_dt_legacy.c:96
static const uint32_t dt_pd_reg_status_bit_latched[2]
Definition naibrd_dt_legacy.c:93
static const uint32_t dt_pd_reg_status_hilo_trans_latched[2]
Definition naibrd_dt_legacy.c:99
static const uint32_t dt_pd_reg_status_lohi_trans_latched[2]
Definition naibrd_dt_legacy.c:98

◆ dt_pd_reg_status_bit_latched

const uint32_t dt_pd_reg_status_bit_latched[2] = NAI_DT_GEN3_PD_REG_BIT_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status_hilo_trans_latched

const uint32_t dt_pd_reg_status_hilo_trans_latched[2] = NAI_DT_GEN3_PD_REG_HI_LO_TRANS_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status_lohi_trans_latched

const uint32_t dt_pd_reg_status_lohi_trans_latched[2] = NAI_DT_GEN3_PD_REG_LO_HI_TRANS_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status_maxhi_latched

const uint32_t dt_pd_reg_status_maxhi_latched[2] = NAI_DT_GEN3_PD_REG_MAX_HI_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status_midrange_latched

const uint32_t dt_pd_reg_status_midrange_latched[2] = NAI_DT_GEN3_PD_REG_MID_RANGE_FAULT_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status_minlo_latched

const uint32_t dt_pd_reg_status_minlo_latched[2] = NAI_DT_GEN3_PD_REG_MIN_LOW_THRESHOLD_LATCHED_STATUS_ADD
static

◆ dt_pd_reg_status_overcurrent_latched

const uint32_t dt_pd_reg_status_overcurrent_latched[2] = NAI_DT_GEN3_PD_REG_OVERCURRENT_LATCHED_STATUS_ADD
static