Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
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] |
|
static |
|
static |
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.
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. |
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).
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 |
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.
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. |
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.
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). |
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
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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
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. |
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
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. |
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.
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. |
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.
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). |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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]) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |