Olaf Meeuwissen
e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
...
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320 .
2021-02-12 17:41:38 +09:00
Peter Marschall
493ed0a533
spelling fixes for mustek_usb2 backend
2020-08-29 09:18:03 +02:00
Bernhard Übelacker
93340afddf
mustek_usb2: Avoid stack smashing. Fixes #35
...
Use a properly sized variable in call to sanei_usb_{read,write}_bulk.
Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886777
Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907972
2019-01-21 20:21:55 +09:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst
e21bb28e50
Source code string typo fixes
2017-05-13 18:38:43 +09:00
Olaf Meeuwissen
220429ff9e
mustek_usb2: fix [-Wunused-but-set-variable] compiler warnings
2015-12-27 18:41:54 +09:00
m. allan noah
e6a249e042
revert mustek_usb2 backend upgrade
...
Instead of 100+ revert commits, I've lumped everything into a
single commit. This removes all of dedf0ac30
through db7f038f1
,
plus the parts of 497d59180
which were specific to mustek_usb2
2015-11-12 21:10:49 -05:00
Jan Hauffa
a64477bf1a
Remove USB 2.0 mode, as it causes horrible backtracking for resolutions > 300 dpi.
2015-11-08 16:54:49 -05:00
Jan Hauffa
d0ea79f000
Add model-specific functions for computing the number of motor steps.
2015-11-08 16:54:49 -05:00
Jan Hauffa
15fbbf60a6
Split SetMotorSteps into a function that computes the number of steps for the various motor states and and a function that writes the step counts to the controller's registers.
2015-11-08 16:54:49 -05:00
Jan Hauffa
70dcfa4ced
Simplify SetMotorStepTable*.
2015-11-08 16:54:49 -05:00
Jan Hauffa
27b636d294
Provide model-specific function for computing the motor current.
2015-11-08 16:54:49 -05:00
Jan Hauffa
8f405f5a93
Update motor table generation according to new dumps.
2015-11-08 16:54:48 -05:00
Jan Hauffa
2fa054456e
Detect USB controller type.
2015-11-08 16:54:48 -05:00
Jan Hauffa
d8a203a693
Add function to compute scan motor table for 4800H48U, rearrange code in Asic_SetWindow.
2015-11-08 16:54:48 -05:00
Jan Hauffa
ceb7d29690
Fix some misuse of SENSOR_DPI constant.
2015-11-08 16:54:48 -05:00
Jan Hauffa
30e3907156
Allow for model-specific parameters in mustek_usb2_high.c.
2015-11-08 16:54:48 -05:00
Jan Hauffa
47c56e3f19
Add some motor-related code for the Microtek 4800H48U.
2015-11-08 16:54:48 -05:00
Jan Hauffa
7b26e0e3fa
Simplify SimpleMotorMove.
2015-11-08 16:54:48 -05:00
Jan Hauffa
4ced7a900a
Improve debug logging and fix a bug in TestDRAM.
2015-11-08 16:54:48 -05:00
Jan Hauffa
e1c00bd9ab
Introduce SetMotorCurrentAndPhase for Microtek scanner, fix old bug in simplification of Mustek variant.
2015-11-08 16:54:48 -05:00
Jan Hauffa
96b4950499
Register related fixes.
2015-11-08 16:54:48 -05:00
Jan Hauffa
5d556cd5e6
Introduce structure for specifying model-specific parameters on the ASIC level.
2015-11-08 16:54:48 -05:00
Jan Hauffa
877f250b5c
Resolve issue with debug logging.
2015-11-08 16:54:47 -05:00
Jan Hauffa
7fda9bbf93
Introduce support for multiple scanners.
...
Keep all state local and ensure that all resources are freed by sane_exit. Ensure that each function returns only those error codes that are valid according to the SANE standard.
2015-11-08 16:54:47 -05:00
Jan Hauffa
bc203e8aa1
Sanitize option handling and add support for scanner buttons.
2015-11-08 16:54:47 -05:00
Jan Hauffa
b2b3cf767a
Use standard macros for byte swapping.
2015-11-08 16:54:47 -05:00
Jan Hauffa
281f53aa18
Remaining endian safety fixes.
2015-11-08 16:54:47 -05:00
Jan Hauffa
80b7249ebf
Resolve minor thread safety problem.
2015-11-08 16:54:47 -05:00
Jan Hauffa
de84f51270
Simplify row stride calculation in Asic_SetWindow().
2015-11-08 16:54:47 -05:00
Jan Hauffa
60a244ed1e
Store size of shading table in ASIC structure.
2015-11-08 16:54:46 -05:00
Jan Hauffa
ed1997b22f
Do not test for NULL before calling free().
2015-11-08 16:54:46 -05:00
Jan Hauffa
babee51689
Fix indentation of debug macros.
2015-11-08 16:54:46 -05:00
Jan Hauffa
eebbe92c4e
Simplify debug logging in mustek_usb2_asic.c.
2015-11-08 16:54:46 -05:00
Jan Hauffa
2c712f27c9
Remove uninformative function name prefixes, move gamma table creation into separate function.
2015-11-08 16:54:46 -05:00
Jan Hauffa
589d6e15ee
Endian-safe macros; moved remaining ASIC state into structure.
2015-11-08 16:54:46 -05:00
Jan Hauffa
f89a7962de
Fix indentation.
2015-11-08 16:54:46 -05:00
Jan Hauffa
4962b35abd
Use prefix 'p' instead of 'lp', fix other style issues.
2015-11-08 16:54:45 -05:00
Jan Hauffa
1d0f3ca42e
Fix remaining comments.
2015-11-08 16:54:45 -05:00
Jan Hauffa
9226162537
Normalize naming of constants, structures, and enums.
2015-11-08 16:54:45 -05:00
Jan Hauffa
d7ebb1553b
Remove USB host type enum.
2015-11-08 16:54:45 -05:00
Jan Hauffa
41ac627e5f
Get rid of unnecessary forward declarations.
2015-11-08 16:54:45 -05:00
Jan Hauffa
da64a1fc1e
First hack to build mustek_usb2* source files separately.
2015-11-08 16:54:45 -05:00
Jan Hauffa
3479acf538
Merge mustek_usb2_reflective/transparent.c into mustek_usb2_high.c.
2015-11-08 16:54:45 -05:00
Jan Hauffa
ccce2d4a9a
Further cleanup of mustek_usb2.c.
2015-11-08 16:54:44 -05:00
Jan Hauffa
d7b4e02780
Use SANE_Status and SANE_TRUE/SANE_FALSE consistently.
2015-11-08 16:54:44 -05:00
Jan Hauffa
8b3c78838a
Create common helper function for Asic_CarriageHome and Asic_MotorMove, remove MotorBackHome.
2015-11-08 16:54:43 -05:00
Jan Hauffa
ed5dc8a7cd
Further refactoring of Asic_SetWindow.
2015-11-08 16:54:43 -05:00
Jan Hauffa
82a40d5dca
Refactoring of Asic_SetWindow.
2015-11-08 16:54:43 -05:00
Jan Hauffa
93a79af5d3
Fix indentation.
2015-11-08 16:54:43 -05:00