From: Frank Mori Hess Date: Sun, 6 Feb 2005 16:17:51 +0000 (+0000) Subject: patch from beat.zahnd@phim.unibe.ch (Beat ZAHND), he says: X-Git-Tag: v0_8_0~134 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a85b2d8985f402270ef0b9d1b926ad23ef653b9;p=comedilib.git patch from beat.zahnd@phim.unibe.ch (Beat ZAHND), he says: I extendended the SCXI support for the 1122 module and moved the scxi_boards structure to scxi.c --- diff --git a/include/comedilib_scxi.h b/include/comedilib_scxi.h index d30e107..c9fd2d1 100644 --- a/include/comedilib_scxi.h +++ b/include/comedilib_scxi.h @@ -31,17 +31,6 @@ struct scxi_board_struct { typedef struct scxi_board_struct scxi_board_t; -const scxi_board_t scxi_boards[] = { - { 0, "unknown\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 }, - { 0xffffffff, "empty\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 }, - { 0x06, "SCXI-1100\0", 1, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32, - 0x00, 0x00, 0x00, 0x00, 0x00 }, - { 0x1e, "SCXI-1102\0", 2, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32, - 0x02, 0x05, 0x01, 0x03, 0x04 }, - //{ 0x14, "SCXI-1124\0", 2, SLOW_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AO, 6, - // 0x02, 0x08, 0x00, 0x03, 0x00 }, -}; - #define n_scxi_boards ((sizeof(scxi_boards)/sizeof(scxi_boards[0]))) struct scxi_module_struct { diff --git a/scxi/scxi.c b/scxi/scxi.c index aea5f32..3f71e50 100644 --- a/scxi/scxi.c +++ b/scxi/scxi.c @@ -3,6 +3,19 @@ #include #include +const scxi_board_t scxi_boards[] = { + { 0, "unknown\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0xffffffff, "empty\0", 2, SLOW_INTERVAL, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0x06, "SCXI-1100\0", 1, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32, + 0x00, 0x00, 0x00, 0x00, 0x00 }, + { 0x1e, "SCXI-1102\0", 2, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 32, + 0x02, 0x05, 0x01, 0x03, 0x04 }, + { 0x0a, "SCXI-1122\0", 2, FAST_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AI, 16, + 0x02, 0x01, 0x00, 0x03, 0x00 }, + //{ 0x14, "SCXI-1124\0", 2, SLOW_INTERVAL, SCXI_DIO_NONE, SCXI_AIO_AO, 6, + // 0x02, 0x08, 0x00, 0x03, 0x00 }, +}; + static int scxi_identify(scxi_mod_t *mod); static int scxi_serial_config(comedi_t *it, unsigned int clock_interval)