Software Library API naibrd 1.62
See all documentation at naii.docs.com
naibrd_ad.h File Reference

Go to the source code of this file.

Typedefs

typedef uint32_t nai_ad_raw_t
 
typedef uint32_t nai_ad_channel_raw_t
 
typedef uint32_t nai_ad_status_type_t
 
typedef int32_t nai_ad_reset_type_t
 
typedef uint32_t nai_ad_test_type_t
 
typedef uint32_t nai_ad_fifo_status_type_t
 
typedef uint32_t nai_ad_threshold_detect_id_type_t
 
typedef uint32_t nai_ad_saturation_control_type_t
 
typedef uint32_t nai_ad_cal_type_t
 

Enumerations

enum  nai_ad_raw {
  NAI_AD_RAW_CLK_RATE_ADDER_LO , NAI_AD_RAW_CLK_RATE_ADDER_HI , NAI_AD_RAW_TEST_ENABLE , NAI_AD_RAW_D0_RANGE_POLARITY ,
  NAI_AD_RAW_D0_TEST_VALUE , NAI_AD_RAW_MODE , NAI_AD_RAW_ACTIVE_CHANNELS , NAI_AD_RAW_BIT_INTRPT_ENABLE ,
  NAI_AD_RAW_OPEN_INTRPT_ENABLE , NAI_AD_RAW_OVER_CURRENT_INTRPT_ENABLE , NAI_AD_RAW_POWER_ENABLE , NAI_AD_RAW_THRESHOLD_INTRPT_ENABLE ,
  NAI_AD_RAW_THRESHOLD_CONTROL , NAI_AD_RAW_FAF_INTRPT_ENABLE , NAI_AD_RAW_SATURATION_INTRPT_ENABLE , NAI_AD_RAW_INTER_FPGA_FAULT_INTRPT_ENABLE ,
  NAI_AD_RAW_ENUM_COUNT
}
 
enum  nai_ad_channel_raw {
  NAI_AD_CHAN_RAW_RANGE , NAI_AD_CHAN_RAW_DATA , NAI_AD_CHAN_BREAK_FREQ , NAI_AD_CHAN_THRESHOLD1 ,
  NAI_AD_CHAN_THRESHOLD_CONTROL1 , NAI_AD_CHAN_THRESHOLD2 , NAI_AD_CHAN_THRESHOLD_CONTROL2 , NAI_AD_CHAN_THRESHOLD_HYSTERESIS1 ,
  NAI_AD_CHAN_THRESHOLD_HYSTERESIS2 , NAI_AD_CHAN_SATURATION_LOW , NAI_AD_CHAN_SATURATION_HIGH , NAI_AD_CHAN_RAW_RMS ,
  NAI_AD_CHAN_RAW_ENUM_COUNT
}
 
enum  nai_ad_status_type {
  NAI_AD_STATUS_BIT_LATCHED , NAI_AD_STATUS_BIT_REALTIME , NAI_AD_STATUS_OPEN_LATCHED , NAI_AD_STATUS_OPEN_OVERVOLT_LATCHED = NAI_AD_STATUS_OPEN_LATCHED ,
  NAI_AD_STATUS_OPEN_REALTIME , NAI_AD_STATUS_OPEN_OVERVOLT_REALTIME = NAI_AD_STATUS_OPEN_REALTIME , NAI_AD_STATUS_OVERCURRENT_LATCHED , NAI_AD_STATUS_OVERCURRENT_REALTIME ,
  NAI_AD_STATUS_THRESHOLD1_LATCHED , NAI_AD_STATUS_THRESHOLD1_REALTIME , NAI_AD_STATUS_THRESHOLD2_LATCHED , NAI_AD_STATUS_THRESHOLD2_REALTIME ,
  NAI_AD_STATUS_FAF_LATCHED , NAI_AD_STATUS_FAF_REALTIME , NAI_AD_STATUS_SATURATION_LOW_LATCHED , NAI_AD_STATUS_SATURATION_LOW_REALTIME ,
  NAI_AD_STATUS_SATURATION_HIGH_LATCHED , NAI_AD_STATUS_SATURATION_HIGH_REALTIME , NAI_AD_STATUS_INTER_FPGA_FAULT_LATCHED , NAI_AD_STATUS_INTER_FPGA_FAULT_REALTIME ,
  NAI_AD_STATUS_SUMMARY_LATCHED , NAI_AD_STATUS_SUMMARY_REALTIME , NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_POSITIVE_LATCHED , NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_POSITIVE_REALTIME ,
  NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_NEGATIVE_LATCHED , NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_NEGATIVE_REALTIME , NAI_AD_STATUS_TYPE_ENUM_COUNT
}
 
