Lines Matching defs:motor

59  * master motor settings table entry
78 * master motor settings, for a given motor and dpi,
82 /* HP3670 motor settings */
139 /* HP2400/G2410 motor settings base motor dpi = 600 */
188 /* XP 200 motor settings */
284 /* MD5345/6471 motor settings */
403 * stop scanner's motor
446 Motor_Master *motor = nullptr;
452 * motor mode setting */
458 motor = &motor_master[i];
461 if (motor == nullptr) {
462 throw SaneException("unable to find settings for motor %d at %d dpi, color=%d",
470 auto slope_table1 = create_slope_table_for_speed(motor->slope1, motor->slope1.max_speed_w,
473 auto slope_table2 = create_slope_table_for_speed(motor->slope2, motor->slope2.max_speed_w,
497 if (motor->fastmod) {
509 /* setup motor power and direction */
518 /* fastfed enabled (2 motor slope tables) */
519 if (motor->fastfed) {
527 switch (motor->steptype)
615 /* motor steps used */
616 unsigned forward_steps = motor->fwdbwd;
617 unsigned backward_steps = motor->fwdbwd;
680 int feed_offset = (total_lines * dev->motor.base_ydpi) / motor->dpi;
694 * for now, special casing each motor */
697 switch (motor->dpi) {
721 switch (motor->dpi) {
742 switch (motor->dpi) {
768 unsigned step_shift = static_cast<unsigned>(motor->steptype);
770 if (motor->fastfed)
789 regs->find_reg(0x65).value = motor->mtrpwm;
795 move, motor->fwdbwd, &z1, &z2);
977 dev->reg.find_reg(0x3d).value = 0x00; /* set feed steps number of motor move */
985 dev->reg.find_reg(0x64).value = 0x00; /* motor PWM frequency */
986 dev->reg.find_reg(0x65).value = 0x00; /* PWM duty cycle for table one motor phase (63 = max) */
988 // PWM duty cycle for table one motor phase (63 = max)
1351 /* AGOME, 2 slopes motor moving */
1354 /* motor feeding steps to 0 */
1377 // start motor
1498 /* wait for motor to stop */
1508 /* AGOME, 2 slopes motor moving , eject 'backward' */
1511 /* motor feeding steps to 119880 */
1534 // start motor
1544 /* loop until paper sensor tells paper is out, and till motor is running */
1575 local_reg.init_reg(0x0f, 0x00); // do not start motor yet
1616 throw SaneException(SANE_STATUS_IO_ERROR, "could not stop motor");
1646 /* stop motor if needed */
1653 DBG(DBG_info, "%s: ensuring that motor is off\n", __func__);
1674 throw SaneException(SANE_STATUS_DEVICE_BUSY, "motor is still on: device busy");
1764 // stop the motor
2498 /* turn off motor during this scan */
2506 * initialize ASIC : registers, motor tables, and gamma tables
2729 // end scan , waiting the motor to stop if needed (if moving), but without ejecting doc
2890 /* we put scan's dpi, not motor one */
2942 move = static_cast<float>((move * dev->motor.base_ydpi) / MM_PER_INCH);