Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
ni_stc.h File Reference
#include "ni_tio.h"

Go to the source code of this file.

Data Structures

struct  ni_board_struct
 

Macros

#define _bit15   0x8000
 
#define _bit14   0x4000
 
#define _bit13   0x2000
 
#define _bit12   0x1000
 
#define _bit11   0x0800
 
#define _bit10   0x0400
 
#define _bit9   0x0200
 
#define _bit8   0x0100
 
#define _bit7   0x0080
 
#define _bit6   0x0040
 
#define _bit5   0x0020
 
#define _bit4   0x0010
 
#define _bit3   0x0008
 
#define _bit2   0x0004
 
#define _bit1   0x0002
 
#define _bit0   0x0001
 
#define NUM_PFI_OUTPUT_SELECT_REGS   6
 
#define Interrupt_A_Ack_Register   2
 
#define G0_Gate_Interrupt_Ack   _bit15
 
#define G0_TC_Interrupt_Ack   _bit14
 
#define AI_Error_Interrupt_Ack   _bit13
 
#define AI_STOP_Interrupt_Ack   _bit12
 
#define AI_START_Interrupt_Ack   _bit11
 
#define AI_START2_Interrupt_Ack   _bit10
 
#define AI_START1_Interrupt_Ack   _bit9
 
#define AI_SC_TC_Interrupt_Ack   _bit8
 
#define AI_SC_TC_Error_Confirm   _bit7
 
#define G0_TC_Error_Confirm   _bit6
 
#define G0_Gate_Error_Confirm   _bit5
 
#define AI_Status_1_Register   2
 
#define Interrupt_A_St   0x8000
 
#define AI_FIFO_Full_St   0x4000
 
#define AI_FIFO_Half_Full_St   0x2000
 
#define AI_FIFO_Empty_St   0x1000
 
#define AI_Overrun_St   0x0800
 
#define AI_Overflow_St   0x0400
 
#define AI_SC_TC_Error_St   0x0200
 
#define AI_START2_St   0x0100
 
#define AI_START1_St   0x0080
 
#define AI_SC_TC_St   0x0040
 
#define AI_START_St   0x0020
 
#define AI_STOP_St   0x0010
 
#define G0_TC_St   0x0008
 
#define G0_Gate_Interrupt_St   0x0004
 
#define AI_FIFO_Request_St   0x0002
 
#define Pass_Thru_0_Interrupt_St   0x0001
 
#define AI_Status_2_Register   5
 
#define Interrupt_B_Ack_Register   3
 
#define AO_Status_1_Register   3
 
#define Interrupt_B_St   _bit15
 
#define AO_FIFO_Full_St   _bit14
 
#define AO_FIFO_Half_Full_St   _bit13
 
#define AO_FIFO_Empty_St   _bit12
 
#define AO_BC_TC_Error_St   _bit11
 
#define AO_START_St   _bit10
 
#define AO_Overrun_St   _bit9
 
#define AO_START1_St   _bit8
 
#define AO_BC_TC_St   _bit7
 
#define AO_UC_TC_St   _bit6
 
#define AO_UPDATE_St   _bit5
 
#define AO_UI2_TC_St   _bit4
 
#define G1_TC_St   _bit3
 
#define G1_Gate_Interrupt_St   _bit2
 
#define AO_FIFO_Request_St   _bit1
 
#define Pass_Thru_1_Interrupt_St   _bit0
 
#define AI_Command_2_Register   4
 
#define AI_End_On_SC_TC   _bit15
 
#define AI_End_On_End_Of_Scan   _bit14
 
#define AI_START1_Disable   _bit11
 
#define AI_SC_Save_Trace   _bit10
 
#define AI_SI_Switch_Load_On_SC_TC   _bit9
 
#define AI_SI_Switch_Load_On_STOP   _bit8
 
#define AI_SI_Switch_Load_On_TC   _bit7
 
#define AI_SC_Switch_Load_On_TC   _bit4
 
#define AI_STOP_Pulse   _bit3
 
#define AI_START_Pulse   _bit2
 
#define AI_START2_Pulse   _bit1
 
#define AI_START1_Pulse   _bit0
 
#define AO_Command_2_Register   5
 
#define AO_End_On_BC_TC(x)   (((x) & 0x3) << 14)
 
#define AO_Start_Stop_Gate_Enable   _bit13
 
#define AO_UC_Save_Trace   _bit12
 
#define AO_BC_Gate_Enable   _bit11
 
#define AO_BC_Save_Trace   _bit10
 
#define AO_UI_Switch_Load_On_BC_TC   _bit9
 
#define AO_UI_Switch_Load_On_Stop   _bit8
 
#define AO_UI_Switch_Load_On_TC   _bit7
 
#define AO_UC_Switch_Load_On_BC_TC   _bit6
 
#define AO_UC_Switch_Load_On_TC   _bit5
 
#define AO_BC_Switch_Load_On_TC   _bit4
 
#define AO_Mute_B   _bit3
 
#define AO_Mute_A   _bit2
 
#define AO_UPDATE2_Pulse   _bit1
 
#define AO_START1_Pulse   _bit0
 
#define AO_Status_2_Register   6
 
#define DIO_Parallel_Input_Register   7
 
#define AI_Command_1_Register   8
 
#define AI_Analog_Trigger_Reset   _bit14
 
#define AI_Disarm   _bit13
 
#define AI_SI2_Arm   _bit12
 
#define AI_SI2_Load   _bit11
 
#define AI_SI_Arm   _bit10
 
#define AI_SI_Load   _bit9
 
#define AI_DIV_Arm   _bit8
 
#define AI_DIV_Load   _bit7
 
#define AI_SC_Arm   _bit6
 
#define AI_SC_Load   _bit5
 
#define AI_SCAN_IN_PROG_Pulse   _bit4
 
#define AI_EXTMUX_CLK_Pulse   _bit3
 
#define AI_LOCALMUX_CLK_Pulse   _bit2
 
#define AI_SC_TC_Pulse   _bit1
 
#define AI_CONVERT_Pulse   _bit0
 
#define AO_Command_1_Register   9
 
#define AO_Analog_Trigger_Reset   _bit15
 
#define AO_START_Pulse   _bit14
 
#define AO_Disarm   _bit13
 
#define AO_UI2_Arm_Disarm   _bit12
 
#define AO_UI2_Load   _bit11
 
#define AO_UI_Arm   _bit10
 
#define AO_UI_Load   _bit9
 
#define AO_UC_Arm   _bit8
 
#define AO_UC_Load   _bit7
 
#define AO_BC_Arm   _bit6
 
#define AO_BC_Load   _bit5
 
#define AO_DAC1_Update_Mode   _bit4
 
#define AO_LDAC1_Source_Select   _bit3
 
#define AO_DAC0_Update_Mode   _bit2
 
#define AO_LDAC0_Source_Select   _bit1
 
#define AO_UPDATE_Pulse   _bit0
 
#define DIO_Output_Register   10
 
#define DIO_Parallel_Data_Out(a)   ((a)&0xff)
 
#define DIO_Parallel_Data_Mask   0xff
 
#define DIO_SDOUT   _bit0
 
#define DIO_SDIN   _bit4
 
#define DIO_Serial_Data_Out(a)   (((a)&0xff)<<8)
 
#define DIO_Serial_Data_Mask   0xff00
 
#define DIO_Control_Register   11
 
#define DIO_Software_Serial_Control   _bit11
 
#define DIO_HW_Serial_Timebase   _bit10
 
#define DIO_HW_Serial_Enable   _bit9
 
#define DIO_HW_Serial_Start   _bit8
 
#define DIO_Pins_Dir(a)   ((a)&0xff)
 
#define DIO_Pins_Dir_Mask   0xff
 
#define AI_Mode_1_Register   12
 
#define AI_CONVERT_Source_Select(a)   (((a) & 0x1f) << 11)
 
#define AI_SI_Source_select(a)   (((a) & 0x1f) << 6)
 
#define AI_CONVERT_Source_Polarity   _bit5
 
#define AI_SI_Source_Polarity   _bit4
 
#define AI_Start_Stop   _bit3
 
#define AI_Mode_1_Reserved   _bit2
 
#define AI_Continuous   _bit1
 
#define AI_Trigger_Once   _bit0
 
#define AI_Mode_2_Register   13
 
#define AI_SC_Gate_Enable   _bit15
 
#define AI_Start_Stop_Gate_Enable   _bit14
 
#define AI_Pre_Trigger   _bit13
 
#define AI_External_MUX_Present   _bit12
 
#define AI_SI2_Initial_Load_Source   _bit9
 
#define AI_SI2_Reload_Mode   _bit8
 
#define AI_SI_Initial_Load_Source   _bit7
 
#define AI_SI_Reload_Mode(a)   (((a) & 0x7)<<4)
 
#define AI_SI_Write_Switch   _bit3
 
#define AI_SC_Initial_Load_Source   _bit2
 
#define AI_SC_Reload_Mode   _bit1
 
#define AI_SC_Write_Switch   _bit0
 
#define AI_SI_Load_A_Registers   14
 
#define AI_SI_Load_B_Registers   16
 
#define AI_SC_Load_A_Registers   18
 
#define AI_SC_Load_B_Registers   20
 
#define AI_SI_Save_Registers   64
 
#define AI_SC_Save_Registers   66
 
#define AI_SI2_Load_A_Register   23
 
#define AI_SI2_Load_B_Register   25
 
#define Joint_Status_1_Register   27
 
#define DIO_Serial_IO_In_Progress_St   _bit12
 
#define DIO_Serial_Input_Register   28
 
#define Joint_Status_2_Register   29
 
#define AO_Mode_1_Register   38
 
#define AO_UPDATE_Source_Select(x)   (((x)&0x1f)<<11)
 
#define AO_UI_Source_Select(x)   (((x)&0x1f)<<6)
 
#define AO_Multiple_Channels   _bit5
 
#define AO_UPDATE_Source_Polarity   _bit4
 
#define AO_UI_Source_Polarity   _bit3
 
#define AO_UC_Switch_Load_Every_TC   _bit2
 
#define AO_Continuous   _bit1
 
#define AO_Trigger_Once   _bit0
 
#define AO_Mode_2_Register   39
 
#define AO_FIFO_Mode_Mask   (0x3 << 14)
 
#define AO_FIFO_Retransmit_Enable   _bit13
 
#define AO_START1_Disable   _bit12
 
#define AO_UC_Initial_Load_Source   _bit11
 
#define AO_UC_Write_Switch   _bit10
 
#define AO_UI2_Initial_Load_Source   _bit9
 
#define AO_UI2_Reload_Mode   _bit8
 
#define AO_UI_Initial_Load_Source   _bit7
 
#define AO_UI_Reload_Mode(x)   (((x) & 0x7) << 4)
 
#define AO_UI_Write_Switch   _bit3
 
#define AO_BC_Initial_Load_Source   _bit2
 
#define AO_BC_Reload_Mode   _bit1
 
#define AO_BC_Write_Switch   _bit0
 
#define AO_UI_Load_A_Register   40
 
#define AO_UI_Load_A_Register_High   40
 
#define AO_UI_Load_A_Register_Low   41
 
#define AO_UI_Load_B_Register   42
 
#define AO_UI_Save_Registers   16
 
#define AO_BC_Load_A_Register   44
 
#define AO_BC_Load_A_Register_High   44
 
#define AO_BC_Load_A_Register_Low   45
 
#define AO_BC_Load_B_Register   46
 
#define AO_BC_Load_B_Register_High   46
 
#define AO_BC_Load_B_Register_Low   47
 
#define AO_BC_Save_Registers   18
 
#define AO_UC_Load_A_Register   48
 
#define AO_UC_Load_A_Register_High   48
 
#define AO_UC_Load_A_Register_Low   49
 
#define AO_UC_Load_B_Register   50
 
#define AO_UC_Save_Registers   20
 
#define Clock_and_FOUT_Register   56
 
#define IO_Bidirection_Pin_Register   57
 
#define RTSI_Trig_Direction_Register   58
 
#define Interrupt_Control_Register   59
 
#define Interrupt_B_Enable   _bit15
 
#define Interrupt_B_Output_Select(x)   ((x)<<12)
 
#define Interrupt_A_Enable   _bit11
 
#define Interrupt_A_Output_Select(x)   ((x)<<8)
 
#define Pass_Thru_0_Interrupt_Polarity   _bit3
 
#define Pass_Thru_1_Interrupt_Polarity   _bit2
 
#define Interrupt_Output_On_3_Pins   _bit1
 
#define Interrupt_Output_Polarity   _bit0
 
#define AI_Output_Control_Register   60
 
#define AI_START_Output_Select   _bit10
 
#define AI_SCAN_IN_PROG_Output_Select(x)   (((x) & 0x3) << 8)
 
#define AI_EXTMUX_CLK_Output_Select(x)   (((x) & 0x3) << 6)
 
#define AI_LOCALMUX_CLK_Output_Select(x)   ((x)<<4)
 
#define AI_SC_TC_Output_Select(x)   ((x)<<2)
 
#define AI_START_STOP_Select_Register   62
 
#define AI_START_Polarity   _bit15
 
#define AI_STOP_Polarity   _bit14
 
#define AI_STOP_Sync   _bit13
 
#define AI_STOP_Edge   _bit12
 
#define AI_STOP_Select(a)   (((a) & 0x1f)<<7)
 
#define AI_START_Sync   _bit6
 
#define AI_START_Edge   _bit5
 
#define AI_START_Select(a)   ((a) & 0x1f)
 
#define AI_Trigger_Select_Register   63
 
#define AI_START1_Polarity   _bit15
 
#define AI_START2_Polarity   _bit14
 
#define AI_START2_Sync   _bit13
 
#define AI_START2_Edge   _bit12
 
#define AI_START2_Select(a)   (((a) & 0x1f) << 7)
 
#define AI_START1_Sync   _bit6
 
#define AI_START1_Edge   _bit5
 
#define AI_START1_Select(a)   ((a) & 0x1f)
 
#define AI_DIV_Load_A_Register   64
 
#define AO_Start_Select_Register   66
 
#define AO_UI2_Software_Gate   _bit15
 
#define AO_UI2_External_Gate_Polarity   _bit14
 
#define AO_START_Polarity   _bit13
 
#define AO_AOFREQ_Enable   _bit12
 
#define AO_UI2_External_Gate_Select(a)   (((a) & 0x1f) << 7)
 
#define AO_START_Sync   _bit6
 
#define AO_START_Edge   _bit5
 
#define AO_START_Select(a)   ((a) & 0x1f)
 
#define AO_Trigger_Select_Register   67
 
#define AO_UI2_External_Gate_Enable   _bit15
 
#define AO_Delayed_START1   _bit14
 
#define AO_START1_Polarity   _bit13
 
#define AO_UI2_Source_Polarity   _bit12
 
#define AO_UI2_Source_Select(x)   (((x)&0x1f)<<7)
 
#define AO_START1_Sync   _bit6
 
#define AO_START1_Edge   _bit5
 
#define AO_START1_Select(x)   (((x)&0x1f)<<0)
 
#define AO_Mode_3_Register   70
 
#define AO_UI2_Switch_Load_Next_TC   _bit13
 
#define AO_UC_Switch_Load_Every_BC_TC   _bit12
 
#define AO_Trigger_Length   _bit11
 
#define AO_Stop_On_Overrun_Error   _bit5
 
#define AO_Stop_On_BC_TC_Trigger_Error   _bit4
 
#define AO_Stop_On_BC_TC_Error   _bit3
 
#define AO_Not_An_UPDATE   _bit2
 
#define AO_Software_Gate   _bit1
 
