Lines Matching defs:set
46 static void gl646_set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set,
605 /* GPO12 need to be set to zero */
610 /* set GPO12 back to one */
637 throw SaneException("Can't set backtracking parameters without skipping image");
643 throw SaneException("Can't set backtracking parameters without skipping image");
848 * @param dev scannerr's device to set
962 dev->reg.find_reg(0x2c).value = 0x02; /* set resolution (600 DPI) */
964 dev->reg.find_reg(0x2e).value = 0x78; /* set black&white threshold high level */
965 dev->reg.find_reg(0x2f).value = 0x7f; /* set black&white threshold low level */
972 dev->reg.find_reg(0x35).value = 0x01 /*0x00 */ ; /* set maximum word size per line, for buffer full control (10800) */
977 dev->reg.find_reg(0x3d).value = 0x00; /* set feed steps number of motor move */
1028 static void gl646_set_ad_fe(Genesys_Device* dev, std::uint8_t set)
1033 if (set == AFE_INIT) {
1041 if (set == AFE_SET)
1051 if (set == AFE_POWER_SAVE)
1057 /** set up analog frontend
1058 * set up analog frontend
1059 * @param dev device to set up
1060 * @param set action from AFE_SET, AFE_INIT and AFE_POWERSAVE
1063 static void gl646_wm_hp3670(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set,
1069 switch (set)
1091 * fe_reg_0x03 set to 0x32 or 0x12 but not to 0x02 */
1109 * @param dev device to set
1110 * @param set action to execute
1113 static void gl646_set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set,
1116 DBG_HELPER_ARGS(dbg, "%s,%d", set == AFE_INIT ? "init" :
1117 set == AFE_SET ? "set" :
1118 set == AFE_POWER_SAVE ? "powersave" : "huh?", dpi);
1125 gl646_set_ad_fe(dev, set);
1139 gl646_wm_hp3670(dev, sensor, set, dpi);
1147 if (set == AFE_INIT) {
1161 // set fontend to power saving mode
1162 if (set == AFE_POWER_SAVE) {
1206 * @param dev device to set
1207 * @param set action to execute
1210 std::uint8_t set) const
1212 gl646_set_fe(dev, sensor, set, dev->settings.yres);
1251 local_reg.find_reg(0x03).value &= 0xf0; /* disable lampdog and set lamptime = 0 */
1253 local_reg.find_reg(0x03).value = (local_reg.get8(0x03) & 0xf0) | 0x09; /* enable lampdog and set lamptime = 1 */
1255 local_reg.find_reg(0x03).value = (local_reg.get8(0x03) & 0xf0) | 0x0f; /* enable lampdog and set lamptime = 7 */
1301 * HOMESNR is set if no document in front of sensor, the sequence of events is
1324 // home sensor is set if a document is inserted
1348 /* set up to fast move before scan then move until document is detected */
1362 /* set GPO */
1402 /* set up to idle */
1465 * TODO we currently rely on AGOHOME not being set for sheetfed scanners,
1488 // home sensor is set when document is inserted
1505 /* set up to fast move before scan then move until document is detected */
1519 /* set GPO */
2466 // set up for a full width 2 lines gray scan without moving
2519 // to detect real power up condition, we write to REG_0x41 with pwrbit set, then read it back.
2520 // When scanner is cold (just replugged) PWRBIT will be set in the returned value
2530 /* if scanning session hasn't been initialized, set it up */
2743 // do what is needed to get a new set of events, but try to not loose any of them.