const char *name;
int i_NbrAiChannel;
int i_NbrAiChannelDiff;
- int i_AiMaxdata;
+ unsigned int ai_maxdata;
unsigned char b_AvailableConvertUnit;
unsigned int ui_MinAcquisitiontimeNs;
unsigned int has_ao:1;
.name = "apci3000-16",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ttl_io = 1,
.name = "apci3000-8",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ttl_io = 1,
.name = "apci3000-4",
.i_NbrAiChannel = 4,
.i_NbrAiChannelDiff = 2,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ttl_io = 1,
.name = "apci3006-16",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ttl_io = 1,
.name = "apci3006-8",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ttl_io = 1,
.name = "apci3006-4",
.i_NbrAiChannel = 4,
.i_NbrAiChannelDiff = 2,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ttl_io = 1,
.name = "apci3010-16",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
.name = "apci3010-8",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
.name = "apci3010-4",
.i_NbrAiChannel = 4,
.i_NbrAiChannelDiff = 2,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
.name = "apci3016-16",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
.name = "apci3016-8",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
.name = "apci3016-4",
.i_NbrAiChannel = 4,
.i_NbrAiChannelDiff = 2,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
.name = "apci3100-16-4",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ao = 1,
.name = "apci3100-8-4",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ao = 1,
.name = "apci3106-16-4",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ao = 1,
.name = "apci3106-8-4",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 10000,
.has_ao = 1,
.name = "apci3110-16-4",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_ao = 1,
.name = "apci3110-8-4",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 4095,
+ .ai_maxdata = 0x0fff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_ao = 1,
.name = "apci3116-16-4",
.i_NbrAiChannel = 16,
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_ao = 1,
.name = "apci3116-8-4",
.i_NbrAiChannel = 8,
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_ao = 1,
[BOARD_APCI3003] = {
.name = "apci3003",
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 7,
.ui_MinAcquisitiontimeNs = 2500,
.has_dig_in = 1,
[BOARD_APCI3002_16] = {
.name = "apci3002-16",
.i_NbrAiChannelDiff = 16,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
[BOARD_APCI3002_8] = {
.name = "apci3002-8",
.i_NbrAiChannelDiff = 8,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
[BOARD_APCI3002_4] = {
.name = "apci3002-4",
.i_NbrAiChannelDiff = 4,
- .i_AiMaxdata = 65535,
+ .ai_maxdata = 0xffff,
.b_AvailableConvertUnit = 6,
.ui_MinAcquisitiontimeNs = 5000,
.has_dig_in = 1,
s->n_chan = board->i_NbrAiChannelDiff;
devpriv->b_SingelDiff = 1;
}
- s->maxdata = board->i_AiMaxdata;
+ s->maxdata = board->ai_maxdata;
s->len_chanlist = s->n_chan;
s->range_table = &apci3xxx_ai_range;