#define AO_Last_Gate_Disable   _bit0 /* M Series only */
 
#define Joint_Reset_Register   72
 
#define Software_Reset   _bit11
 
#define AO_Configuration_End   _bit9
 
#define AI_Configuration_End   _bit8
 
#define AO_Configuration_Start   _bit5
 
#define AI_Configuration_Start   _bit4
 
#define G1_Reset   _bit3
 
#define G0_Reset   _bit2
 
#define AO_Reset   _bit1
 
#define AI_Reset   _bit0
 
#define Interrupt_A_Enable_Register   73
 
#define Pass_Thru_0_Interrupt_Enable   _bit9
 
#define G0_Gate_Interrupt_Enable   _bit8
 
#define AI_FIFO_Interrupt_Enable   _bit7
 
#define G0_TC_Interrupt_Enable   _bit6
 
#define AI_Error_Interrupt_Enable   _bit5
 
#define AI_STOP_Interrupt_Enable   _bit4
 
#define AI_START_Interrupt_Enable   _bit3
 
#define AI_START2_Interrupt_Enable   _bit2
 
#define AI_START1_Interrupt_Enable   _bit1
 
#define AI_SC_TC_Interrupt_Enable   _bit0
 
#define Interrupt_B_Enable_Register   75
 
#define Pass_Thru_1_Interrupt_Enable   _bit11
 
#define G1_Gate_Interrupt_Enable   _bit10
 
#define G1_TC_Interrupt_Enable   _bit9
 
#define AO_FIFO_Interrupt_Enable   _bit8
 
#define AO_UI2_TC_Interrupt_Enable   _bit7
 
#define AO_UC_TC_Interrupt_Enable   _bit6
 
#define AO_Error_Interrupt_Enable   _bit5
 
#define AO_STOP_Interrupt_Enable   _bit4
 
#define AO_START_Interrupt_Enable   _bit3
 
#define AO_UPDATE_Interrupt_Enable   _bit2
 
#define AO_START1_Interrupt_Enable   _bit1
 
#define AO_BC_TC_Interrupt_Enable   _bit0
 
#define Second_IRQ_A_Enable_Register   74
 
#define Second_IRQ_B_Enable_Register   76
 
#define AI_Personal_Register   77
 
#define AI_SHIFTIN_Pulse_Width   _bit15
 
#define AI_EOC_Polarity   _bit14
 
#define AI_SOC_Polarity   _bit13
 
#define AI_SHIFTIN_Polarity   _bit12
 
#define AI_CONVERT_Pulse_Timebase   _bit11
 
#define AI_CONVERT_Pulse_Width   _bit10
 
#define AI_CONVERT_Original_Pulse   _bit9
 
#define AI_FIFO_Flags_Polarity   _bit8
 
#define AI_Overrun_Mode   _bit7
 
#define AI_EXTMUX_CLK_Pulse_Width   _bit6
 
#define AI_LOCALMUX_CLK_Pulse_Width   _bit5
 
#define AI_AIFREQ_Polarity   _bit4
 
#define AO_Personal_Register   78
 
#define RTSI_Trig_A_Output_Register   79
 
#define RTSI_Trig_B_Output_Register   80
 
#define RTSI_Board_Register   81
 
#define Write_Strobe_0_Register   82
 
#define Write_Strobe_1_Register   83
 
#define Write_Strobe_2_Register   84
 
#define Write_Strobe_3_Register   85
 
#define AO_Output_Control_Register   86
 
#define AO_External_Gate_Enable   _bit15
 
#define AO_External_Gate_Select(x)   (((x)&0x1f)<<10)
 
#define AO_Number_Of_Channels(x)   (((x)&0xf)<<6)
 
#define AO_UPDATE2_Output_Select(x)   (((x)&0x3)<<4)
 
#define AO_External_Gate_Polarity   _bit3
 
#define AO_UPDATE2_Output_Toggle   _bit2
 
#define AI_Mode_3_Register   87
 
#define AI_Trigger_Length   _bit15
 
#define AI_Delay_START   _bit14
 
#define AI_Software_Gate   _bit13
 
#define AI_SI_Special_Trigger_Delay   _bit12
 
#define AI_SI2_Source_Select   _bit11
 
#define AI_Delayed_START2   _bit10
 
#define AI_Delayed_START1   _bit9
 
#define AI_External_Gate_Mode   _bit8
 
#define AI_FIFO_Mode_HF_to_E   (3<<6)
 
#define AI_FIFO_Mode_F   (2<<6)
 
#define AI_FIFO_Mode_HF   (1<<6)
 
#define AI_FIFO_Mode_NE   (0<<6)
 
#define AI_External_Gate_Polarity   _bit5
 
#define AI_External_Gate_Select(a)   ((a) & 0x1f)
 
#define G_Autoincrement_Register(a)   (68+(a))
 
#define G_Command_Register(a)   (6+(a))
 
#define G_HW_Save_Register(a)   (8+(a)*2)
 
#define G_HW_Save_Register_High(a)   (8+(a)*2)
 
#define G_HW_Save_Register_Low(a)   (9+(a)*2)
 
#define G_Input_Select_Register(a)   (36+(a))
 
#define G_Load_A_Register(a)   (28+(a)*4)
 
#define G_Load_A_Register_High(a)   (28+(a)*4)
 
#define G_Load_A_Register_Low(a)   (29+(a)*4)
 
#define G_Load_B_Register(a)   (30+(a)*4)
 
#define G_Load_B_Register_High(a)   (30+(a)*4)
 
#define G_Load_B_Register_Low(a)   (31+(a)*4)
 
#define G_Mode_Register(a)   (26+(a))
 
#define G_Save_Register(a)   (12+(a)*2)
 
#define G_Save_Register_High(a)   (12+(a)*2)
 
#define G_Save_Register_Low(a)   (13+(a)*2)
 
#define G_Status_Register   4
 
#define Analog_Trigger_Etc_Register   61
 
#define G_Disarm_Copy   _bit15 /* strobe */
 
#define G_Save_Trace_Copy   _bit14
 
#define G_Arm_Copy   _bit13 /* strobe */
 
#define G_Bank_Switch_Start   _bit10 /* strobe */
 
#define G_Little_Big_Endian   _bit9
 
#define G_Synchronized_Gate   _bit8
 
#define G_Write_Switch   _bit7
 
#define G_Up_Down(a)   (((a)&0x03)<<5)
 
#define G_Disarm   _bit4 /* strobe */
 
#define G_Analog_Trigger_Reset   _bit3 /* strobe */
 
#define G_Save_Trace   _bit1
 
#define G_Arm   _bit0 /* strobe */
 
#define G_Bank_Switch_Enable   _bit12
 
#define G_Bank_Switch_Mode   _bit11
 
#define G_Load   _bit2 /* strobe */
 
#define G_Gate_Select(a)   (((a)&0x1f)<<7)
 
#define G_Source_Select(a)   (((a)&0x1f)<<2)
 
#define G_Write_Acknowledges_Irq   _bit1
 
#define G_Read_Acknowledges_Irq   _bit0
 
#define G_Source_Polarity   _bit15
 
#define G_Output_Polarity   _bit14
 
#define G_OR_Gate   _bit13
 
#define G_Gate_Select_Load_Source   _bit12
 
#define G_Loading_On_TC   _bit12
 
#define G_Output_Mode(a)   (((a)&0x03)<<8)
 
#define G_Trigger_Mode_For_Edge_Gate(a)   (((a)&0x03)<<3)
 
#define G_Gating_Mode(a)   (((a)&0x03)<<0)
 
#define G_Load_Source_Select   _bit7
 
#define G_Reload_Source_Switching   _bit15
 
#define G_Loading_On_Gate   _bit14
 
#define G_Gate_Polarity   _bit13
 
#define G_Counting_Once(a)   (((a)&0x03)<<10)
 
#define G_Stop_Mode(a)   (((a)&0x03)<<5)
 
#define G_Gate_On_Both_Edges   _bit2
 
#define G1_Gate_Error_St   _bit15
 
#define G0_Gate_Error_St   _bit14
 
#define G1_TC_Error_St   _bit13
 
#define G0_TC_Error_St   _bit12
 
#define G1_No_Load_Between_Gates_St   _bit11
 
#define G0_No_Load_Between_Gates_St   _bit10
 
#define G1_Armed_St   _bit9
 
#define G0_Armed_St   _bit8
 
#define G1_Stale_Data_St   _bit7
 
#define G0_Stale_Data_St   _bit6
 
#define G1_Next_Load_Source_St   _bit5
 
#define G0_Next_Load_Source_St   _bit4
 
#define G1_Counting_St   _bit3
 
#define G0_Counting_St   _bit2
 
#define G1_Save_St   _bit1
 
#define G0_Save_St   _bit0
 
#define G_Autoincrement(a)   ((a)<<0)
 
#define Analog_Trigger_Mode(x)   ((x) & 0x7)
 
#define Analog_Trigger_Enable   _bit3
 
#define Analog_Trigger_Drive   _bit4
 
#define GPFO_1_Output_Select   _bit7
 
#define GPFO_0_Output_Select(a)   ((a)<<11)
 
#define GPFO_0_Output_Enable   _bit14
 
#define GPFO_1_Output_Enable   _bit15
 
#define Window_Address   0x00
 
#define Window_Data   0x02
 
#define Configuration_Memory_Clear   82
 
#define ADC_FIFO_Clear   83
 
#define DAC_FIFO_Clear   84
 
#define XXX_Status   0x01
 
#define Serial_Command   0x0d
 
#define Misc_Command   0x0f
 
#define Port_A   0x19
 
#define Port_B   0x1b
 
#define Port_C   0x1d
 
#define Configuration   0x1f
 
#define Strobes   0x01
 
#define Channel_A_Mode   0x03
 
#define Channel_B_Mode   0x05
 
#define Channel_C_Mode   0x07
 
#define AI_AO_Select   0x09
 
#define G0_G1_Select   0x0b
 
#define Configuration_Memory_Low   0x10
 
#define Configuration_Memory_High   0x12
 
#define ADC_FIFO_Data_Register   0x1c
 
#define AO_Configuration   0x16
 
#define AO_Bipolar   _bit0
 
#define AO_Deglitch   _bit1
 
#define AO_Ext_Ref   _bit2
 
#define AO_Ground_Ref   _bit3
 
#define AO_Channel(x)   ((x) << 8)
 
#define DAC_FIFO_Data   0x1e
 
#define DAC0_Direct_Data   0x18
 
#define DAC1_Direct_Data   0x1a
 
#define Magic_611x   0x19 /* w8 (new) */
 
#define Calibration_Channel_Select_611x   0x1a /* w16 (new) */
 
#define ADC_FIFO_Data_611x   0x1c /* r32 (incompatible) */
 
#define AI_FIFO_Offset_Load_611x   0x05 /* r8 (new) */
 
#define DAC_FIFO_Data_611x   0x14 /* w32 (incompatible) */
 
#define Cal_Gain_Select_611x   0x05 /* w8 (new) */
 
#define AO_Window_Address_611x   0x18
 
#define AO_Window_Data_611x   0x1e
 
#define Magic_6143   0x19 /* w8 */
 
#define G0G1_DMA_Select_6143   0x0B /* w8 */
 
#define PipelineDelay_6143   0x1f /* w8 */
 
#define EOC_Set_6143   0x1D /* w8 */
 
#define AIDMA_Select_6143   0x09 /* w8 */
 
#define AIFIFO_Data_6143   0x8C /* w32 */
 
#define AIFIFO_Flag_6143   0x84 /* w32 */
 
#define AIFIFO_Control_6143   0x88 /* w32 */
 
#define AIFIFO_Status_6143   0x88 /* w32 */
 
#define AIFIFO_DMAThreshold_6143   0x90 /* w32 */
 
#define AIFIFO_Words_Available_6143   0x94 /* w32 */
 
#define Calibration_Channel_6143   0x42 /* w16 */
 
#define Calibration_LowTime_6143   0x20 /* w16 */
 
#define Calibration_HighTime_6143   0x22 /* w16 */
 
#define Relay_Counter_Load_Val__6143   0x4C /* w32 */
 
#define Signature_6143   0x50 /* w32 */
 
#define Release_Date_6143   0x54 /* w32 */
 
#define Release_Oldest_Date_6143   0x58 /* w32 */
 
#define Calibration_Channel_6143_RelayOn   0x8000 /* Calibration relay switch On */
 
#define Calibration_Channel_6143_RelayOff   0x4000 /* Calibration relay switch Off */
 
#define Calibration_Channel_Gnd_Gnd   0x00 /* Offset Calibration */
 
#define Calibration_Channel_2v5_Gnd   0x02 /* 2.5V Reference */
 
#define Calibration_Channel_Pwm_Gnd   0x05 /* +/- 5V Self Cal */
 
#define Calibration_Channel_2v5_Pwm   0x0a /* PWM Calibration */
 
#define Calibration_Channel_Pwm_Pwm   0x0d /* CMRR */
 
#define Calibration_Channel_Gnd_Pwm   0x0e /* PWM Calibration */
 
#define SerDacLd(x)   (0x08<<(x))
 
#define M_SERIES_EEPROM_SIZE   1024
 
#define n_ni_boards   (sizeof(ni_boards)/sizeof(struct ni_board_struct))
 
#define boardtype   (*(struct ni_board_struct *)dev->board_ptr)
 
#define MAX_N_AO_CHAN   8
 
#define NUM_GPCT   2
 
#define NI_PRIVATE_COMMON
 

Enumerations

enum  Interrupt_B_Ack_Bits {
  G1_Gate_Error_Confirm = _bit1, G1_TC_Error_Confirm = _bit2, AO_BC_TC_Trigger_Error_Confirm = _bit3, AO_BC_TC_Error_Confirm = _bit4,
  AO_UI2_TC_Error_Confrim = _bit5, AO_UI2_TC_Interrupt_Ack = _bit6, AO_UC_TC_Interrupt_Ack = _bit7, AO_BC_TC_Interrupt_Ack = _bit8,
  AO_START1_Interrupt_Ack = _bit9, AO_UPDATE_Interrupt_Ack = _bit10, AO_START_Interrupt_Ack = _bit11, AO_STOP_Interrupt_Ack = _bit12,
  AO_Error_Interrupt_Ack = _bit13, G1_TC_Interrupt_Ack = _bit14, G1_Gate_Interrupt_Ack = _bit15
}
 
enum  Joint_Status_2_Bits { AO_TMRDACWRs_In_Progress_St = 0x20 }
 
enum  AO_FIFO_Mode_Bits { AO_FIFO_Mode_HF_to_F = (3 << 14), AO_FIFO_Mode_F = (2 << 14), AO_FIFO_Mode_HF = (1 << 14), AO_FIFO_Mode_E = (0 << 14) }
 
enum  Clock_and_FOUT_bits {
  FOUT_Enable = _bit15, FOUT_Timebase_Select = _bit14, DIO_Serial_Out_Divide_By_2 = _bit13, Slow_Internal_Time_Divide_By_2 = _bit12,
  Slow_Internal_Timebase = _bit11, G_Source_Divide_By_2 = _bit10, Clock_To_Board_Divide_By_2 = _bit9, Clock_To_Board = _bit8,
  AI_Output_Divide_By_2 = _bit7, AI_Source_Divide_By_2 = _bit6, AO_Output_Divide_By_2 = _bit5, AO_Source_Divide_By_2 = _bit4,
  FOUT_Divider_mask = 0xf
}
 
enum  RTSI_Trig_Direction_Bits { Drive_RTSI_Clock_Bit = 0x1, Use_RTSI_Clock_Bit = 0x2 }
 
