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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_status_type_t type, nai_status_bit_t *p_outstatusBit)
 Retrieves the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status for the specified SG channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_status_type_t type)
 Clears the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status for the specified SG channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_status_type_t type, bool_t enable)
 Sets the bit corresponding to the specified SG Channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Interrupt Enable register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_status_type_t type, bool_t *p_outenable)
 Retrieves the bit corresponding to the specified SG Channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Interrupt Enable register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetInterruptVector (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t vector)
 This function will set the vector for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetInterruptVector (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t *p_outvector)
 This function will read the vector for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_status_type_t type, nai_sg_edgelevel_t edgelevel)
 Sets the bit corresponding to the specified SG channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 edge/level interrupt register. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_status_type_t type, nai_sg_edgelevel_t *p_outedgelevel)
 Retrieves the bit corresponding to the specified SG channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 edge/level interrupt register. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetInterruptSteering (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, naibrd_int_steering_t steering)
 This function will set the interrupt steering, which indicates the interrupt direction, for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetInterruptSteering (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, naibrd_int_steering_t *p_outsteering)
 This function retrieves the interrupt steering, which indicates the interrupt direction, for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt. This function only applies to modules that are Generation 5 or later.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetStatusRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t *p_outrawdata)
 Retrieves the raw status data value from the register associated with the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ClearStatusRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t rawdata)
 Clears the bits set in the rawdata parameter in the status register associated with the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetIntEnableRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t rawdata)
 Sets the raw interrupt enable data value in the register associated with the status type specified. The interrupt enable registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetIntEnableRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t *p_outrawdata)
 Retrieves the raw interrupt enable data value from the register associated with the status type specified. The interrupt enable registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.