Lines Matching defs:inq

660 sanei_pieusb_cmd_inquiry(SANE_Int device_number, struct Pieusb_Scanner_Properties* inq, SANE_Byte size, struct Pieusb_Command_Status *status)
678 inq->deviceType = _get_byte(data, 0);
679 inq->additionalLength = _get_byte(data, 4);
680 _copy_bytes((SANE_Byte*)(inq->vendor), data+8, 8); /* Note: not 0-terminated */
681 _copy_bytes((SANE_Byte*)(inq->product), data+16, 16); /* Note: not 0-terminated */
682 _copy_bytes((SANE_Byte*)(inq->productRevision), data+32, 4); /* Note: not 0-terminated */
684 inq->maxResolutionX = _get_short(data, 36);
685 inq->maxResolutionY = _get_short(data, 38);
686 inq->maxScanWidth = _get_short(data, 40);
687 inq->maxScanHeight = _get_short(data, 42);
688 inq->filters = _get_byte(data, 44);
689 inq->colorDepths = _get_byte(data, 45);
690 inq->colorFormat = _get_byte(data, 46);
691 inq->imageFormat = _get_byte(data, 48);
692 inq->scanCapability = _get_byte(data, 49);
693 inq->optionalDevices = _get_byte(data, 50);
694 inq->enhancements = _get_byte(data, 51);
695 inq->gammaBits = _get_byte(data, 52);
696 inq->lastFilter = _get_byte(data, 53);
697 inq->previewScanResolution = _get_short(data, 54);
699 _copy_bytes((SANE_Byte*)(inq->firmwareVersion), data+96, 4); inq->firmwareVersion[4]=0x00;
700 inq->halftones = _get_byte(data, 100);
701 inq->minumumHighlight = _get_byte(data, 101);
702 inq->maximumShadow = _get_byte(data, 102);
703 inq->calibrationEquation = _get_byte(data, 103);
704 inq->maximumExposure = _get_short(data ,104);
705 inq->minimumExposure = _get_short(data ,106);
706 inq->x0 = _get_short(data, 108);
707 inq->y0 = _get_short(data, 110);
708 inq->x1 = _get_short(data, 112);
709 inq->y1 = _get_short(data, 114);
710 inq->model = _get_short(data, 116);
711 _copy_bytes((SANE_Byte*)(inq->production), data+120, 4);
712 _copy_bytes((SANE_Byte*)(inq->timestamp), data+124, 20);
713 _copy_bytes((SANE_Byte*)(inq->signature), data+144, 40);
715 for (k=0; k<40; k++) if (inq->signature[k]==0x0a || inq->signature[k]==0x0d) inq->signature[k]=' ';