enum  ai_convert_output_selection { AI_CONVERT_Output_High_Z = 0, AI_CONVERT_Output_Ground = 1, AI_CONVERT_Output_Enable_Low = 2, AI_CONVERT_Output_Enable_High = 3 }
 
enum  Second_IRQ_A_Enable_Bits {
  AI_SC_TC_Second_Irq_Enable = _bit0, AI_START1_Second_Irq_Enable = _bit1, AI_START2_Second_Irq_Enable = _bit2, AI_START_Second_Irq_Enable = _bit3,
  AI_STOP_Second_Irq_Enable = _bit4, AI_Error_Second_Irq_Enable = _bit5, G0_TC_Second_Irq_Enable = _bit6, AI_FIFO_Second_Irq_Enable = _bit7,
  G0_Gate_Second_Irq_Enable = _bit8, Pass_Thru_0_Second_Irq_Enable = _bit9
}
 
enum  Second_IRQ_B_Enable_Bits {
  AO_BC_TC_Second_Irq_Enable = _bit0, AO_START1_Second_Irq_Enable = _bit1, AO_UPDATE_Second_Irq_Enable = _bit2, AO_START_Second_Irq_Enable = _bit3,
  AO_STOP_Second_Irq_Enable = _bit4, AO_Error_Second_Irq_Enable = _bit5, AO_UC_TC_Second_Irq_Enable = _bit6, AO_UI2_TC_Second_Irq_Enable = _bit7,
  AO_FIFO_Second_Irq_Enable = _bit8, G1_TC_Second_Irq_Enable = _bit9, G1_Gate_Second_Irq_Enable = _bit10, Pass_Thru_1_Second_Irq_Enable = _bit11
}
 
enum  AO_Personal_Bits {
  AO_Interval_Buffer_Mode = 1 << 3, AO_BC_Source_Select = 1 << 4, AO_UPDATE_Pulse_Width = 1 << 5, AO_UPDATE_Pulse_Timebase = 1 << 6,
  AO_UPDATE_Original_Pulse = 1 << 7, AO_DMA_PIO_Control = 1 << 8, AO_AOFREQ_Polarity = 1 << 9, AO_FIFO_Enable = 1 << 10,
  AO_FIFO_Flags_Polarity = 1 << 11, AO_TMRDACWR_Pulse_Width = 1 << 12, AO_Fast_CPU = 1 << 13, AO_Number_Of_DAC_Packages = 1 << 14,
  AO_Multiple_DACS_Per_Package = 1 << 15
}
 
enum  RTSI_Trig_B_Output_Bits { RTSI_Sub_Selection_1_Bit = 0x8000 }
 
enum  ao_update_output_selection { AO_Update_Output_High_Z = 0, AO_Update_Output_Ground = 1, AO_Update_Output_Enable_Low = 2, AO_Update_Output_Enable_High = 3 }
 
enum  XXX_Status_Bits { PROMOUT = 0x1, AI_FIFO_LOWER_NOT_EMPTY = 0x8 }
 
enum  AI_AO_Select_Bits { AI_DMA_Select_Shift = 0, AI_DMA_Select_Mask = 0xf, AO_DMA_Select_Shift = 4, AO_DMA_Select_Mask = 0xf << AO_DMA_Select_Shift }
 
enum  Configuration_Memory_Low_Bits { AI_DITHER = 0x200, AI_LAST_CHANNEL = 0x8000 }
 
enum  Configuration_Memory_High_Bits { AI_AC_COUPLE = 0x800, AI_DIFFERENTIAL = 0x1000, AI_COMMON = 0x2000, AI_GROUND = 0x3000 }
 
enum  windowed_regs_67xx_61xx {
  AO_Immediate_671x = 0x11, AO_Timed_611x = 0x10, AO_FIFO_Offset_Load_611x = 0x13, AO_Later_Single_Point_Updates = 0x14,
  AO_Waveform_Generation_611x = 0x15, AO_Misc_611x = 0x16, AO_Calibration_Channel_Select_67xx = 0x17, AO_Configuration_2_67xx = 0x18,
  CAL_ADC_Command_67xx = 0x19, CAL_ADC_Status_67xx = 0x1a, CAL_ADC_Data_67xx = 0x1b, CAL_ADC_Config_Data_High_Word_67xx = 0x1c,
  CAL_ADC_Config_Data_Low_Word_67xx = 0x1d
}
 
enum  AO_Misc_611x_Bits { CLEAR_WG = 1 }
 
enum  cs5529_configuration_bits {
  CSCFG_CAL_CONTROL_MASK = 0x7, CSCFG_SELF_CAL_OFFSET = 0x1, CSCFG_SELF_CAL_GAIN = 0x2, CSCFG_SELF_CAL_OFFSET_GAIN = 0x3,
  CSCFG_SYSTEM_CAL_OFFSET = 0x5, CSCFG_SYSTEM_CAL_GAIN = 0x6, CSCFG_DONE = 1 << 3, CSCFG_POWER_SAVE_SELECT = 1 << 4,
  CSCFG_PORT_MODE = 1 << 5, CSCFG_RESET_VALID = 1 << 6, CSCFG_RESET = 1 << 7, CSCFG_UNIPOLAR = 1 << 12,
  CSCFG_WORD_RATE_2180_CYCLES = 0x0 << 13, CSCFG_WORD_RATE_1092_CYCLES = 0x1 << 13, CSCFG_WORD_RATE_532_CYCLES = 0x2 << 13, CSCFG_WORD_RATE_388_CYCLES = 0x3 << 13,
  CSCFG_WORD_RATE_324_CYCLES = 0x4 << 13, CSCFG_WORD_RATE_17444_CYCLES = 0x5 << 13, CSCFG_WORD_RATE_8724_CYCLES = 0x6 << 13, CSCFG_WORD_RATE_4364_CYCLES = 0x7 << 13,
  CSCFG_WORD_RATE_MASK = 0x7 << 13, CSCFG_LOW_POWER = 1 << 16
}
 
enum  cs5529_command_bits {
  CSCMD_POWER_SAVE = 0x1, CSCMD_REGISTER_SELECT_MASK = 0xe, CSCMD_OFFSET_REGISTER = 0x0, CSCMD_GAIN_REGISTER = 0x2,
  CSCMD_CONFIG_REGISTER = 0x4, CSCMD_READ = 0x10, CSCMD_CONTINUOUS_CONVERSIONS = 0x20, CSCMD_SINGLE_CONVERSION = 0x40,
  CSCMD_COMMAND = 0x80
}
 
enum  cs5529_status_bits { CSS_ADC_BUSY = 0x1, CSS_OSC_DETECT = 0x2, CSS_OVERRANGE = 0x4 }
 
enum  {
  ai_gain_16, ai_gain_8, ai_gain_14, ai_gain_4,
  ai_gain_611x, ai_gain_622x, ai_gain_628x, ai_gain_6143
}
 
enum  caldac_enum {
  caldac_none = 0, mb88341, dac8800, dac8043,
  ad8522, ad8804, ad8842, ad8804_debug
}
 
enum  ni_reg_type {
  ni_reg_normal = 0x0, ni_reg_611x = 0x1, ni_reg_6711 = 0x2, ni_reg_6713 = 0x4,
  ni_reg_67xx_mask = 0x6, ni_reg_6xxx_mask = 0x7, ni_reg_622x = 0x8, ni_reg_625x = 0x10,
  ni_reg_628x = 0x18, ni_reg_m_series_mask = 0x18, ni_reg_6143 = 0x20
}
 
enum  m_series_register_offsets {
  M_Offset_CDIO_DMA_Select = 0x7, M_Offset_SCXI_Status = 0x7, M_Offset_AI_AO_Select = 0x9, M_Offset_SCXI_Serial_Data_In = 0x9,
  M_Offset_G0_G1_Select = 0xb, M_Offset_Misc_Command = 0xf, M_Offset_SCXI_Serial_Data_Out = 0x11, M_Offset_SCXI_Control = 0x13,
  M_Offset_SCXI_Output_Enable = 0x15, M_Offset_AI_FIFO_Data = 0x1c, M_Offset_Static_Digital_Output = 0x24, M_Offset_Static_Digital_Input = 0x24,
  M_Offset_DIO_Direction = 0x28, M_Offset_Cal_PWM = 0x40, M_Offset_AI_Config_FIFO_Data = 0x5e, M_Offset_Interrupt_C_Enable = 0x88,
  M_Offset_Interrupt_C_Status = 0x88, M_Offset_Analog_Trigger_Control = 0x8c, M_Offset_AO_Serial_Interrupt_Enable = 0xa0, M_Offset_AO_Serial_Interrupt_Ack = 0xa1,
  M_Offset_AO_Serial_Interrupt_Status = 0xa1, M_Offset_AO_Calibration = 0xa3, M_Offset_AO_FIFO_Data = 0xa4, M_Offset_PFI_Filter = 0xb0,
  M_Offset_RTSI_Filter = 0xb4, M_Offset_SCXI_Legacy_Compatibility = 0xbc, M_Offset_Interrupt_A_Ack = 0x104, M_Offset_AI_Status_1 = 0x104,
  M_Offset_Interrupt_B_Ack = 0x106, M_Offset_AO_Status_1 = 0x106, M_Offset_AI_Command_2 = 0x108, M_Offset_G01_Status = 0x108,
  M_Offset_AO_Command_2 = 0x10a, M_Offset_AO_Status_2 = 0x10c, M_Offset_G0_Command = 0x10c, M_Offset_G1_Command = 0x10e,
  M_Offset_G0_HW_Save = 0x110, M_Offset_G0_HW_Save_High = 0x110, M_Offset_AI_Command_1 = 0x110, M_Offset_G0_HW_Save_Low = 0x112,
  M_Offset_AO_Command_1 = 0x112, M_Offset_G1_HW_Save = 0x114, M_Offset_G1_HW_Save_High = 0x114, M_Offset_G1_HW_Save_Low = 0x116,
  M_Offset_AI_Mode_1 = 0x118, M_Offset_G0_Save = 0x118, M_Offset_G0_Save_High = 0x118, M_Offset_AI_Mode_2 = 0x11a,
  M_Offset_G0_Save_Low = 0x11a, M_Offset_AI_SI_Load_A = 0x11c, M_Offset_G1_Save = 0x11c, M_Offset_G1_Save_High = 0x11c,
  M_Offset_G1_Save_Low = 0x11e, M_Offset_AI_SI_Load_B = 0x120, M_Offset_AO_UI_Save = 0x120, M_Offset_AI_SC_Load_A = 0x124,
  M_Offset_AO_BC_Save = 0x124, M_Offset_AI_SC_Load_B = 0x128, M_Offset_AO_UC_Save = 0x128, M_Offset_AI_SI2_Load_A = 0x12c,
  M_Offset_AI_SI2_Load_B = 0x130, M_Offset_G0_Mode = 0x134, M_Offset_G1_Mode = 0x136, M_Offset_Joint_Status_1 = 0x136,
  M_Offset_G0_Load_A = 0x138, M_Offset_Joint_Status_2 = 0x13a, M_Offset_G0_Load_B = 0x13c, M_Offset_G1_Load_A = 0x140,
  M_Offset_G1_Load_B = 0x144, M_Offset_G0_Input_Select = 0x148, M_Offset_G1_Input_Select = 0x14a, M_Offset_AO_Mode_1 = 0x14c,
  M_Offset_AO_Mode_2 = 0x14e, M_Offset_AO_UI_Load_A = 0x150, M_Offset_AO_UI_Load_B = 0x154, M_Offset_AO_BC_Load_A = 0x158,
  M_Offset_AO_BC_Load_B = 0x15c, M_Offset_AO_UC_Load_A = 0x160, M_Offset_AO_UC_Load_B = 0x164, M_Offset_Clock_and_FOUT = 0x170,
  M_Offset_IO_Bidirection_Pin = 0x172, M_Offset_RTSI_Trig_Direction = 0x174, M_Offset_Interrupt_Control = 0x176, M_Offset_AI_Output_Control = 0x178,
  M_Offset_Analog_Trigger_Etc = 0x17a, M_Offset_AI_START_STOP_Select = 0x17c, M_Offset_AI_Trigger_Select = 0x17e, M_Offset_AI_SI_Save = 0x180,
  M_Offset_AI_DIV_Load_A = 0x180, M_Offset_AI_SC_Save = 0x184, M_Offset_AO_Start_Select = 0x184, M_Offset_AO_Trigger_Select = 0x186,
  M_Offset_AO_Mode_3 = 0x18c, M_Offset_G0_Autoincrement = 0x188, M_Offset_G1_Autoincrement = 0x18a, M_Offset_Joint_Reset = 0x190,
  M_Offset_Interrupt_A_Enable = 0x192, M_Offset_Interrupt_B_Enable = 0x196, M_Offset_AI_Personal = 0x19a, M_Offset_AO_Personal = 0x19c,
  M_Offset_RTSI_Trig_A_Output = 0x19e, M_Offset_RTSI_Trig_B_Output = 0x1a0, M_Offset_RTSI_Shared_MUX = 0x1a2, M_Offset_AO_Output_Control = 0x1ac,
  M_Offset_AI_Mode_3 = 0x1ae, M_Offset_Configuration_Memory_Clear = 0x1a4, M_Offset_AI_FIFO_Clear = 0x1a6, M_Offset_AO_FIFO_Clear = 0x1a8,
  M_Offset_G0_Counting_Mode = 0x1b0, M_Offset_G1_Counting_Mode = 0x1b2, M_Offset_G0_Second_Gate = 0x1b4, M_Offset_G1_Second_Gate = 0x1b6,
  M_Offset_G0_DMA_Config = 0x1b8, M_Offset_G0_DMA_Status = 0x1b8, M_Offset_G1_DMA_Config = 0x1ba, M_Offset_G1_DMA_Status = 0x1ba,
  M_Offset_G0_MSeries_ABZ = 0x1c0, M_Offset_G1_MSeries_ABZ = 0x1c2, M_Offset_Clock_and_Fout2 = 0x1c4, M_Offset_PLL_Control = 0x1c6,
  M_Offset_PLL_Status = 0x1c8, M_Offset_PFI_Output_Select_1 = 0x1d0, M_Offset_PFI_Output_Select_2 = 0x1d2, M_Offset_PFI_Output_Select_3 = 0x1d4,
  M_Offset_PFI_Output_Select_4 = 0x1d6, M_Offset_PFI_Output_Select_5 = 0x1d8, M_Offset_PFI_Output_Select_6 = 0x1da, M_Offset_PFI_DI = 0x1dc,
  M_Offset_PFI_DO = 0x1de, M_Offset_AI_Config_FIFO_Bypass = 0x218, M_Offset_SCXI_DIO_Enable = 0x21c, M_Offset_CDI_FIFO_Data = 0x220,
  M_Offset_CDO_FIFO_Data = 0x220, M_Offset_CDIO_Status = 0x224, M_Offset_CDIO_Command = 0x224, M_Offset_CDI_Mode = 0x228,
  M_Offset_CDO_Mode = 0x22c, M_Offset_CDI_Mask_Enable = 0x230, M_Offset_CDO_Mask_Enable = 0x234
}
 
enum  MSeries_AI_Config_FIFO_Data_Bits {
  MSeries_AI_Config_Channel_Type_Mask = 0x7 << 6, MSeries_AI_Config_Channel_Type_Calibration_Bits = 0x0, MSeries_AI_Config_Channel_Type_Differential_Bits = 0x1 << 6, MSeries_AI_Config_Channel_Type_Common_Ref_Bits = 0x2 << 6,
  MSeries_AI_Config_Channel_Type_Ground_Ref_Bits = 0x3 << 6, MSeries_AI_Config_Channel_Type_Aux_Bits = 0x5 << 6, MSeries_AI_Config_Channel_Type_Ghost_Bits = 0x7 << 6, MSeries_AI_Config_Polarity_Bit = 0x1000,
  MSeries_AI_Config_Dither_Bit = 0x2000, MSeries_AI_Config_Last_Channel_Bit = 0x4000
}
 
