Figured out some more ao range related bits.
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 20 Dec 2005 03:25:58 +0000 (03:25 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 20 Dec 2005 03:25:58 +0000 (03:25 +0000)
comedi/drivers/ni_stc.h

index a7db1722871af3c170d1d7e5d4374a88dd9ff24d..562d180e74fa3b6b3ecd96aa7e4f92028b7c9942 100644 (file)
@@ -963,11 +963,18 @@ static inline int M_Offset_AO_Reference_Attenuation(int channel)
 enum MSeries_AO_Config_Bank_Bits
 {
        MSeries_AO_DAC_Offset_Select_Mask = 0x7,
-       MSeries_AO_DAC_Offset_AO_Ground_Bits = 0x0,
+       MSeries_AO_DAC_Offset_0V_Bits = 0x0,
+       MSeries_AO_DAC_Offset_5V_Bits = 0x1,
        MSeries_AO_DAC_Reference_Mask = 0x38,
-       MSeries_AO_DAC_Reference_Internal_Bits = 0x0,
+       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
+       MSeries_AO_Bipolar_Bit = 0x80   // turns on 2's complement encoding
+};
+
+enum MSeries_AO_Reference_Attenuation_Bits
+{
+       MSeries_Attenuate_x5_Bit = 0x1
 };
 
 typedef struct ni_board_struct{