Lines Matching refs:genesys
23 #include "../../../backend/genesys/device.h"
24 #include "../../../backend/genesys/enums.h"
25 #include "../../../backend/genesys/error.h"
26 #include "../../../backend/genesys/low.h"
27 #include "../../../backend/genesys/genesys.h"
28 #include "../../../backend/genesys/test_settings.h"
29 #include "../../../backend/genesys/test_scanner_interface.h"
30 #include "../../../backend/genesys/utilities.h"
50 genesys::ScanMethod method = genesys::ScanMethod::FLATBED;
51 genesys::ScanColorMode color_mode = genesys::ScanColorMode::COLOR_SINGLE_PASS;
145 return genesys::fixed_to_float(value);
212 void print_checkpoint(const genesys::Genesys_Device& dev,
213 genesys::TestScannerInterface& iface,
220 << "dev: " << genesys::format_indent_braced_list(4, dev) << "\n\n"
222 << genesys::format_indent_braced_list(4, iface.cached_regs()) << "\n\n"
224 << genesys::format_indent_braced_list(4, iface.cached_fe_regs()) << "\n\n"
253 auto print_checkpoint_wrapper = [&](const genesys::Genesys_Device& dev,
254 genesys::TestScannerInterface& iface,
260 genesys::enable_testing_mode(config.vendor_id, config.product_id, config.bcd_device,
266 TIE(sane_open(genesys::get_testing_device_name().c_str(), &handle));
273 genesys::scan_method_to_option_string(config.method));
275 genesys::scan_color_mode_to_option_string(config.color_mode));
276 if (config.color_mode != genesys::ScanColorMode::LINEART) {
312 genesys::disable_testing_mode();
405 genesys::genesys_init_usb_device_tables();
406 genesys::genesys_init_sensor_tables();
407 genesys::verify_usb_device_tables();
408 genesys::verify_sensor_tables();
413 for (const auto& usb_dev : *genesys::s_usb_devices) {
417 if (genesys::has_flag(model.flags, genesys::ModelFlag::UNTESTED)) {
425 for (auto scan_mode : { genesys::ScanColorMode::GRAY,
426 genesys::ScanColorMode::COLOR_SINGLE_PASS }) {
429 if (scan_mode == genesys::ScanColorMode::COLOR_SINGLE_PASS) {