enum  MSeries_Clock_and_Fout2_Bits {
  MSeries_PLL_In_Source_Select_RTSI0_Bits = 0xb, MSeries_PLL_In_Source_Select_Star_Trigger_Bits = 0x14, MSeries_PLL_In_Source_Select_RTSI7_Bits = 0x1b, MSeries_PLL_In_Source_Select_PXI_Clock10 = 0x1d,
  MSeries_PLL_In_Source_Select_Mask = 0x1f, MSeries_Timebase1_Select_Bit = 0x20, MSeries_Timebase3_Select_Bit = 0x40, MSeries_RTSI_10MHz_Bit = 0x80
}
 
enum  MSeries_PLL_Control_Bits {
  MSeries_PLL_Enable_Bit = 0x1000, MSeries_PLL_VCO_Mode_200_325MHz_Bits = 0x0, MSeries_PLL_VCO_Mode_175_225MHz_Bits = 0x2000, MSeries_PLL_VCO_Mode_100_225MHz_Bits = 0x4000,
  MSeries_PLL_VCO_Mode_75_150MHz_Bits = 0x6000
}
 
enum  MSeries_PLL_Status { MSeries_PLL_Locked_Bit = 0x1 }
 
enum  MSeries_AI_Config_FIFO_Bypass_Bits {
  MSeries_AI_Bypass_Channel_Mask = 0x7, MSeries_AI_Bypass_Bank_Mask = 0x78, MSeries_AI_Bypass_Cal_Sel_Pos_Mask = 0x380, MSeries_AI_Bypass_Cal_Sel_Neg_Mask = 0x1c00,
  MSeries_AI_Bypass_Mode_Mux_Mask = 0x6000, MSeries_AO_Bypass_AO_Cal_Sel_Mask = 0x38000, MSeries_AI_Bypass_Gain_Mask = 0x1c0000, MSeries_AI_Bypass_Dither_Bit = 0x200000,
  MSeries_AI_Bypass_Polarity_Bit = 0x400000, MSeries_AI_Bypass_Config_FIFO_Bit = 0x80000000
}
 
enum  MSeries_AO_Config_Bank_Bits {
  MSeries_AO_DAC_Offset_Select_Mask = 0x7, MSeries_AO_DAC_Offset_0V_Bits = 0x0, MSeries_AO_DAC_Offset_5V_Bits = 0x1, MSeries_AO_DAC_Reference_Mask = 0x38,
  MSeries_AO_DAC_Reference_10V_Internal_Bits = 0x0, MSeries_AO_DAC_Reference_5V_Internal_Bits = 0x8, MSeries_AO_Update_Timed_Bit = 0x40, MSeries_AO_Bipolar_Bit = 0x80
}
 
enum  MSeries_AO_Reference_Attenuation_Bits { MSeries_Attenuate_x5_Bit = 0x1 }
 
enum  MSeries_Gi_DMA_Config_Bits {
  Gi_DMA_BankSW_Error_Bit = 0x10, Gi_DMA_Reset_Bit = 0x8, Gi_DMA_Int_Enable_Bit = 0x4, Gi_DMA_Write_Bit = 0x2,
  Gi_DMA_Enable_Bit = 0x1
}
 
enum  CDIO_DMA_Select_Bits { CDI_DMA_Select_Shift = 0, CDI_DMA_Select_Mask = 0xf, CDO_DMA_Select_Shift = 4, CDO_DMA_Select_Mask = 0xf << CDO_DMA_Select_Shift }
 
enum  CDIO_Status_Bits {
  CDO_FIFO_Empty_Bit = 0x1, CDO_FIFO_Full_Bit = 0x2, CDO_FIFO_Request_Bit = 0x4, CDO_Overrun_Bit = 0x8,
  CDO_Underflow_Bit = 0x10, CDI_FIFO_Empty_Bit = 0x10000, CDI_FIFO_Full_Bit = 0x20000, CDI_FIFO_Request_Bit = 0x40000,
  CDI_Overrun_Bit = 0x80000, CDI_Overflow_Bit = 0x100000
}
 
enum  CDIO_Command_Bits {
  CDO_Disarm_Bit = 0x1, CDO_Arm_Bit = 0x2, CDI_Disarm_Bit = 0x4, CDI_Arm_Bit = 0x8,
  CDO_Reset_Bit = 0x10, CDI_Reset_Bit = 0x20, CDO_Error_Interrupt_Enable_Set_Bit = 0x40, CDO_Error_Interrupt_Enable_Clear_Bit = 0x80,
  CDI_Error_Interrupt_Enable_Set_Bit = 0x100, CDI_Error_Interrupt_Enable_Clear_Bit = 0x200, CDO_FIFO_Request_Interrupt_Enable_Set_Bit = 0x400, CDO_FIFO_Request_Interrupt_Enable_Clear_Bit = 0x800,
  CDI_FIFO_Request_Interrupt_Enable_Set_Bit = 0x1000, CDI_FIFO_Request_Interrupt_Enable_Clear_Bit = 0x2000, CDO_Error_Interrupt_Confirm_Bit = 0x4000, CDI_Error_Interrupt_Confirm_Bit = 0x8000,
  CDO_Empty_FIFO_Interrupt_Enable_Set_Bit = 0x10000, CDO_Empty_FIFO_Interrupt_Enable_Clear_Bit = 0x20000, CDO_SW_Update_Bit = 0x80000, CDI_SW_Update_Bit = 0x100000
}
 
enum  CDI_Mode_Bits {
  CDI_Sample_Source_Select_Mask = 0x3f, CDI_Halt_On_Error_Bit = 0x200, CDI_Polarity_Bit = 0x400, CDI_FIFO_Mode_Bit = 0x800,
  CDI_Data_Lane_Mask = 0x3000, CDI_Data_Lane_0_15_Bits = 0x0, CDI_Data_Lane_16_31_Bits = 0x1000, CDI_Data_Lane_0_7_Bits = 0x0,
  CDI_Data_Lane_8_15_Bits = 0x1000, CDI_Data_Lane_16_23_Bits = 0x2000, CDI_Data_Lane_24_31_Bits = 0x3000
}
 
enum  CDO_Mode_Bits {
  CDO_Sample_Source_Select_Mask = 0x3f, CDO_Retransmit_Bit = 0x100, CDO_Halt_On_Error_Bit = 0x200, CDO_Polarity_Bit = 0x400,
  CDO_FIFO_Mode_Bit = 0x800, CDO_Data_Lane_Mask = 0x3000, CDO_Data_Lane_0_15_Bits = 0x0, CDO_Data_Lane_16_31_Bits = 0x1000,
  CDO_Data_Lane_0_7_Bits = 0x0, CDO_Data_Lane_8_15_Bits = 0x1000, CDO_Data_Lane_16_23_Bits = 0x2000, CDO_Data_Lane_24_31_Bits = 0x3000
}
 
enum  Interrupt_C_Enable_Bits { Interrupt_Group_C_Enable_Bit = 0x1 }
 
enum  Interrupt_C_Status_Bits { Interrupt_Group_C_Status_Bit = 0x1 }
 

Macro Definition Documentation

#define _bit0   0x0001

Definition at line 49 of file ni_stc.h.

#define _bit1   0x0002

Definition at line 48 of file ni_stc.h.

#define _bit10   0x0400

Definition at line 39 of file ni_stc.h.

#define _bit11   0x0800

Definition at line 38 of file ni_stc.h.

#define _bit12   0x1000

Definition at line 37 of file ni_stc.h.

#define _bit13   0x2000

Definition at line 36 of file ni_stc.h.

#define _bit14   0x4000

Definition at line 35 of file ni_stc.h.

#define _bit15   0x8000

Definition at line 34 of file ni_stc.h.

#define _bit2   0x0004

Definition at line 47 of file ni_stc.h.

#define _bit3   0x0008

Definition at line 46 of file ni_stc.h.

#define _bit4   0x0010

Definition at line 45 of file ni_stc.h.

#define _bit5   0x0020

Definition at line 44 of file ni_stc.h.

#define _bit6   0x0040

Definition at line 43 of file ni_stc.h.

#define _bit7   0x0080

Definition at line 42 of file ni_stc.h.

#define _bit8   0x0100

Definition at line 41 of file ni_stc.h.

#define _bit9   0x0200

Definition at line 40 of file ni_stc.h.

#define ADC_FIFO_Clear   83

Definition at line 693 of file ni_stc.h.

#define ADC_FIFO_Data_611x   0x1c /* r32 (incompatible) */

Definition at line 784 of file ni_stc.h.

#define ADC_FIFO_Data_Register   0x1c

Definition at line 767 of file ni_stc.h.

#define AI_AIFREQ_Polarity   _bit4

Definition at line 508 of file ni_stc.h.

#define AI_Analog_Trigger_Reset   _bit14

Definition at line 161 of file ni_stc.h.

#define AI_AO_Select   0x09

Definition at line 714 of file ni_stc.h.

#define AI_Command_1_Register   8

Definition at line 160 of file ni_stc.h.

#define AI_Command_2_Register   4

Definition at line 125 of file ni_stc.h.

#define AI_Configuration_End   _bit8

Definition at line 432 of file ni_stc.h.

#define AI_Configuration_Start   _bit4

Definition at line 434 of file ni_stc.h.

#define AI_Continuous   _bit1

Definition at line 218 of file ni_stc.h.

#define AI_CONVERT_Original_Pulse   _bit9

Definition at line 503 of file ni_stc.h.

#define AI_CONVERT_Pulse   _bit0

Definition at line 175 of file ni_stc.h.

#define AI_CONVERT_Pulse_Timebase   _bit11

Definition at line 501 of file ni_stc.h.

#define AI_CONVERT_Pulse_Width   _bit10

Definition at line 502 of file ni_stc.h.

#define AI_CONVERT_Source_Polarity   _bit5

Definition at line 214 of file ni_stc.h.

#define AI_CONVERT_Source_Select (   a)    (((a) & 0x1f) << 11)

Definition at line 212 of file ni_stc.h.

#define AI_Delay_START   _bit14

Definition at line 576 of file ni_stc.h.

#define AI_Delayed_START1   _bit9

Definition at line 581 of file ni_stc.h.

#define AI_Delayed_START2   _bit10

Definition at line 580 of file ni_stc.h.

#define AI_Disarm   _bit13

Definition at line 162 of file ni_stc.h.

#define AI_DIV_Arm   _bit8

Definition at line 167 of file ni_stc.h.

#define AI_DIV_Load   _bit7

Definition at line 168 of file ni_stc.h.

#define AI_DIV_Load_A_Register   64

Definition at line 396 of file ni_stc.h.

#define AI_End_On_End_Of_Scan   _bit14

Definition at line 127 of file ni_stc.h.

#define AI_End_On_SC_TC   _bit15

Definition at line 126 of file ni_stc.h.

#define AI_EOC_Polarity   _bit14

Definition at line 498 of file ni_stc.h.

#define AI_Error_Interrupt_Ack   _bit13

Definition at line 58 of file ni_stc.h.

#define AI_Error_Interrupt_Enable   _bit5

Definition at line 445 of file ni_stc.h.

#define AI_External_Gate_Mode   _bit8

Definition at line 582 of file ni_stc.h.

#define AI_External_Gate_Polarity   _bit5

Definition at line 587 of file ni_stc.h.

#define AI_External_Gate_Select (   a)    ((a) & 0x1f)

Definition at line 588 of file ni_stc.h.

#define AI_External_MUX_Present   _bit12

Definition at line 225 of file ni_stc.h.

#define AI_EXTMUX_CLK_Output_Select (   x)    (((x) & 0x3) << 6)

Definition at line 361 of file ni_stc.h.

#define AI_EXTMUX_CLK_Pulse   _bit3

Definition at line 172 of file ni_stc.h.

#define AI_EXTMUX_CLK_Pulse_Width   _bit6

Definition at line 506 of file ni_stc.h.

#define AI_FIFO_Empty_St   0x1000

Definition at line 72 of file ni_stc.h.

#define AI_FIFO_Flags_Polarity   _bit8

Definition at line 504 of file ni_stc.h.

#define AI_FIFO_Full_St   0x4000

Definition at line 70 of file ni_stc.h.

#define AI_FIFO_Half_Full_St   0x2000

Definition at line 71 of file ni_stc.h.

#define AI_FIFO_Interrupt_Enable   _bit7

Definition at line 443 of file ni_stc.h.

#define AI_FIFO_Mode_F   (2<<6)

Definition at line 584 of file ni_stc.h.

#define AI_FIFO_Mode_HF   (1<<6)

Definition at line 585 of file ni_stc.h.

#define AI_FIFO_Mode_HF_to_E   (3<<6)

Definition at line 583 of file ni_stc.h.

#define AI_FIFO_Mode_NE   (0<<6)

Definition at line 586 of file ni_stc.h.

#define AI_FIFO_Offset_Load_611x   0x05 /* r8 (new) */

Definition at line 785 of file ni_stc.h.

#define AI_FIFO_Request_St   0x0002

Definition at line 83 of file ni_stc.h.

#define AI_LOCALMUX_CLK_Output_Select (   x)    ((x)<<4)

Definition at line 362 of file ni_stc.h.

#define AI_LOCALMUX_CLK_Pulse   _bit2

Definition at line 173 of file ni_stc.h.

#define AI_LOCALMUX_CLK_Pulse_Width   _bit5

Definition at line 507 of file ni_stc.h.

#define AI_Mode_1_Register   12

Definition at line 211 of file ni_stc.h.

#define AI_Mode_1_Reserved   _bit2

Definition at line 217 of file ni_stc.h.

#define AI_Mode_2_Register   13

Definition at line 221 of file ni_stc.h.

#define AI_Mode_3_Register   87

Definition at line 574 of file ni_stc.h.

#define AI_Output_Control_Register   60

Definition at line 358 of file ni_stc.h.

#define AI_Overflow_St   0x0400

Definition at line 74 of file ni_stc.h.

#define AI_Overrun_Mode   _bit7

Definition at line 505 of file ni_stc.h.

#define AI_Overrun_St   0x0800

Definition at line 73 of file ni_stc.h.

#define AI_Personal_Register   77

Definition at line 496 of file ni_stc.h.

#define AI_Pre_Trigger   _bit13

Definition at line 224 of file ni_stc.h.

#define AI_Reset   _bit0

Definition at line 438 of file ni_stc.h.

#define AI_SC_Arm   _bit6

Definition at line 169 of file ni_stc.h.

#define AI_SC_Gate_Enable   _bit15

Definition at line 222 of file ni_stc.h.

#define AI_SC_Initial_Load_Source   _bit2

Definition at line 231 of file ni_stc.h.

#define AI_SC_Load   _bit5

Definition at line 170 of file ni_stc.h.

#define AI_SC_Load_A_Registers   18

Definition at line 237 of file ni_stc.h.

#define AI_SC_Load_B_Registers   20

Definition at line 238 of file ni_stc.h.

#define AI_SC_Reload_Mode   _bit1

Definition at line 232 of file ni_stc.h.

#define AI_SC_Save_Registers   66

Definition at line 240 of file ni_stc.h.

#define AI_SC_Save_Trace   _bit10

Definition at line 129 of file ni_stc.h.

#define AI_SC_Switch_Load_On_TC   _bit4

Definition at line 133 of file ni_stc.h.

