Lines Matching refs:sensorcfg
1144 while ((cfg_scanmode_get (dev->sensorcfg->type, a, ®) == OK)
1291 if (dev->sensorcfg->type == -1)
1293 dev->sensorcfg->type = RTS_Sensor_Type (dev->usb_handle);
1308 if (dev->sensorcfg->type == CCD_SENSOR)
1343 cfg_gainoffset_get (dev->sensorcfg->type, default_gain_offset);
1379 if (dev->sensorcfg->type == CCD_SENSOR)
1381 (dev->sensorcfg->line_distance * scan2.resolution_y) /
1382 dev->sensorcfg->resolution;
1423 if ((((dev->sensorcfg->line_distance * scan2.resolution_y) *
1424 2) / dev->sensorcfg->resolution) == 1)
1429 ((dev->sensorcfg->rgb_order[c] / 2) * line_size) +
1439 (dev->sensorcfg->rgb_order[c] * (mydistance * line_size)) +
1597 ((dev->sensorcfg->type == CIS_SENSOR) ? 0 : 1));
1620 hwdcfg.sensorevenodddistance = dev->sensorcfg->evenodd_distance;
2221 if (dev->sensorcfg != NULL)
2223 free (dev->sensorcfg);
2224 dev->sensorcfg = NULL;
2273 if (dev->sensorcfg != NULL)
2276 dev->sensorcfg = malloc (sizeof (struct st_sensorcfg));
2277 if (dev->sensorcfg != NULL)
2279 rst = cfg_sensor_get (dev->sensorcfg);
2280 dbg_sensor (dev->sensorcfg);
2323 while ((cfg_timing_get (dev->sensorcfg->type, a, ®) == OK)
2421 Lamp_PWM_Save (dev, cfg_fixedpwm_get (dev->sensorcfg->type, ST_NORMAL));
2493 cfg_fixedpwm_get (dev->sensorcfg->type,
2961 while ((cfg_motormove_get (dev->sensorcfg->type, a, ®) != ERROR)
3538 cfg_refvoltages_get (dev->sensorcfg->type, &vrts, &vrms, &vrbs);
3681 if (dev->sensorcfg->type == CCD_SENSOR)
5471 if (dev->sensorcfg->type == CIS_SENSOR)
5473 else if (dev->sensorcfg->type == CCD_SENSOR)
6588 if (dev->sensorcfg->type == CCD_SENSOR)
6590 (dev->sensorcfg->line_distance * scan2.resolution_y) /
6591 dev->sensorcfg->resolution;
6625 if ((((dev->sensorcfg->line_distance * scan2.resolution_y) *
6626 2) / dev->sensorcfg->resolution) == 1)
6631 ((dev->sensorcfg->rgb_order[c] / 2) * line_size) +
6641 (dev->sensorcfg->rgb_order[c] * (mydistance * line_size)) +
6844 if (dev->sensorcfg->rgb_order[CL_RED] == 1)
6850 else if (dev->sensorcfg->rgb_order[CL_GREEN] == 1)
6958 if (dev->sensorcfg->rgb_order[CL_RED] == 1)
6960 else if (dev->sensorcfg->rgb_order[CL_GREEN] == 1)
8221 hwdcfg.sensorevenodddistance = dev->sensorcfg->evenodd_distance;
8259 if (dev->sensorcfg->type == CCD_SENSOR)
8691 (dev->sensorcfg->line_distance * scancfg->resolution_y) /
8692 dev->sensorcfg->resolution;
8697 dev->sensorcfg->resolution;
8723 (dev->sensorcfg->line_distance * scan2.resolution_y) * 2;
8725 (iLineDistance / dev->sensorcfg->resolution) + 1;
8735 ((dev->sensorcfg->line_distance * 2) +
8739 dev->sensorcfg->line_distance * scan2.resolution_y;
8742 (iLineDistance / dev->sensorcfg->resolution) + 1;
8964 data_bitset (&Regs[0x12], 0x03, dev->sensorcfg->rgb_order[scancfg->channel]); /*------xx*/
8975 if (scancfg->channel == dev->sensorcfg->rgb_order[1])
8985 else if (scancfg->channel == dev->sensorcfg->rgb_order[2])
9003 data_bitset (&Regs[0x12], 0x03, dev->sensorcfg->channel_gray[0]); /*------xx*/
9004 data_bitset (&Regs[0x12], 0x0c, dev->sensorcfg->channel_gray[1]); /*----xx--*/
9028 data_bitset (&Regs[0x60a], 0x03, dev->sensorcfg->channel_color[2]); /*------xx*/
9029 data_bitset (&Regs[0x60a], 0x0c, dev->sensorcfg->channel_color[1]); /*----xx--*/
9030 data_bitset (&Regs[0x60a], 0x30, dev->sensorcfg->channel_color[0]); /*--xx----*/
9033 data_bitset (&Regs[0x12], 0x03, dev->sensorcfg->rgb_order[0]); /*------xx*/
9034 data_bitset (&Regs[0x12], 0x0c, dev->sensorcfg->rgb_order[1]); /*----xx--*/
9035 data_bitset (&Regs[0x12], 0x30, dev->sensorcfg->rgb_order[2]); /*--xx----*/
9736 (dev, dev->sensorcfg->channel_color[chnl] | 0x14,
9749 dev->sensorcfg->channel_color[chnl], 1) == OK)
9799 (dev, dev->sensorcfg->channel_color[chnl] | 0x10,
9812 dev->sensorcfg->channel_color[chnl], 0) == OK)
10375 ((dev->sensorcfg->type == CCD_SENSOR) ? 24 : 50);
10660 cfg_vrefs_get (dev->sensorcfg->type, scancfg->resolution_x, &scan.ler,
11478 cfg_wrefs_get (dev->sensorcfg->type, bitmode, resolution, scantype,
11511 cfg_offset_get (dev->sensorcfg->type, resolution, scantype,
11581 cfg_effectivepixel_get (dev->sensorcfg->type, resolution);
12579 cfg_shading_cut_get (dev->sensorcfg->type, scancfg->depth,