enum  nai_ad_reset_type { NAI_AD_RESET_OVERCURRENT , NAI_AD_RESET_TYPE_ENUM_COUNT }
 
enum  nai_ad_test_type { NAI_AD_D0_TEST , NAI_AD_D2_TEST , NAI_AD_D3_TEST , NAI_AD_TEST_TYPE_ENUM_COUNT }
 
enum  nai_ad_fifo_status_type { NAI_AD_FIFO_STATUS_LATCHED , NAI_AD_FIFO_STATUS_REALTIME }
 
enum  nai_ad_threshold_detect_id_type { NAI_AD_THRESHOLD_DETECT_ID1 , NAI_AD_THRESHOLD_DETECT_ID2 }
 
enum  nai_ad_saturation_control_type { NAI_AD_SATURATION_CONTROL_LOW = 0x00000001 , NAI_AD_SATURATION_CONTROL_HIGH = 0x00000002 }
 
enum  nai_ad_cal_type {
  NAI_AD_CALCHAN , NAI_AD_PROBE2 , NAI_AD_PROBE3 , NAI_AD_CAL_RANGE ,
  NAI_AD_CAL_RESULT_LOW_VALUE , NAI_AD_CAL_RESULT_HI_VALUE , NAI_AD_CALSTATE , NAI_AD_CAL_ENUM_COUNT
}
 

Typedef Documentation

◆ nai_ad_cal_type_t

◆ nai_ad_channel_raw_t

◆ nai_ad_fifo_status_type_t

◆ nai_ad_raw_t

typedef uint32_t nai_ad_raw_t

◆ nai_ad_reset_type_t

◆ nai_ad_saturation_control_type_t

◆ nai_ad_status_type_t

◆ nai_ad_test_type_t

◆ nai_ad_threshold_detect_id_type_t

Enumeration Type Documentation

◆ nai_ad_cal_type

Enumerator
NAI_AD_CALCHAN 
NAI_AD_PROBE2 
NAI_AD_PROBE3 
NAI_AD_CAL_RANGE 
NAI_AD_CAL_RESULT_LOW_VALUE 
NAI_AD_CAL_RESULT_HI_VALUE 
NAI_AD_CALSTATE 
NAI_AD_CAL_ENUM_COUNT 

◆ nai_ad_channel_raw

Enumerator
NAI_AD_CHAN_RAW_RANGE 
NAI_AD_CHAN_RAW_DATA 
NAI_AD_CHAN_BREAK_FREQ 
NAI_AD_CHAN_THRESHOLD1 
NAI_AD_CHAN_THRESHOLD_CONTROL1 
NAI_AD_CHAN_THRESHOLD2 
NAI_AD_CHAN_THRESHOLD_CONTROL2 
NAI_AD_CHAN_THRESHOLD_HYSTERESIS1 
NAI_AD_CHAN_THRESHOLD_HYSTERESIS2 
NAI_AD_CHAN_SATURATION_LOW 
NAI_AD_CHAN_SATURATION_HIGH 
NAI_AD_CHAN_RAW_RMS 
NAI_AD_CHAN_RAW_ENUM_COUNT 

◆ nai_ad_fifo_status_type

Enumerator
NAI_AD_FIFO_STATUS_LATCHED 
NAI_AD_FIFO_STATUS_REALTIME 