#define AI_SC_TC_Error_Confirm   _bit7

Definition at line 64 of file ni_stc.h.

#define AI_SC_TC_Error_St   0x0200

Definition at line 75 of file ni_stc.h.

#define AI_SC_TC_Interrupt_Ack   _bit8

Definition at line 63 of file ni_stc.h.

#define AI_SC_TC_Interrupt_Enable   _bit0

Definition at line 450 of file ni_stc.h.

#define AI_SC_TC_Output_Select (   x)    ((x)<<2)

Definition at line 363 of file ni_stc.h.

#define AI_SC_TC_Pulse   _bit1

Definition at line 174 of file ni_stc.h.

#define AI_SC_TC_St   0x0040

Definition at line 78 of file ni_stc.h.

#define AI_SC_Write_Switch   _bit0

Definition at line 233 of file ni_stc.h.

#define AI_SCAN_IN_PROG_Output_Select (   x)    (((x) & 0x3) << 8)

Definition at line 360 of file ni_stc.h.

#define AI_SCAN_IN_PROG_Pulse   _bit4

Definition at line 171 of file ni_stc.h.

#define AI_SHIFTIN_Polarity   _bit12

Definition at line 500 of file ni_stc.h.

#define AI_SHIFTIN_Pulse_Width   _bit15

Definition at line 497 of file ni_stc.h.

#define AI_SI2_Arm   _bit12

Definition at line 163 of file ni_stc.h.

#define AI_SI2_Initial_Load_Source   _bit9

Definition at line 226 of file ni_stc.h.

#define AI_SI2_Load   _bit11

Definition at line 164 of file ni_stc.h.

#define AI_SI2_Load_A_Register   23

Definition at line 242 of file ni_stc.h.

#define AI_SI2_Load_B_Register   25

Definition at line 243 of file ni_stc.h.

#define AI_SI2_Reload_Mode   _bit8

Definition at line 227 of file ni_stc.h.

#define AI_SI2_Source_Select   _bit11

Definition at line 579 of file ni_stc.h.

#define AI_SI_Arm   _bit10

Definition at line 165 of file ni_stc.h.

#define AI_SI_Initial_Load_Source   _bit7

Definition at line 228 of file ni_stc.h.

#define AI_SI_Load   _bit9

Definition at line 166 of file ni_stc.h.

#define AI_SI_Load_A_Registers   14

Definition at line 235 of file ni_stc.h.

#define AI_SI_Load_B_Registers   16

Definition at line 236 of file ni_stc.h.

#define AI_SI_Reload_Mode (   a)    (((a) & 0x7)<<4)

Definition at line 229 of file ni_stc.h.

#define AI_SI_Save_Registers   64

Definition at line 239 of file ni_stc.h.

#define AI_SI_Source_Polarity   _bit4

Definition at line 215 of file ni_stc.h.

#define AI_SI_Source_select (   a)    (((a) & 0x1f) << 6)

Definition at line 213 of file ni_stc.h.

#define AI_SI_Special_Trigger_Delay   _bit12

Definition at line 578 of file ni_stc.h.

#define AI_SI_Switch_Load_On_SC_TC   _bit9

Definition at line 130 of file ni_stc.h.

#define AI_SI_Switch_Load_On_STOP   _bit8

Definition at line 131 of file ni_stc.h.

#define AI_SI_Switch_Load_On_TC   _bit7

Definition at line 132 of file ni_stc.h.

#define AI_SI_Write_Switch   _bit3

Definition at line 230 of file ni_stc.h.

#define AI_SOC_Polarity   _bit13

Definition at line 499 of file ni_stc.h.

#define AI_Software_Gate   _bit13

Definition at line 577 of file ni_stc.h.

#define AI_START1_Disable   _bit11

Definition at line 128 of file ni_stc.h.

#define AI_START1_Edge   _bit5

Definition at line 393 of file ni_stc.h.

#define AI_START1_Interrupt_Ack   _bit9

Definition at line 62 of file ni_stc.h.

#define AI_START1_Interrupt_Enable   _bit1

Definition at line 449 of file ni_stc.h.

#define AI_START1_Polarity   _bit15

Definition at line 387 of file ni_stc.h.

#define AI_START1_Pulse   _bit0

Definition at line 137 of file ni_stc.h.

#define AI_START1_Select (   a)    ((a) & 0x1f)

Definition at line 394 of file ni_stc.h.

#define AI_START1_St   0x0080

Definition at line 77 of file ni_stc.h.

#define AI_START1_Sync   _bit6

Definition at line 392 of file ni_stc.h.

#define AI_START2_Edge   _bit12

Definition at line 390 of file ni_stc.h.

#define AI_START2_Interrupt_Ack   _bit10

Definition at line 61 of file ni_stc.h.

#define AI_START2_Interrupt_Enable   _bit2

Definition at line 448 of file ni_stc.h.

#define AI_START2_Polarity   _bit14

Definition at line 388 of file ni_stc.h.

#define AI_START2_Pulse   _bit1

Definition at line 136 of file ni_stc.h.

#define AI_START2_Select (   a)    (((a) & 0x1f) << 7)

Definition at line 391 of file ni_stc.h.

#define AI_START2_St   0x0100

Definition at line 76 of file ni_stc.h.

#define AI_START2_Sync   _bit13

Definition at line 389 of file ni_stc.h.

#define AI_START_Edge   _bit5

Definition at line 383 of file ni_stc.h.

#define AI_START_Interrupt_Ack   _bit11

Definition at line 60 of file ni_stc.h.

#define AI_START_Interrupt_Enable   _bit3

Definition at line 447 of file ni_stc.h.

#define AI_START_Output_Select   _bit10

Definition at line 359 of file ni_stc.h.

#define AI_START_Polarity   _bit15

Definition at line 377 of file ni_stc.h.

#define AI_START_Pulse   _bit2

Definition at line 135 of file ni_stc.h.

#define AI_START_Select (   a)    ((a) & 0x1f)

Definition at line 384 of file ni_stc.h.

#define AI_START_St   0x0020

Definition at line 79 of file ni_stc.h.

#define AI_Start_Stop   _bit3

Definition at line 216 of file ni_stc.h.

#define AI_Start_Stop_Gate_Enable   _bit14

Definition at line 223 of file ni_stc.h.

#define AI_START_STOP_Select_Register   62

Definition at line 376 of file ni_stc.h.

#define AI_START_Sync   _bit6

Definition at line 382 of file ni_stc.h.

#define AI_Status_1_Register   2

Definition at line 68 of file ni_stc.h.

#define AI_Status_2_Register   5

Definition at line 86 of file ni_stc.h.

#define AI_STOP_Edge   _bit12

Definition at line 380 of file ni_stc.h.

#define AI_STOP_Interrupt_Ack   _bit12

Definition at line 59 of file ni_stc.h.

#define AI_STOP_Interrupt_Enable   _bit4

Definition at line 446 of file ni_stc.h.

#define AI_STOP_Polarity   _bit14

Definition at line 378 of file ni_stc.h.

#define AI_STOP_Pulse   _bit3

Definition at line 134 of file ni_stc.h.

#define AI_STOP_Select (   a)    (((a) & 0x1f)<<7)

Definition at line 381 of file ni_stc.h.

#define AI_STOP_St   0x0010

Definition at line 80 of file ni_stc.h.

#define AI_STOP_Sync   _bit13

Definition at line 379 of file ni_stc.h.

#define AI_Trigger_Length   _bit15

Definition at line 575 of file ni_stc.h.

#define AI_Trigger_Once   _bit0

Definition at line 219 of file ni_stc.h.

#define AI_Trigger_Select_Register   63

Definition at line 386 of file ni_stc.h.

#define AIDMA_Select_6143   0x09 /* w8 */

Definition at line 797 of file ni_stc.h.

#define AIFIFO_Control_6143   0x88 /* w32 */

Definition at line 800 of file ni_stc.h.

#define AIFIFO_Data_6143   0x8C /* w32 */

Definition at line 798 of file ni_stc.h.

#define AIFIFO_DMAThreshold_6143   0x90 /* w32 */

Definition at line 802 of file ni_stc.h.

#define AIFIFO_Flag_6143   0x84 /* w32 */

Definition at line 799 of file ni_stc.h.

#define AIFIFO_Status_6143   0x88 /* w32 */

Definition at line 801 of file ni_stc.h.

#define AIFIFO_Words_Available_6143   0x94 /* w32 */

Definition at line 803 of file ni_stc.h.

#define Analog_Trigger_Drive   _bit4

Definition at line 680 of file ni_stc.h.

#define Analog_Trigger_Enable   _bit3

Definition at line 679 of file ni_stc.h.

#define Analog_Trigger_Etc_Register   61

Definition at line 607 of file ni_stc.h.

#define Analog_Trigger_Mode (   x)    ((x) & 0x7)

Definition at line 678 of file ni_stc.h.

#define AO_Analog_Trigger_Reset   _bit15

Definition at line 178 of file ni_stc.h.

#define AO_AOFREQ_Enable   _bit12

Definition at line 402 of file ni_stc.h.

#define AO_BC_Arm   _bit6

Definition at line 187 of file ni_stc.h.

#define AO_BC_Gate_Enable   _bit11

Definition at line 143 of file ni_stc.h.

#define AO_BC_Initial_Load_Source   _bit2

Definition at line 281 of file ni_stc.h.

#define AO_BC_Load   _bit5

Definition at line 188 of file ni_stc.h.

#define AO_BC_Load_A_Register   44

Definition at line 290 of file ni_stc.h.

#define AO_BC_Load_A_Register_High   44

Definition at line 291 of file ni_stc.h.

#define AO_BC_Load_A_Register_Low   45

Definition at line 292 of file ni_stc.h.

#define AO_BC_Load_B_Register   46

Definition at line 293 of file ni_stc.h.

#define AO_BC_Load_B_Register_High   46

Definition at line 294 of file ni_stc.h.

#define AO_BC_Load_B_Register_Low   47

Definition at line 295 of file ni_stc.h.

#define AO_BC_Reload_Mode   _bit1

Definition at line 282 of file ni_stc.h.

#define AO_BC_Save_Registers   18

Definition at line 296 of file ni_stc.h.

#define AO_BC_Save_Trace   _bit10

Definition at line 144 of file ni_stc.h.

#define AO_BC_Switch_Load_On_TC   _bit4

Definition at line 150 of file ni_stc.h.

#define AO_BC_TC_Error_St   _bit11

Definition at line 112 of file ni_stc.h.

#define AO_BC_TC_Interrupt_Enable   _bit0

Definition at line 464 of file ni_stc.h.

#define AO_BC_TC_St   _bit7

Definition at line 116 of file ni_stc.h.

#define AO_BC_Write_Switch   _bit0

Definition at line 283 of file ni_stc.h.

#define AO_Bipolar   _bit0

Definition at line 770 of file ni_stc.h.

#define AO_Channel (   x)    ((x) << 8)

Definition at line 774 of file ni_stc.h.

#define AO_Command_1_Register   9

Definition at line 177 of file ni_stc.h.

#define AO_Command_2_Register   5

Definition at line 139 of file ni_stc.h.

#define AO_Configuration   0x16

Definition at line 769 of file ni_stc.h.

#define AO_Configuration_End   _bit9

Definition at line 431 of file ni_stc.h.

#define AO_Configuration_Start   _bit5

Definition at line 433 of file ni_stc.h.

#define AO_Continuous   _bit1

Definition at line 261 of file ni_stc.h.

#define AO_DAC0_Update_Mode   _bit2

Definition at line 191 of file ni_stc.h.

#define AO_DAC1_Update_Mode   _bit4

Definition at line 189 of file ni_stc.h.

#define AO_Deglitch   _bit1

Definition at line 771 of file ni_stc.h.

#define AO_Delayed_START1   _bit14

Definition at line 410 of file ni_stc.h.

#define AO_Disarm   _bit13

Definition at line 180 of file ni_stc.h.

#define AO_End_On_BC_TC (   x)    (((x) & 0x3) << 14)

Definition at line 140 of file ni_stc.h.

#define AO_Error_Interrupt_Enable   _bit5

Definition at line 459 of file ni_stc.h.

#define AO_Ext_Ref   _bit2

Definition at line 772 of file ni_stc.h.

#define AO_External_Gate_Enable   _bit15

Definition at line 556 of file ni_stc.h.

#define AO_External_Gate_Polarity   _bit3

Definition at line 560 of file ni_stc.h.

#define AO_External_Gate_Select (   x)    (((x)&0x1f)<<10)

Definition at line 557 of file ni_stc.h.

#define AO_FIFO_Empty_St   _bit12

Definition at line 111 of file ni_stc.h.

#define AO_FIFO_Full_St   _bit14

Definition at line 109 of file ni_stc.h.

#define AO_FIFO_Half_Full_St   _bit13

Definition at line 110 of file ni_stc.h.

#define AO_FIFO_Interrupt_Enable   _bit8

Definition at line 456 of file ni_stc.h.

#define AO_FIFO_Mode_Mask   (0x3 << 14)

Definition at line 265 of file ni_stc.h.

#define AO_FIFO_Request_St   _bit1

Definition at line 122 of file ni_stc.h.

#define AO_FIFO_Retransmit_Enable   _bit13

Definition at line 272 of file ni_stc.h.

#define AO_Ground_Ref   _bit3

Definition at line 773 of file ni_stc.h.

#define AO_Last_Gate_Disable   _bit0 /* M Series only */

Definition at line 427 of file ni_stc.h.

#define AO_LDAC0_Source_Select   _bit1

Definition at line 192 of file ni_stc.h.

#define AO_LDAC1_Source_Select   _bit3

Definition at line 190 of file ni_stc.h.

#define AO_Mode_1_Register   38

Definition at line 254 of file ni_stc.h.

#define AO_Mode_2_Register   39

Definition at line 264 of file ni_stc.h.

#define AO_Mode_3_Register   70

Definition at line 418 of file ni_stc.h.

#define AO_Multiple_Channels   _bit5

Definition at line 257 of file ni_stc.h.

#define AO_Mute_A   _bit2

Definition at line 152 of file ni_stc.h.

#define AO_Mute_B   _bit3

Definition at line 151 of file ni_stc.h.

#define AO_Not_An_UPDATE   _bit2

Definition at line 425 of file ni_stc.h.

#define AO_Number_Of_Channels (   x)    (((x)&0xf)<<6)

Definition at line 558 of file ni_stc.h.

#define AO_Output_Control_Register   86

Definition at line 555 of file ni_stc.h.

#define AO_Overrun_St   _bit9

Definition at line 114 of file ni_stc.h.

#define AO_Personal_Register   78

Definition at line 510 of file ni_stc.h.

#define AO_Reset   _bit1

Definition at line 437 of file ni_stc.h.

#define AO_Software_Gate   _bit1

Definition at line 426 of file ni_stc.h.

#define AO_START1_Disable   _bit12

Definition at line 273 of file ni_stc.h.

#define AO_START1_Edge   _bit5

Definition at line 415 of file ni_stc.h.

#define AO_START1_Interrupt_Enable   _bit1

Definition at line 463 of file ni_stc.h.

#define AO_START1_Polarity   _bit13

Definition at line 411 of file ni_stc.h.

#define AO_START1_Pulse   _bit0

Definition at line 154 of file ni_stc.h.

#define AO_START1_Select (   x)    (((x)&0x1f)<<0)

Definition at line 416 of file ni_stc.h.

#define AO_START1_St   _bit8

Definition at line 115 of file ni_stc.h.

#define AO_START1_Sync   _bit6

Definition at line 414 of file ni_stc.h.

#define AO_START_Edge   _bit5

Definition at line 405 of file ni_stc.h.

