first try at at-mio-16de-10 calibration
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 28 Jul 2005 01:03:00 +0000 (01:03 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 28 Jul 2005 01:03:00 +0000 (01:03 +0000)
comedi_calibrate/ni.c

index 7e8bfd80897dfa208d223ef51cf399b25e14d27c..94a6613bf16dff3080bfe8790f6d88700ac383f6 100644 (file)
@@ -49,6 +49,7 @@ static void ni_setup_observables( calibration_setup_t *setup );
 static void ni_setup_observables_611x( calibration_setup_t *setup );
 static void ni67xx_setup_observables( calibration_setup_t *setup );
 
+static int cal_ni_at_mio_16de_10(calibration_setup_t *setup);
 static int cal_ni_at_mio_16e_2(calibration_setup_t *setup);
 static int cal_ni_at_mio_64e_3(calibration_setup_t *setup);
 static int cal_ni_daqcard_ai_16xe_50(calibration_setup_t *setup);
@@ -81,7 +82,7 @@ static double ni_get_reference( calibration_setup_t *setup, int lsb_loc,int msb_
 
 static struct board_struct boards[]={
        { "at-ai-16xe-10", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1b7, 0x1b8 },
-       { "at-mio-16de-10", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1a7, 0x1a8 },
+       { "at-mio-16de-10", STATUS_GUESS, cal_ni_at_mio_16de_10, ni_setup_observables, 0x1a7, 0x1a8 },
        { "at-mio-16e-1", STATUS_DONE, cal_ni_at_mio_16e_1, ni_setup_observables, 0x1a9, 0x1aa },
        { "at-mio-16e-2", STATUS_DONE, cal_ni_at_mio_16e_2, ni_setup_observables, 0x1a9, 0x1aa },
        { "at-mio-16e-10", STATUS_DONE, cal_ni_at_mio_16e_10, ni_setup_observables, 0x1a7, 0x1a8 },
@@ -804,6 +805,16 @@ static int cal_ni_pci_6034e(calibration_setup_t *setup)
        return cal_ni_generic( setup, &layout );
 }
 
+static int cal_ni_at_mio_16de_10(calibration_setup_t *setup)
+{
+       if(comedi_get_version_code(setup->dev) <= COMEDI_VERSION_CODE(0, 7, 70))
+       {
+               DPRINT(0, "WARNING: you need comedi driver version 0.7.71 or later\n"
+                "for this calibration to work properly\n" );
+       }
+       return cal_ni_pci_6035e(setup);
+}
+
 static int cal_ni_pci_6035e(calibration_setup_t *setup)
 {
        /* this is for the ad8804_debug caldac */