Lines Matching refs:regs

79 rts8891_write_all (SANE_Int devnum, SANE_Byte * regs, SANE_Int count)
93 sprintf (message + 5 * i, "0x%02x ", regs[i]);
107 local_regs[j] = regs[i];
136 buffer[i + 4] = regs[0xb4 + i];
205 rts8891_simple_scan (SANE_Int devnum, SANE_Byte * regs, int regcount,
212 rts8891_write_all (devnum, regs, regcount);
414 rts8891_move (struct Rts8891_Device *device, SANE_Byte * regs,
425 rts8891_set_default_regs (regs);
438 regs[0x32] = 0x80;
439 regs[0x33] = 0x81;
440 regs[0x35] = 0x10;
441 regs[0x36] = 0x24;
442 regs[0x39] = 0x02;
443 regs[0x3a] = 0x0e;
445 regs[0x64] = 0x01;
446 regs[0x65] = 0x20;
448 regs[0x79] = 0x20;
449 regs[0x7a] = 0x01;
451 regs[0x80] = 0x32;
452 regs[0x82] = 0x33;
453 regs[0x85] = 0x46;
454 regs[0x86] = 0x0b;
455 regs[0x87] = 0x8c;
456 regs[0x88] = 0x10;
457 regs[0x89] = 0xb2;
458 regs[0x8d] = 0x3b;
459 regs[0x8e] = 0x60;
461 regs[0x90] = 0x1c;
462 regs[0xb2] = 0x16; /* 0x10 : stop when at home, 0x04: no data */
463 regs[0xc0] = 0x00;
464 regs[0xc1] = 0x00;
465 regs[0xc3] = 0x00;
466 regs[0xc4] = 0x00;
467 regs[0xc5] = 0x00;
468 regs[0xc6] = 0x00;
469 regs[0xc7] = 0x00;
470 regs[0xc8] = 0x00;
471 regs[0xca] = 0x00;
472 regs[0xcd] = 0x00;
473 regs[0xce] = 0x00;
474 regs[0xcf] = 0x00;
475 regs[0xd0] = 0x00;
476 regs[0xd1] = 0x00;
477 regs[0xd2] = 0x00;
478 regs[0xd3] = 0x00;
479 regs[0xd4] = 0x00;
480 regs[0xd6] = 0x6b;
481 regs[0xd7] = 0x00;
482 regs[0xd8] = 0x00;
483 regs[0xd9] = 0xad;
484 regs[0xda] = 0xa7;
485 regs[0xe2] = 0x17;
486 regs[0xe3] = 0x0d;
487 regs[0xe4] = 0x06;
488 regs[0xe5] = 0xf9;
489 regs[0xe7] = 0x53;
490 regs[0xe8] = 0x02;
491 regs[0xe9] = 0x02;
497 regs[0x13] = 0x39; /* 0x20 */
498 regs[0x14] = 0xf0; /* 0xf8 */
499 regs[0x15] = 0x29; /* 0x28 */
500 regs[0x16] = 0x0f; /* 0x07 */
501 regs[0x17] = 0x10; /* 0x00 */
502 regs[0x23] = 0x00; /* 0xff */
503 regs[0x35] = 0x29; /* 0x10 */
504 regs[0x36] = 0x21; /* 0x24 */
505 regs[0x39] = 0x00; /* 0x02 */
506 regs[0x80] = 0xb0; /* 0x32 */
507 regs[0x82] = 0xb1; /* 0x33 */
508 regs[0xe2] = 0x0b; /* 0x17 */
509 regs[0xe5] = 0xf3; /* 0xf9 */
510 regs[0xe6] = 0x01; /* 0x00 */
514 regs[0] = 0xf5;
516 sanei_rts88xx_set_status (device->devnum, regs, regs10, regs11);
517 sanei_rts88xx_set_scan_area (regs, distance, distance + 1, 100, 200);
518 sanei_rts88xx_set_gain (regs, 16, 16, 16);
519 sanei_rts88xx_set_offset (regs, 127, 127, 127);
525 regs[0x36] = regs[0x36] | 0x08;
529 regs[0x36] = regs[0x36] & 0xf7;
533 status = rts8891_write_all (device->devnum, regs, RTS8891_MAX_REGISTERS);
545 rts8891_wait_for_home (struct Rts8891_Device *device, SANE_Byte * regs)
573 regs[0] = regs[0] & 0xef;
596 rts8891_park (struct Rts8891_Device *device, SANE_Byte *regs, SANE_Bool wait)
603 rts8891_move (device, regs, 8000, SANE_FALSE);
607 status = rts8891_wait_for_home (device,regs);
665 dev->regs[LAMP_REG] = 0x8d;
667 &(dev->regs[LAMP_REG]));