#define AO_START_Interrupt_Enable   _bit3

Definition at line 461 of file ni_stc.h.

#define AO_START_Polarity   _bit13

Definition at line 401 of file ni_stc.h.

#define AO_START_Pulse   _bit14

Definition at line 179 of file ni_stc.h.

#define AO_START_Select (   a)    ((a) & 0x1f)

Definition at line 406 of file ni_stc.h.

#define AO_Start_Select_Register   66

Definition at line 398 of file ni_stc.h.

#define AO_START_St   _bit10

Definition at line 113 of file ni_stc.h.

#define AO_Start_Stop_Gate_Enable   _bit13

Definition at line 141 of file ni_stc.h.

#define AO_START_Sync   _bit6

Definition at line 404 of file ni_stc.h.

#define AO_Status_1_Register   3

Definition at line 107 of file ni_stc.h.

#define AO_Status_2_Register   6

Definition at line 156 of file ni_stc.h.

#define AO_STOP_Interrupt_Enable   _bit4

Definition at line 460 of file ni_stc.h.

#define AO_Stop_On_BC_TC_Error   _bit3

Definition at line 424 of file ni_stc.h.

#define AO_Stop_On_BC_TC_Trigger_Error   _bit4

Definition at line 423 of file ni_stc.h.

#define AO_Stop_On_Overrun_Error   _bit5

Definition at line 422 of file ni_stc.h.

#define AO_Trigger_Length   _bit11

Definition at line 421 of file ni_stc.h.

#define AO_Trigger_Once   _bit0

Definition at line 262 of file ni_stc.h.

#define AO_Trigger_Select_Register   67

Definition at line 408 of file ni_stc.h.

#define AO_UC_Arm   _bit8

Definition at line 185 of file ni_stc.h.

#define AO_UC_Initial_Load_Source   _bit11

Definition at line 274 of file ni_stc.h.

#define AO_UC_Load   _bit7

Definition at line 186 of file ni_stc.h.

#define AO_UC_Load_A_Register   48

Definition at line 297 of file ni_stc.h.

#define AO_UC_Load_A_Register_High   48

Definition at line 298 of file ni_stc.h.

#define AO_UC_Load_A_Register_Low   49

Definition at line 299 of file ni_stc.h.

#define AO_UC_Load_B_Register   50

Definition at line 300 of file ni_stc.h.

#define AO_UC_Save_Registers   20

Definition at line 301 of file ni_stc.h.

#define AO_UC_Save_Trace   _bit12

Definition at line 142 of file ni_stc.h.

#define AO_UC_Switch_Load_Every_BC_TC   _bit12

Definition at line 420 of file ni_stc.h.

#define AO_UC_Switch_Load_Every_TC   _bit2

Definition at line 260 of file ni_stc.h.

#define AO_UC_Switch_Load_On_BC_TC   _bit6

Definition at line 148 of file ni_stc.h.

#define AO_UC_Switch_Load_On_TC   _bit5

Definition at line 149 of file ni_stc.h.

#define AO_UC_TC_Interrupt_Enable   _bit6

Definition at line 458 of file ni_stc.h.

#define AO_UC_TC_St   _bit6

Definition at line 117 of file ni_stc.h.

#define AO_UC_Write_Switch   _bit10

Definition at line 275 of file ni_stc.h.

#define AO_UI2_Arm_Disarm   _bit12

Definition at line 181 of file ni_stc.h.

#define AO_UI2_External_Gate_Enable   _bit15

Definition at line 409 of file ni_stc.h.

#define AO_UI2_External_Gate_Polarity   _bit14

Definition at line 400 of file ni_stc.h.

#define AO_UI2_External_Gate_Select (   a)    (((a) & 0x1f) << 7)

Definition at line 403 of file ni_stc.h.

#define AO_UI2_Initial_Load_Source   _bit9

Definition at line 276 of file ni_stc.h.

#define AO_UI2_Load   _bit11

Definition at line 182 of file ni_stc.h.

#define AO_UI2_Reload_Mode   _bit8

Definition at line 277 of file ni_stc.h.

#define AO_UI2_Software_Gate   _bit15

Definition at line 399 of file ni_stc.h.

#define AO_UI2_Source_Polarity   _bit12

Definition at line 412 of file ni_stc.h.

#define AO_UI2_Source_Select (   x)    (((x)&0x1f)<<7)

Definition at line 413 of file ni_stc.h.

#define AO_UI2_Switch_Load_Next_TC   _bit13

Definition at line 419 of file ni_stc.h.

#define AO_UI2_TC_Interrupt_Enable   _bit7

Definition at line 457 of file ni_stc.h.

#define AO_UI2_TC_St   _bit4

Definition at line 119 of file ni_stc.h.

#define AO_UI_Arm   _bit10

Definition at line 183 of file ni_stc.h.

#define AO_UI_Initial_Load_Source   _bit7

Definition at line 278 of file ni_stc.h.

#define AO_UI_Load   _bit9

Definition at line 184 of file ni_stc.h.

#define AO_UI_Load_A_Register   40

Definition at line 285 of file ni_stc.h.

#define AO_UI_Load_A_Register_High   40

Definition at line 286 of file ni_stc.h.

#define AO_UI_Load_A_Register_Low   41

Definition at line 287 of file ni_stc.h.

#define AO_UI_Load_B_Register   42

Definition at line 288 of file ni_stc.h.

#define AO_UI_Reload_Mode (   x)    (((x) & 0x7) << 4)

Definition at line 279 of file ni_stc.h.

#define AO_UI_Save_Registers   16

Definition at line 289 of file ni_stc.h.

#define AO_UI_Source_Polarity   _bit3

Definition at line 259 of file ni_stc.h.

#define AO_UI_Source_Select (   x)    (((x)&0x1f)<<6)

Definition at line 256 of file ni_stc.h.

#define AO_UI_Switch_Load_On_BC_TC   _bit9

Definition at line 145 of file ni_stc.h.

#define AO_UI_Switch_Load_On_Stop   _bit8

Definition at line 146 of file ni_stc.h.

#define AO_UI_Switch_Load_On_TC   _bit7

Definition at line 147 of file ni_stc.h.

#define AO_UI_Write_Switch   _bit3

Definition at line 280 of file ni_stc.h.

#define AO_UPDATE2_Output_Select (   x)    (((x)&0x3)<<4)

Definition at line 559 of file ni_stc.h.

#define AO_UPDATE2_Output_Toggle   _bit2

Definition at line 561 of file ni_stc.h.

#define AO_UPDATE2_Pulse   _bit1

Definition at line 153 of file ni_stc.h.

#define AO_UPDATE_Interrupt_Enable   _bit2

Definition at line 462 of file ni_stc.h.

#define AO_UPDATE_Pulse   _bit0

Definition at line 193 of file ni_stc.h.

#define AO_UPDATE_Source_Polarity   _bit4

Definition at line 258 of file ni_stc.h.

#define AO_UPDATE_Source_Select (   x)    (((x)&0x1f)<<11)

Definition at line 255 of file ni_stc.h.

#define AO_UPDATE_St   _bit5

Definition at line 118 of file ni_stc.h.

#define AO_Window_Address_611x   0x18

Definition at line 789 of file ni_stc.h.

#define AO_Window_Data_611x   0x1e

Definition at line 790 of file ni_stc.h.

#define boardtype   (*(struct ni_board_struct *)dev->board_ptr)

Definition at line 1426 of file ni_stc.h.

#define Cal_Gain_Select_611x   0x05 /* w8 (new) */

Definition at line 787 of file ni_stc.h.

#define Calibration_Channel_2v5_Gnd   0x02 /* 2.5V Reference */

Definition at line 816 of file ni_stc.h.

#define Calibration_Channel_2v5_Pwm   0x0a /* PWM Calibration */

Definition at line 818 of file ni_stc.h.

#define Calibration_Channel_6143   0x42 /* w16 */

Definition at line 805 of file ni_stc.h.

#define Calibration_Channel_6143_RelayOff   0x4000 /* Calibration relay switch Off */

Definition at line 814 of file ni_stc.h.

#define Calibration_Channel_6143_RelayOn   0x8000 /* Calibration relay switch On */

Definition at line 813 of file ni_stc.h.

#define Calibration_Channel_Gnd_Gnd   0x00 /* Offset Calibration */

Definition at line 815 of file ni_stc.h.

#define Calibration_Channel_Gnd_Pwm   0x0e /* PWM Calibration */

Definition at line 820 of file ni_stc.h.

#define Calibration_Channel_Pwm_Gnd   0x05 /* +/- 5V Self Cal */

Definition at line 817 of file ni_stc.h.

#define Calibration_Channel_Pwm_Pwm   0x0d /* CMRR */

Definition at line 819 of file ni_stc.h.

#define Calibration_Channel_Select_611x   0x1a /* w16 (new) */

Definition at line 783 of file ni_stc.h.

#define Calibration_HighTime_6143   0x22 /* w16 */

Definition at line 807 of file ni_stc.h.

#define Calibration_LowTime_6143   0x20 /* w16 */

Definition at line 806 of file ni_stc.h.

#define Channel_A_Mode   0x03

Definition at line 711 of file ni_stc.h.

#define Channel_B_Mode   0x05

Definition at line 712 of file ni_stc.h.

#define Channel_C_Mode   0x07

Definition at line 713 of file ni_stc.h.

#define Clock_and_FOUT_Register   56

Definition at line 303 of file ni_stc.h.

#define Configuration   0x1f

Definition at line 709 of file ni_stc.h.

#define Configuration_Memory_Clear   82

Definition at line 692 of file ni_stc.h.

#define Configuration_Memory_High   0x12

Definition at line 755 of file ni_stc.h.

#define Configuration_Memory_Low   0x10

Definition at line 750 of file ni_stc.h.

#define DAC0_Direct_Data   0x18

Definition at line 777 of file ni_stc.h.

#define DAC1_Direct_Data   0x1a

Definition at line 778 of file ni_stc.h.

#define DAC_FIFO_Clear   84

Definition at line 694 of file ni_stc.h.

#define DAC_FIFO_Data   0x1e

Definition at line 776 of file ni_stc.h.

#define DAC_FIFO_Data_611x   0x14 /* w32 (incompatible) */

Definition at line 786 of file ni_stc.h.

#define DIO_Control_Register   11

Definition at line 203 of file ni_stc.h.

#define DIO_HW_Serial_Enable   _bit9

Definition at line 206 of file ni_stc.h.

#define DIO_HW_Serial_Start   _bit8

Definition at line 207 of file ni_stc.h.

#define DIO_HW_Serial_Timebase   _bit10

Definition at line 205 of file ni_stc.h.

#define DIO_Output_Register   10

Definition at line 195 of file ni_stc.h.

#define DIO_Parallel_Data_Mask   0xff

Definition at line 197 of file ni_stc.h.

#define DIO_Parallel_Data_Out (   a)    ((a)&0xff)

Definition at line 196 of file ni_stc.h.

#define DIO_Parallel_Input_Register   7

Definition at line 158 of file ni_stc.h.

#define DIO_Pins_Dir (   a)    ((a)&0xff)

Definition at line 208 of file ni_stc.h.

#define DIO_Pins_Dir_Mask   0xff

Definition at line 209 of file ni_stc.h.

#define DIO_SDIN   _bit4

Definition at line 199 of file ni_stc.h.

#define DIO_SDOUT   _bit0

Definition at line 198 of file ni_stc.h.

#define DIO_Serial_Data_Mask   0xff00

Definition at line 201 of file ni_stc.h.

#define DIO_Serial_Data_Out (   a)    (((a)&0xff)<<8)

Definition at line 200 of file ni_stc.h.

#define DIO_Serial_Input_Register   28

Definition at line 248 of file ni_stc.h.

#define DIO_Serial_IO_In_Progress_St   _bit12

Definition at line 246 of file ni_stc.h.

#define DIO_Software_Serial_Control   _bit11

Definition at line 204 of file ni_stc.h.

#define EOC_Set_6143   0x1D /* w8 */

Definition at line 796 of file ni_stc.h.

#define G0_Armed_St   _bit8

Definition at line 664 of file ni_stc.h.

#define G0_Counting_St   _bit2

Definition at line 670 of file ni_stc.h.

#define G0_G1_Select   0x0b

Definition at line 721 of file ni_stc.h.

#define G0_Gate_Error_Confirm   _bit5

Definition at line 66 of file ni_stc.h.

#define G0_Gate_Error_St   _bit14

Definition at line 658 of file ni_stc.h.

#define G0_Gate_Interrupt_Ack   _bit15

Definition at line 56 of file ni_stc.h.

#define G0_Gate_Interrupt_Enable   _bit8

Definition at line 442 of file ni_stc.h.

#define G0_Gate_Interrupt_St   0x0004

Definition at line 82 of file ni_stc.h.

#define G0_Next_Load_Source_St   _bit4

Definition at line 668 of file ni_stc.h.

#define G0_No_Load_Between_Gates_St   _bit10

Definition at line 662 of file ni_stc.h.

#define G0_Reset   _bit2

Definition at line 436 of file ni_stc.h.

#define G0_Save_St   _bit0

Definition at line 672 of file ni_stc.h.

#define G0_Stale_Data_St   _bit6

Definition at line 666 of file ni_stc.h.

#define G0_TC_Error_Confirm   _bit6

Definition at line 65 of file ni_stc.h.

#define G0_TC_Error_St   _bit12

Definition at line 660 of file ni_stc.h.

#define G0_TC_Interrupt_Ack   _bit14

Definition at line 57 of file ni_stc.h.

#define G0_TC_Interrupt_Enable   _bit6

Definition at line 444 of file ni_stc.h.

#define G0_TC_St   0x0008

Definition at line 81 of file ni_stc.h.

#define G0G1_DMA_Select_6143   0x0B /* w8 */

Definition at line 794 of file ni_stc.h.

#define G1_Armed_St   _bit9

Definition at line 663 of file ni_stc.h.

#define G1_Counting_St   _bit3

Definition at line 669 of file ni_stc.h.

#define G1_Gate_Error_St   _bit15

Definition at line 657 of file ni_stc.h.

#define G1_Gate_Interrupt_Enable   _bit10

Definition at line 454 of file ni_stc.h.

#define G1_Gate_Interrupt_St   _bit2

Definition at line 121 of file ni_stc.h.

#define G1_Next_Load_Source_St   _bit5

Definition at line 667 of file ni_stc.h.

#define G1_No_Load_Between_Gates_St   _bit11

Definition at line 661 of file ni_stc.h.

#define G1_Reset   _bit3

Definition at line 435 of file ni_stc.h.

#define G1_Save_St   _bit1

Definition at line 671 of file ni_stc.h.

#define G1_Stale_Data_St   _bit7

Definition at line 665 of file ni_stc.h.

#define G1_TC_Error_St   _bit13

Definition at line 659 of file ni_stc.h.

#define G1_TC_Interrupt_Enable   _bit9

Definition at line 455 of file ni_stc.h.

#define G1_TC_St   _bit3

Definition at line 120 of file ni_stc.h.

#define G_Analog_Trigger_Reset   _bit3 /* strobe */

Definition at line 619 of file ni_stc.h.

#define G_Arm   _bit0 /* strobe */

Definition at line 621 of file ni_stc.h.

#define G_Arm_Copy   _bit13 /* strobe */

Definition at line 612 of file ni_stc.h.

#define G_Autoincrement (   a)    ((a)<<0)

Definition at line 675 of file ni_stc.h.

#define G_Autoincrement_Register (   a)    (68+(a))

Definition at line 590 of file ni_stc.h.

#define G_Bank_Switch_Enable   _bit12

