Added some missing registers used by ai commands to m_series_stc_writew().
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 28 Dec 2005 17:12:42 +0000 (17:12 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 28 Dec 2005 17:12:42 +0000 (17:12 +0000)
comedi/drivers/ni_pcimio.c

index f0f654926e4c2d4f5060288af4a67e445012f844..1482ec17f8b3d330a277ac8112c6be64c3998762 100644 (file)
@@ -1033,6 +1033,9 @@ static void m_series_stc_writew(comedi_device *dev, uint16_t data, int reg)
        case AI_Command_1_Register:
                offset = M_Offset_AI_Command_1;
                break;
+       case AI_Command_2_Register:
+               offset = M_Offset_AI_Command_2;
+               break;
        case AI_Mode_1_Register:
                offset = M_Offset_AI_Mode_1;
                break;
@@ -1048,6 +1051,22 @@ static void m_series_stc_writew(comedi_device *dev, uint16_t data, int reg)
        case AI_Personal_Register:
                offset = M_Offset_AI_Personal;
                break;
+       case AI_SI2_Load_A_Register:
+               // this is actually a 32 bit register on m series boards
+               ni_writel(data, M_Offset_AI_SI2_Load_A);
+               return;
+               break;
+       case AI_SI2_Load_B_Register:
+               // this is actually a 32 bit register on m series boards
+               ni_writel(data, M_Offset_AI_SI2_Load_B);
+               return;
+               break;
+       case AI_START_STOP_Select_Register:
+               offset = M_Offset_AI_START_STOP_Select;
+               break;
+       case AI_Trigger_Select_Register:
+               offset = M_Offset_AI_Trigger_Select;
+               break;
        case AO_Command_1_Register:
                offset = M_Offset_AO_Command_1;
                break;