◆ nai_ad_raw

enum nai_ad_raw
Enumerator
NAI_AD_RAW_CLK_RATE_ADDER_LO 
NAI_AD_RAW_CLK_RATE_ADDER_HI 
NAI_AD_RAW_TEST_ENABLE 
NAI_AD_RAW_D0_RANGE_POLARITY 
NAI_AD_RAW_D0_TEST_VALUE 
NAI_AD_RAW_MODE 
NAI_AD_RAW_ACTIVE_CHANNELS 
NAI_AD_RAW_BIT_INTRPT_ENABLE 
NAI_AD_RAW_OPEN_INTRPT_ENABLE 
NAI_AD_RAW_OVER_CURRENT_INTRPT_ENABLE 
NAI_AD_RAW_POWER_ENABLE 
NAI_AD_RAW_THRESHOLD_INTRPT_ENABLE 
NAI_AD_RAW_THRESHOLD_CONTROL 
NAI_AD_RAW_FAF_INTRPT_ENABLE 
NAI_AD_RAW_SATURATION_INTRPT_ENABLE 
NAI_AD_RAW_INTER_FPGA_FAULT_INTRPT_ENABLE 
NAI_AD_RAW_ENUM_COUNT 

◆ nai_ad_reset_type

Enumerator
NAI_AD_RESET_OVERCURRENT 
NAI_AD_RESET_TYPE_ENUM_COUNT 

◆ nai_ad_saturation_control_type

Enumerator
NAI_AD_SATURATION_CONTROL_LOW 
NAI_AD_SATURATION_CONTROL_HIGH 

◆ nai_ad_status_type

Enumerator
NAI_AD_STATUS_BIT_LATCHED 
NAI_AD_STATUS_BIT_REALTIME 
NAI_AD_STATUS_OPEN_LATCHED 
NAI_AD_STATUS_OPEN_OVERVOLT_LATCHED 
NAI_AD_STATUS_OPEN_REALTIME 
NAI_AD_STATUS_OPEN_OVERVOLT_REALTIME 
NAI_AD_STATUS_OVERCURRENT_LATCHED 
NAI_AD_STATUS_OVERCURRENT_REALTIME 
NAI_AD_STATUS_THRESHOLD1_LATCHED 
NAI_AD_STATUS_THRESHOLD1_REALTIME 
NAI_AD_STATUS_THRESHOLD2_LATCHED 
NAI_AD_STATUS_THRESHOLD2_REALTIME 
NAI_AD_STATUS_FAF_LATCHED 
NAI_AD_STATUS_FAF_REALTIME 
NAI_AD_STATUS_SATURATION_LOW_LATCHED 
NAI_AD_STATUS_SATURATION_LOW_REALTIME 
NAI_AD_STATUS_SATURATION_HIGH_LATCHED 
NAI_AD_STATUS_SATURATION_HIGH_REALTIME 
NAI_AD_STATUS_INTER_FPGA_FAULT_LATCHED 
NAI_AD_STATUS_INTER_FPGA_FAULT_REALTIME 
NAI_AD_STATUS_SUMMARY_LATCHED 
NAI_AD_STATUS_SUMMARY_REALTIME 
NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_POSITIVE_LATCHED 
NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_POSITIVE_REALTIME 
NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_NEGATIVE_LATCHED 
NAI_AD_STATUS_EXTERNAL_POWER_LOSS_12V_NEGATIVE_REALTIME 
NAI_AD_STATUS_TYPE_ENUM_COUNT 

◆ nai_ad_test_type

Enumerator
NAI_AD_D0_TEST 
NAI_AD_D2_TEST 
NAI_AD_D3_TEST 
NAI_AD_TEST_TYPE_ENUM_COUNT 

◆ nai_ad_threshold_detect_id_type

Enumerator
NAI_AD_THRESHOLD_DETECT_ID1 
NAI_AD_THRESHOLD_DETECT_ID2