Definition at line 624 of file ni_stc.h.

#define G_Bank_Switch_Mode   _bit11

Definition at line 625 of file ni_stc.h.

#define G_Bank_Switch_Start   _bit10 /* strobe */

Definition at line 613 of file ni_stc.h.

#define G_Command_Register (   a)    (6+(a))

Definition at line 591 of file ni_stc.h.

#define G_Counting_Once (   a)    (((a)&0x03)<<10)

Definition at line 652 of file ni_stc.h.

#define G_Disarm   _bit4 /* strobe */

Definition at line 618 of file ni_stc.h.

#define G_Disarm_Copy   _bit15 /* strobe */

Definition at line 610 of file ni_stc.h.

#define G_Gate_On_Both_Edges   _bit2

Definition at line 654 of file ni_stc.h.

#define G_Gate_Polarity   _bit13

Definition at line 650 of file ni_stc.h.

#define G_Gate_Select (   a)    (((a)&0x1f)<<7)

Definition at line 629 of file ni_stc.h.

#define G_Gate_Select_Load_Source   _bit12

Definition at line 638 of file ni_stc.h.

#define G_Gating_Mode (   a)    (((a)&0x03)<<0)

Definition at line 644 of file ni_stc.h.

#define G_HW_Save_Register (   a)    (8+(a)*2)

Definition at line 592 of file ni_stc.h.

#define G_HW_Save_Register_High (   a)    (8+(a)*2)

Definition at line 593 of file ni_stc.h.

#define G_HW_Save_Register_Low (   a)    (9+(a)*2)

Definition at line 594 of file ni_stc.h.

#define G_Input_Select_Register (   a)    (36+(a))

Definition at line 595 of file ni_stc.h.

#define G_Little_Big_Endian   _bit9

Definition at line 614 of file ni_stc.h.

#define G_Load   _bit2 /* strobe */

Definition at line 626 of file ni_stc.h.

#define G_Load_A_Register (   a)    (28+(a)*4)

Definition at line 596 of file ni_stc.h.

#define G_Load_A_Register_High (   a)    (28+(a)*4)

Definition at line 597 of file ni_stc.h.

#define G_Load_A_Register_Low (   a)    (29+(a)*4)

Definition at line 598 of file ni_stc.h.

#define G_Load_B_Register (   a)    (30+(a)*4)

Definition at line 599 of file ni_stc.h.

#define G_Load_B_Register_High (   a)    (30+(a)*4)

Definition at line 600 of file ni_stc.h.

#define G_Load_B_Register_Low (   a)    (31+(a)*4)

Definition at line 601 of file ni_stc.h.

#define G_Load_Source_Select   _bit7

Definition at line 647 of file ni_stc.h.

#define G_Loading_On_Gate   _bit14

Definition at line 649 of file ni_stc.h.

#define G_Loading_On_TC   _bit12

Definition at line 641 of file ni_stc.h.

#define G_Mode_Register (   a)    (26+(a))

Definition at line 602 of file ni_stc.h.

#define G_OR_Gate   _bit13

Definition at line 637 of file ni_stc.h.

#define G_Output_Mode (   a)    (((a)&0x03)<<8)

Definition at line 642 of file ni_stc.h.

#define G_Output_Polarity   _bit14

Definition at line 636 of file ni_stc.h.

#define G_Read_Acknowledges_Irq   _bit0

Definition at line 632 of file ni_stc.h.

#define G_Reload_Source_Switching   _bit15

Definition at line 648 of file ni_stc.h.

#define G_Save_Register (   a)    (12+(a)*2)

Definition at line 603 of file ni_stc.h.

#define G_Save_Register_High (   a)    (12+(a)*2)

Definition at line 604 of file ni_stc.h.

#define G_Save_Register_Low (   a)    (13+(a)*2)

Definition at line 605 of file ni_stc.h.

#define G_Save_Trace   _bit1

Definition at line 620 of file ni_stc.h.

#define G_Save_Trace_Copy   _bit14

Definition at line 611 of file ni_stc.h.

#define G_Source_Polarity   _bit15

Definition at line 635 of file ni_stc.h.

#define G_Source_Select (   a)    (((a)&0x1f)<<2)

Definition at line 630 of file ni_stc.h.

#define G_Status_Register   4

Definition at line 606 of file ni_stc.h.

#define G_Stop_Mode (   a)    (((a)&0x03)<<5)

Definition at line 653 of file ni_stc.h.

#define G_Synchronized_Gate   _bit8

Definition at line 615 of file ni_stc.h.

#define G_Trigger_Mode_For_Edge_Gate (   a)    (((a)&0x03)<<3)

Definition at line 643 of file ni_stc.h.

#define G_Up_Down (   a)    (((a)&0x03)<<5)

Definition at line 617 of file ni_stc.h.

#define G_Write_Acknowledges_Irq   _bit1

Definition at line 631 of file ni_stc.h.

#define G_Write_Switch   _bit7

Definition at line 616 of file ni_stc.h.

#define GPFO_0_Output_Enable   _bit14

Definition at line 683 of file ni_stc.h.

#define GPFO_0_Output_Select (   a)    ((a)<<11)

Definition at line 682 of file ni_stc.h.

#define GPFO_1_Output_Enable   _bit15

Definition at line 684 of file ni_stc.h.

#define GPFO_1_Output_Select   _bit7

Definition at line 681 of file ni_stc.h.

#define Interrupt_A_Ack_Register   2

Definition at line 55 of file ni_stc.h.

#define Interrupt_A_Enable   _bit11

Definition at line 351 of file ni_stc.h.

#define Interrupt_A_Enable_Register   73

Definition at line 440 of file ni_stc.h.

#define Interrupt_A_Output_Select (   x)    ((x)<<8)

Definition at line 352 of file ni_stc.h.

#define Interrupt_A_St   0x8000

Definition at line 69 of file ni_stc.h.

#define Interrupt_B_Ack_Register   3

Definition at line 88 of file ni_stc.h.

#define Interrupt_B_Enable   _bit15

Definition at line 349 of file ni_stc.h.

#define Interrupt_B_Enable_Register   75

Definition at line 452 of file ni_stc.h.

#define Interrupt_B_Output_Select (   x)    ((x)<<12)

Definition at line 350 of file ni_stc.h.

#define Interrupt_B_St   _bit15

Definition at line 108 of file ni_stc.h.

#define Interrupt_Control_Register   59

Definition at line 348 of file ni_stc.h.

#define Interrupt_Output_On_3_Pins   _bit1

Definition at line 355 of file ni_stc.h.

#define Interrupt_Output_Polarity   _bit0

Definition at line 356 of file ni_stc.h.

#define IO_Bidirection_Pin_Register   57

Definition at line 324 of file ni_stc.h.

#define Joint_Reset_Register   72

Definition at line 429 of file ni_stc.h.

#define Joint_Status_1_Register   27

Definition at line 245 of file ni_stc.h.

#define Joint_Status_2_Register   29

Definition at line 249 of file ni_stc.h.

#define M_SERIES_EEPROM_SIZE   1024

Definition at line 1393 of file ni_stc.h.

#define Magic_611x   0x19 /* w8 (new) */

Definition at line 782 of file ni_stc.h.

#define Magic_6143   0x19 /* w8 */

Definition at line 793 of file ni_stc.h.

#define MAX_N_AO_CHAN   8

Definition at line 1428 of file ni_stc.h.

#define Misc_Command   0x0f

Definition at line 705 of file ni_stc.h.

#define n_ni_boards   (sizeof(ni_boards)/sizeof(struct ni_board_struct))

Definition at line 1424 of file ni_stc.h.

#define NI_PRIVATE_COMMON

Definition at line 1431 of file ni_stc.h.

#define NUM_GPCT   2

Definition at line 1429 of file ni_stc.h.

#define NUM_PFI_OUTPUT_SELECT_REGS   6

Definition at line 51 of file ni_stc.h.

#define Pass_Thru_0_Interrupt_Enable   _bit9

Definition at line 441 of file ni_stc.h.

#define Pass_Thru_0_Interrupt_Polarity   _bit3

Definition at line 353 of file ni_stc.h.

#define Pass_Thru_0_Interrupt_St   0x0001

Definition at line 84 of file ni_stc.h.

#define Pass_Thru_1_Interrupt_Enable   _bit11

Definition at line 453 of file ni_stc.h.

#define Pass_Thru_1_Interrupt_Polarity   _bit2

Definition at line 354 of file ni_stc.h.

#define Pass_Thru_1_Interrupt_St   _bit0

Definition at line 123 of file ni_stc.h.

#define PipelineDelay_6143   0x1f /* w8 */

Definition at line 795 of file ni_stc.h.

#define Port_A   0x19

Definition at line 706 of file ni_stc.h.

#define Port_B   0x1b

Definition at line 707 of file ni_stc.h.

#define Port_C   0x1d

Definition at line 708 of file ni_stc.h.

#define Relay_Counter_Load_Val__6143   0x4C /* w32 */

Definition at line 808 of file ni_stc.h.

#define Release_Date_6143   0x54 /* w32 */

Definition at line 810 of file ni_stc.h.

#define Release_Oldest_Date_6143   0x58 /* w32 */

Definition at line 811 of file ni_stc.h.

#define RTSI_Board_Register   81

Definition at line 549 of file ni_stc.h.

#define RTSI_Trig_A_Output_Register   79

Definition at line 526 of file ni_stc.h.

#define RTSI_Trig_B_Output_Register   80

Definition at line 527 of file ni_stc.h.

#define RTSI_Trig_Direction_Register   58

Definition at line 325 of file ni_stc.h.

#define Second_IRQ_A_Enable_Register   74

Definition at line 466 of file ni_stc.h.

#define Second_IRQ_B_Enable_Register   76

Definition at line 480 of file ni_stc.h.

#define SerDacLd (   x)    (0x08<<(x))

Definition at line 898 of file ni_stc.h.

#define Serial_Command   0x0d

Definition at line 704 of file ni_stc.h.

#define Signature_6143   0x50 /* w32 */

Definition at line 809 of file ni_stc.h.

#define Software_Reset   _bit11

Definition at line 430 of file ni_stc.h.

#define Strobes   0x01

Definition at line 710 of file ni_stc.h.

#define Window_Address   0x00

Definition at line 689 of file ni_stc.h.

#define Window_Data   0x02

Definition at line 690 of file ni_stc.h.

#define Write_Strobe_0_Register   82

Definition at line 550 of file ni_stc.h.

#define Write_Strobe_1_Register   83

Definition at line 551 of file ni_stc.h.

#define Write_Strobe_2_Register   84

Definition at line 552 of file ni_stc.h.

#define Write_Strobe_3_Register   85

Definition at line 553 of file ni_stc.h.

#define XXX_Status   0x01

Definition at line 699 of file ni_stc.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ai_gain_16 
ai_gain_8 
ai_gain_14 
ai_gain_4 
ai_gain_611x 
ai_gain_622x 
ai_gain_628x 
ai_gain_6143 

Definition at line 905 of file ni_stc.h.

Enumerator:
AI_DMA_Select_Shift 
AI_DMA_Select_Mask 
AO_DMA_Select_Shift 
AO_DMA_Select_Mask 

Definition at line 715 of file ni_stc.h.

Enumerator:
AI_CONVERT_Output_High_Z 
AI_CONVERT_Output_Ground 
AI_CONVERT_Output_Enable_Low 
AI_CONVERT_Output_Enable_High 

Definition at line 364 of file ni_stc.h.

Enumerator:
AO_FIFO_Mode_HF_to_F 
AO_FIFO_Mode_F 
AO_FIFO_Mode_HF 
AO_FIFO_Mode_E 

Definition at line 266 of file ni_stc.h.

Enumerator:
CLEAR_WG 

Definition at line 845 of file ni_stc.h.

Enumerator:
AO_Interval_Buffer_Mode 
AO_BC_Source_Select 
AO_UPDATE_Pulse_Width 
AO_UPDATE_Pulse_Timebase 
AO_UPDATE_Original_Pulse 
AO_DMA_PIO_Control 
AO_AOFREQ_Polarity 
AO_FIFO_Enable 
AO_FIFO_Flags_Polarity 
AO_TMRDACWR_Pulse_Width 
AO_Fast_CPU 
AO_Number_Of_DAC_Packages 
AO_Multiple_DACS_Per_Package 

Definition at line 511 of file ni_stc.h.

Enumerator:
AO_Update_Output_High_Z 
AO_Update_Output_Ground 
AO_Update_Output_Enable_Low 
AO_Update_Output_Enable_High 

Definition at line 562 of file ni_stc.h.

Enumerator:
caldac_none 
mb88341 
dac8800 
dac8043 
ad8522 
ad8804 
ad8842 
ad8804_debug 

Definition at line 909 of file ni_stc.h.

Enumerator:
CDI_Sample_Source_Select_Mask 
CDI_Halt_On_Error_Bit 
CDI_Polarity_Bit 
CDI_FIFO_Mode_Bit 
CDI_Data_Lane_Mask 
CDI_Data_Lane_0_15_Bits 
CDI_Data_Lane_16_31_Bits 
CDI_Data_Lane_0_7_Bits 
CDI_Data_Lane_8_15_Bits 
CDI_Data_Lane_16_23_Bits 
CDI_Data_Lane_24_31_Bits 

Definition at line 1356 of file ni_stc.h.

Enumerator:
CDO_Disarm_Bit 
CDO_Arm_Bit 
CDI_Disarm_Bit 
CDI_Arm_Bit 
CDO_Reset_Bit 
CDI_Reset_Bit 
CDO_Error_Interrupt_Enable_Set_Bit 
CDO_Error_Interrupt_Enable_Clear_Bit 
CDI_Error_Interrupt_Enable_Set_Bit 
CDI_Error_Interrupt_Enable_Clear_Bit 
CDO_FIFO_Request_Interrupt_Enable_Set_Bit 
CDO_FIFO_Request_Interrupt_Enable_Clear_Bit 
CDI_FIFO_Request_Interrupt_Enable_Set_Bit 
CDI_FIFO_Request_Interrupt_Enable_Clear_Bit 
CDO_Error_Interrupt_Confirm_Bit 
CDI_Error_Interrupt_Confirm_Bit 
CDO_Empty_FIFO_Interrupt_Enable_Set_Bit 
CDO_Empty_FIFO_Interrupt_Enable_Clear_Bit 
CDO_SW_Update_Bit 
CDI_SW_Update_Bit 

Definition at line 1333 of file ni_stc.h.

Enumerator:
CDI_DMA_Select_Shift 
CDI_DMA_Select_Mask 
CDO_DMA_Select_Shift 
CDO_DMA_Select_Mask 

Definition at line 1313 of file ni_stc.h.

Enumerator:
CDO_FIFO_Empty_Bit 
CDO_FIFO_Full_Bit 
CDO_FIFO_Request_Bit 
CDO_Overrun_Bit 
CDO_Underflow_Bit 
CDI_FIFO_Empty_Bit 
CDI_FIFO_Full_Bit 
CDI_FIFO_Request_Bit 
CDI_Overrun_Bit 
CDI_Overflow_Bit 

Definition at line 1320 of file ni_stc.h.

Enumerator:
CDO_Sample_Source_Select_Mask 
CDO_Retransmit_Bit 
CDO_Halt_On_Error_Bit 
CDO_Polarity_Bit 
CDO_FIFO_Mode_Bit 
CDO_Data_Lane_Mask 
CDO_Data_Lane_0_15_Bits 
CDO_Data_Lane_16_31_Bits 
CDO_Data_Lane_0_7_Bits 
CDO_Data_Lane_8_15_Bits 
CDO_Data_Lane_16_23_Bits 
CDO_Data_Lane_24_31_Bits 

