Lines Matching defs:value

163     auto value = dev.interface->read_register(address);
165 status.is_replugged = !(value & PWRBIT);
166 status.is_buffer_empty = value & BUFEMPTY;
167 status.is_feeding_finished = value & FEEDFSH;
168 status.is_scanning_finished = value & SCANFSH;
169 status.is_at_home = value & HOMESNR;
170 status.is_lamp_on = value & LAMPSTS;
171 status.is_front_end_busy = value & FEBUSY;
172 status.is_motor_enabled = value & MOTORENB;
197 * @param val value read from status register
217 std::uint8_t value, std::uint8_t mask)
220 reg_value = (reg_value & ~mask) | (value & mask);
297 * @param *empty return value
571 regs.find_reg(0x03).value |= REG_0x03_LAMPPWR;
591 regs.find_reg(0x03).value &= ~REG_0x03_LAMPPWR;
594 regs.find_reg(0x03).value &= ~REG_0x03_LAMPPWR;
612 regs.find_reg(0x02).value |= REG_0x02_MTRPWR;
614 regs.find_reg(0x02).value &= ~REG_0x02_MTRPWR;
655 * @param max value for gamma
680 std::uint16_t value)
682 array[pos * 2 + 0] = value & 0xff;
683 array[pos * 2 + 1] = (value >> 8) & 0xff;
745 // unstable data, just set it to 0 which is the most likely value of uninitialized memory
746 // (proper value is probably 0xff)
1300 std::uint8_t compute_frontend_gain_wolfson(float value, float target_value)
1314 {value} = {input} * 208 / (283 - 0)
1319 {PGA} = 283 * (1 - {value} / {target_value})
1321 float gain = value / target_value;
1326 std::uint8_t compute_frontend_gain_lide_80(float value, float target_value)
1328 int code = static_cast<int>((target_value / value) * 12);
1332 std::uint8_t compute_frontend_gain_wolfson_gl841(float value, float target_value)
1336 float inv_gain = target_value / value;
1342 std::uint8_t compute_frontend_gain_wolfson_gl846_gl847_gl124(float value, float target_value)
1346 float inv_gain = target_value / value;
1352 std::uint8_t compute_frontend_gain_analog_devices(float value, float target_value)
1362 {value} = {input} * 6 / (1 + 5 * ( 63 - 0) / 63 ) )
1367 {PGA} = (378 / 5) * ({target_value} - {value} / {target_value})
1369 int code = static_cast<int>((378.0f / 5.0f) * ((target_value - value) / target_value));
1373 std::uint8_t compute_frontend_gain(float value, float target_value,
1378 return compute_frontend_gain_wolfson(value, target_value);
1380 return compute_frontend_gain_analog_devices(value, target_value);
1382 return compute_frontend_gain_lide_80(value, target_value);
1384 return compute_frontend_gain_wolfson_gl841(value, target_value);
1388 return compute_frontend_gain_wolfson_gl846_gl847_gl124(value, target_value);
1414 DBG (DBG_io2, "%s: value=0x%02x\n", __func__, val);
1525 throw SaneException("Unknown dpihw value: %d", dpihw);
1587 regs.find_reg(gl646::REG_0x01).value &= ~gl646::REG_0x01_SCAN;
1591 regs.find_reg(gl841::REG_0x01).value &= ~gl841::REG_0x01_SCAN;
1595 regs.find_reg(gl842::REG_0x01).value &= ~gl842::REG_0x01_SCAN;
1599 regs.find_reg(gl843::REG_0x01).value &= ~gl843::REG_0x01_SCAN;
1604 regs.find_reg(gl846::REG_0x01).value &= ~gl846::REG_0x01_SCAN;
1608 regs.find_reg(gl847::REG_0x01).value &= ~gl847::REG_0x01_SCAN;
1612 regs.find_reg(gl124::REG_0x01).value &= ~gl124::REG_0x01_SCAN;
1907 * @param out_min minimal out value
1908 * @param out_max maximal out value
1935 * out vertical offset at central input value */