Definition at line 1370 of file ni_stc.h.

Enumerator:
FOUT_Enable 
FOUT_Timebase_Select 
DIO_Serial_Out_Divide_By_2 
Slow_Internal_Time_Divide_By_2 
Slow_Internal_Timebase 
G_Source_Divide_By_2 
Clock_To_Board_Divide_By_2 
Clock_To_Board 
AI_Output_Divide_By_2 
AI_Source_Divide_By_2 
AO_Output_Divide_By_2 
AO_Source_Divide_By_2 
FOUT_Divider_mask 

Definition at line 304 of file ni_stc.h.

Enumerator:
AI_AC_COUPLE 
AI_DIFFERENTIAL 
AI_COMMON 
AI_GROUND 

Definition at line 756 of file ni_stc.h.

Enumerator:
AI_DITHER 
AI_LAST_CHANNEL 

Definition at line 751 of file ni_stc.h.

Enumerator:
CSCMD_POWER_SAVE 
CSCMD_REGISTER_SELECT_MASK 
CSCMD_OFFSET_REGISTER 
CSCMD_GAIN_REGISTER 
CSCMD_CONFIG_REGISTER 
CSCMD_READ 
CSCMD_CONTINUOUS_CONVERSIONS 
CSCMD_SINGLE_CONVERSION 
CSCMD_COMMAND 

Definition at line 882 of file ni_stc.h.

Enumerator:
CSCFG_CAL_CONTROL_MASK 
CSCFG_SELF_CAL_OFFSET 
CSCFG_SELF_CAL_GAIN 
CSCFG_SELF_CAL_OFFSET_GAIN 
CSCFG_SYSTEM_CAL_OFFSET 
CSCFG_SYSTEM_CAL_GAIN 
CSCFG_DONE 
CSCFG_POWER_SAVE_SELECT 
CSCFG_PORT_MODE 
CSCFG_RESET_VALID 
CSCFG_RESET 
CSCFG_UNIPOLAR 
CSCFG_WORD_RATE_2180_CYCLES 
CSCFG_WORD_RATE_1092_CYCLES 
CSCFG_WORD_RATE_532_CYCLES 
CSCFG_WORD_RATE_388_CYCLES 
CSCFG_WORD_RATE_324_CYCLES 
CSCFG_WORD_RATE_17444_CYCLES 
CSCFG_WORD_RATE_8724_CYCLES 
CSCFG_WORD_RATE_4364_CYCLES 
CSCFG_WORD_RATE_MASK 
CSCFG_LOW_POWER 

Definition at line 848 of file ni_stc.h.

Enumerator:
CSS_ADC_BUSY 
CSS_OSC_DETECT 
CSS_OVERRANGE 

Definition at line 893 of file ni_stc.h.

Enumerator:
G1_Gate_Error_Confirm 
G1_TC_Error_Confirm 
AO_BC_TC_Trigger_Error_Confirm 
AO_BC_TC_Error_Confirm 
AO_UI2_TC_Error_Confrim 
AO_UI2_TC_Interrupt_Ack 
AO_UC_TC_Interrupt_Ack 
AO_BC_TC_Interrupt_Ack 
AO_START1_Interrupt_Ack 
AO_UPDATE_Interrupt_Ack 
AO_START_Interrupt_Ack 
AO_STOP_Interrupt_Ack 
AO_Error_Interrupt_Ack 
G1_TC_Interrupt_Ack 
G1_Gate_Interrupt_Ack 

Definition at line 89 of file ni_stc.h.

Enumerator:
Interrupt_Group_C_Enable_Bit 

Definition at line 1385 of file ni_stc.h.

Enumerator:
Interrupt_Group_C_Status_Bit 

Definition at line 1389 of file ni_stc.h.

Enumerator:
AO_TMRDACWRs_In_Progress_St 

Definition at line 250 of file ni_stc.h.

Enumerator:
M_Offset_CDIO_DMA_Select 
M_Offset_SCXI_Status 
M_Offset_AI_AO_Select 
M_Offset_SCXI_Serial_Data_In 
M_Offset_G0_G1_Select 
M_Offset_Misc_Command 
M_Offset_SCXI_Serial_Data_Out 
M_Offset_SCXI_Control 
M_Offset_SCXI_Output_Enable 
M_Offset_AI_FIFO_Data 
M_Offset_Static_Digital_Output 
M_Offset_Static_Digital_Input 
M_Offset_DIO_Direction 
M_Offset_Cal_PWM 
M_Offset_AI_Config_FIFO_Data 
M_Offset_Interrupt_C_Enable 
M_Offset_Interrupt_C_Status 
M_Offset_Analog_Trigger_Control 
M_Offset_AO_Serial_Interrupt_Enable 
M_Offset_AO_Serial_Interrupt_Ack 
M_Offset_AO_Serial_Interrupt_Status 
M_Offset_AO_Calibration 
M_Offset_AO_FIFO_Data 
M_Offset_PFI_Filter 
M_Offset_RTSI_Filter 
M_Offset_SCXI_Legacy_Compatibility 
M_Offset_Interrupt_A_Ack 
M_Offset_AI_Status_1 
M_Offset_Interrupt_B_Ack 
M_Offset_AO_Status_1 
M_Offset_AI_Command_2 
M_Offset_G01_Status 
M_Offset_AO_Command_2 
M_Offset_AO_Status_2 
M_Offset_G0_Command 
M_Offset_G1_Command 
M_Offset_G0_HW_Save 
M_Offset_G0_HW_Save_High 
M_Offset_AI_Command_1 
M_Offset_G0_HW_Save_Low 
M_Offset_AO_Command_1 
M_Offset_G1_HW_Save 
M_Offset_G1_HW_Save_High 
M_Offset_G1_HW_Save_Low 
M_Offset_AI_Mode_1 
M_Offset_G0_Save 
M_Offset_G0_Save_High 
M_Offset_AI_Mode_2 
M_Offset_G0_Save_Low 
M_Offset_AI_SI_Load_A 
M_Offset_G1_Save 
M_Offset_G1_Save_High 
M_Offset_G1_Save_Low 
M_Offset_AI_SI_Load_B 
M_Offset_AO_UI_Save 
M_Offset_AI_SC_Load_A 
M_Offset_AO_BC_Save 
M_Offset_AI_SC_Load_B 
M_Offset_AO_UC_Save 
M_Offset_AI_SI2_Load_A 
M_Offset_AI_SI2_Load_B 
M_Offset_G0_Mode 
M_Offset_G1_Mode 
M_Offset_Joint_Status_1 
M_Offset_G0_Load_A 
M_Offset_Joint_Status_2 
M_Offset_G0_Load_B 
M_Offset_G1_Load_A 
M_Offset_G1_Load_B 
M_Offset_G0_Input_Select 
M_Offset_G1_Input_Select 
M_Offset_AO_Mode_1 
M_Offset_AO_Mode_2 
M_Offset_AO_UI_Load_A 
M_Offset_AO_UI_Load_B 
M_Offset_AO_BC_Load_A 
M_Offset_AO_BC_Load_B 
M_Offset_AO_UC_Load_A 
M_Offset_AO_UC_Load_B 
M_Offset_Clock_and_FOUT 
M_Offset_IO_Bidirection_Pin 
M_Offset_RTSI_Trig_Direction 
M_Offset_Interrupt_Control 
M_Offset_AI_Output_Control 
M_Offset_Analog_Trigger_Etc 
M_Offset_AI_START_STOP_Select 
M_Offset_AI_Trigger_Select 
M_Offset_AI_SI_Save 
M_Offset_AI_DIV_Load_A 
M_Offset_AI_SC_Save 
M_Offset_AO_Start_Select 
M_Offset_AO_Trigger_Select 
M_Offset_AO_Mode_3 
M_Offset_G0_Autoincrement 
M_Offset_G1_Autoincrement 
M_Offset_Joint_Reset 
M_Offset_Interrupt_A_Enable 
M_Offset_Interrupt_B_Enable 
M_Offset_AI_Personal 
M_Offset_AO_Personal 
M_Offset_RTSI_Trig_A_Output 
M_Offset_RTSI_Trig_B_Output 
M_Offset_RTSI_Shared_MUX 
M_Offset_AO_Output_Control 
M_Offset_AI_Mode_3 
M_Offset_Configuration_Memory_Clear 
M_Offset_AI_FIFO_Clear 
M_Offset_AO_FIFO_Clear 
M_Offset_G0_Counting_Mode 
M_Offset_G1_Counting_Mode 
M_Offset_G0_Second_Gate 
M_Offset_G1_Second_Gate 
M_Offset_G0_DMA_Config 
M_Offset_G0_DMA_Status 
M_Offset_G1_DMA_Config 
M_Offset_G1_DMA_Status 
M_Offset_G0_MSeries_ABZ 
M_Offset_G1_MSeries_ABZ 
M_Offset_Clock_and_Fout2 
M_Offset_PLL_Control 
M_Offset_PLL_Status 
M_Offset_PFI_Output_Select_1 
M_Offset_PFI_Output_Select_2 
M_Offset_PFI_Output_Select_3 
M_Offset_PFI_Output_Select_4 
M_Offset_PFI_Output_Select_5 
M_Offset_PFI_Output_Select_6 
M_Offset_PFI_DI 
M_Offset_PFI_DO 
M_Offset_AI_Config_FIFO_Bypass 
M_Offset_SCXI_DIO_Enable 
M_Offset_CDI_FIFO_Data 
M_Offset_CDO_FIFO_Data 
M_Offset_CDIO_Status 
M_Offset_CDIO_Command 
M_Offset_CDI_Mode 
M_Offset_CDO_Mode 
M_Offset_CDI_Mask_Enable 
M_Offset_CDO_Mask_Enable 

Definition at line 928 of file ni_stc.h.

Enumerator:
MSeries_AI_Bypass_Channel_Mask 
MSeries_AI_Bypass_Bank_Mask 
MSeries_AI_Bypass_Cal_Sel_Pos_Mask 
MSeries_AI_Bypass_Cal_Sel_Neg_Mask 
MSeries_AI_Bypass_Mode_Mux_Mask 
MSeries_AO_Bypass_AO_Cal_Sel_Mask 
MSeries_AI_Bypass_Gain_Mask 
MSeries_AI_Bypass_Dither_Bit 
MSeries_AI_Bypass_Polarity_Bit 
MSeries_AI_Bypass_Config_FIFO_Bit 

Definition at line 1221 of file ni_stc.h.

Enumerator:
MSeries_AI_Config_Channel_Type_Mask 
MSeries_AI_Config_Channel_Type_Calibration_Bits 
MSeries_AI_Config_Channel_Type_Differential_Bits 
MSeries_AI_Config_Channel_Type_Common_Ref_Bits 
MSeries_AI_Config_Channel_Type_Ground_Ref_Bits 
MSeries_AI_Config_Channel_Type_Aux_Bits 
MSeries_AI_Config_Channel_Type_Ghost_Bits 
MSeries_AI_Config_Polarity_Bit 
MSeries_AI_Config_Dither_Bit 
MSeries_AI_Config_Last_Channel_Bit 

Definition at line 1129 of file ni_stc.h.

Enumerator:
MSeries_AO_DAC_Offset_Select_Mask 
MSeries_AO_DAC_Offset_0V_Bits 
MSeries_AO_DAC_Offset_5V_Bits 
MSeries_AO_DAC_Reference_Mask 
MSeries_AO_DAC_Reference_10V_Internal_Bits 
MSeries_AO_DAC_Reference_5V_Internal_Bits 
MSeries_AO_Update_Timed_Bit 
MSeries_AO_Bipolar_Bit 

Definition at line 1250 of file ni_stc.h.

Enumerator:
MSeries_Attenuate_x5_Bit 

Definition at line 1261 of file ni_stc.h.

Enumerator:
MSeries_PLL_In_Source_Select_RTSI0_Bits 
MSeries_PLL_In_Source_Select_Star_Trigger_Bits 
MSeries_PLL_In_Source_Select_RTSI7_Bits 
MSeries_PLL_In_Source_Select_PXI_Clock10 
MSeries_PLL_In_Source_Select_Mask 
MSeries_Timebase1_Select_Bit 
MSeries_Timebase3_Select_Bit 
MSeries_RTSI_10MHz_Bit 

Definition at line 1162 of file ni_stc.h.

Enumerator:
Gi_DMA_BankSW_Error_Bit 
Gi_DMA_Reset_Bit 
Gi_DMA_Int_Enable_Bit 
Gi_DMA_Write_Bit 
Gi_DMA_Enable_Bit 

Definition at line 1293 of file ni_stc.h.

Enumerator:
MSeries_PLL_Enable_Bit 
MSeries_PLL_VCO_Mode_200_325MHz_Bits 
MSeries_PLL_VCO_Mode_175_225MHz_Bits 
MSeries_PLL_VCO_Mode_100_225MHz_Bits 
MSeries_PLL_VCO_Mode_75_150MHz_Bits 

Definition at line 1189 of file ni_stc.h.

Enumerator:
MSeries_PLL_Locked_Bit 

Definition at line 1217 of file ni_stc.h.

Enumerator:
ni_reg_normal 
ni_reg_611x 
ni_reg_6711 
ni_reg_6713 
ni_reg_67xx_mask 
ni_reg_6xxx_mask 
ni_reg_622x 
ni_reg_625x 
ni_reg_628x 
ni_reg_m_series_mask 
ni_reg_6143 

Definition at line 912 of file ni_stc.h.

Enumerator:
RTSI_Sub_Selection_1_Bit 

Definition at line 528 of file ni_stc.h.

Enumerator:
Drive_RTSI_Clock_Bit 
Use_RTSI_Clock_Bit 

Definition at line 326 of file ni_stc.h.

Enumerator:
AI_SC_TC_Second_Irq_Enable 
AI_START1_Second_Irq_Enable 
AI_START2_Second_Irq_Enable 
AI_START_Second_Irq_Enable 
AI_STOP_Second_Irq_Enable 
AI_Error_Second_Irq_Enable 
G0_TC_Second_Irq_Enable 
AI_FIFO_Second_Irq_Enable 
G0_Gate_Second_Irq_Enable 
Pass_Thru_0_Second_Irq_Enable 

Definition at line 467 of file ni_stc.h.

Enumerator:
AO_BC_TC_Second_Irq_Enable 
AO_START1_Second_Irq_Enable 
AO_UPDATE_Second_Irq_Enable 
AO_START_Second_Irq_Enable 
AO_STOP_Second_Irq_Enable 
AO_Error_Second_Irq_Enable 
AO_UC_TC_Second_Irq_Enable 
AO_UI2_TC_Second_Irq_Enable 
AO_FIFO_Second_Irq_Enable 
G1_TC_Second_Irq_Enable 
G1_Gate_Second_Irq_Enable 
Pass_Thru_1_Second_Irq_Enable 

Definition at line 481 of file ni_stc.h.

Enumerator:
AO_Immediate_671x 
AO_Timed_611x 
AO_FIFO_Offset_Load_611x 
AO_Later_Single_Point_Updates 
AO_Waveform_Generation_611x 
AO_Misc_611x 
AO_Calibration_Channel_Select_67xx 
AO_Configuration_2_67xx 
CAL_ADC_Command_67xx 
CAL_ADC_Status_67xx 
CAL_ADC_Data_67xx 
CAL_ADC_Config_Data_High_Word_67xx 
CAL_ADC_Config_Data_Low_Word_67xx 

Definition at line 825 of file ni_stc.h.

Enumerator:
PROMOUT 
AI_FIFO_LOWER_NOT_EMPTY 

Definition at line 700 of file ni_stc.h.