diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-07-31 17:00:20 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-07-31 17:00:20 +0200 |
commit | 3759ce55ba79b8d3b9d8ed247a252273ee7dade3 (patch) | |
tree | d69692a274dd1c7d0672e6bb7155a0fc106f9d49 /backend/hp5590_cmds.h | |
parent | c8bd2513ecba169cff44c09c8058c36987357b18 (diff) | |
parent | 1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (diff) |
Update upstream source from tag 'upstream/1.0.28'
Update to upstream version '1.0.28'
with Debian dir ec5bb298266630fc3801ff6dc0c258f6df7ba979
Diffstat (limited to 'backend/hp5590_cmds.h')
-rw-r--r-- | backend/hp5590_cmds.h | 132 |
1 files changed, 69 insertions, 63 deletions
diff --git a/backend/hp5590_cmds.h b/backend/hp5590_cmds.h index c8da0f2..7179853 100644 --- a/backend/hp5590_cmds.h +++ b/backend/hp5590_cmds.h @@ -48,10 +48,10 @@ #include "hp5590_low.h" -#define TMA_MAX_X_INCHES 1.69 -#define TMA_MAX_Y_INCHES 6 +#define TMA_MAX_X_INCHES 1.69 +#define TMA_MAX_Y_INCHES 6 -#define ADF_MAX_Y_INCHES 14 +#define ADF_MAX_Y_INCHES 14 enum hp_scanner_types { @@ -101,6 +101,12 @@ enum button_status BUTTON_CANCEL }; +enum color_led_status +{ + LED_COLOR = 1, + LED_BLACKWHITE +}; + enum hp5590_lamp_state { LAMP_STATE_TURNOFF = 1, @@ -111,92 +117,92 @@ enum hp5590_lamp_state struct hp5590_model { - enum hp_scanner_types scanner_type; - unsigned int usb_vendor_id; - unsigned int usb_product_id; - const char *vendor_id; - const char *model; - const char *kind; - enum proto_flags proto_flags; + enum hp_scanner_types scanner_type; + unsigned int usb_vendor_id; + unsigned int usb_product_id; + const char *vendor_id; + const char *model; + const char *kind; + enum proto_flags proto_flags; }; -#define FEATURE_NONE 0 -#define FEATURE_ADF 1 << 0 -#define FEATURE_TMA 1 << 1 -#define FEATURE_LCD 1 << 2 +#define FEATURE_NONE 0 +#define FEATURE_ADF 1 << 0 +#define FEATURE_TMA 1 << 1 +#define FEATURE_LCD 1 << 2 struct scanner_info { - const char *model; - const char *kind; - unsigned int features; - const char *fw_version; - unsigned int max_dpi_x; - unsigned int max_dpi_y; - unsigned int max_pixels_x; - unsigned int max_pixels_y; - float max_size_x; - float max_size_y; - unsigned int max_motor_param; - unsigned int normal_motor_param; + const char *model; + const char *kind; + unsigned int features; + const char *fw_version; + unsigned int max_dpi_x; + unsigned int max_dpi_y; + unsigned int max_pixels_x; + unsigned int max_pixels_y; + float max_size_x; + float max_size_y; + unsigned int max_motor_param; + unsigned int normal_motor_param; }; static SANE_Status hp5590_model_def (enum hp_scanner_types scanner_type, - const struct hp5590_model ** model); + const struct hp5590_model ** model); static SANE_Status hp5590_vendor_product_id (enum hp_scanner_types scanner_type, - SANE_Word * vendor_id, - SANE_Word * product_id); + SANE_Word * vendor_id, + SANE_Word * product_id); static SANE_Status hp5590_init_scanner (SANE_Int dn, - enum proto_flags proto_flags, - struct scanner_info **info, - enum hp_scanner_types scanner_type); + enum proto_flags proto_flags, + struct scanner_info **info, + enum hp_scanner_types scanner_type); static SANE_Status hp5590_power_status (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_read_max_scan_count (SANE_Int dn, - enum proto_flags proto_flags, - unsigned int *max_count); + enum proto_flags proto_flags, + unsigned int *max_count); static SANE_Status hp5590_select_source_and_wakeup (SANE_Int dn, - enum proto_flags proto_flags, - enum scan_sources source, - SANE_Bool extend_lamp_timeout); + enum proto_flags proto_flags, + enum scan_sources source, + SANE_Bool extend_lamp_timeout); static SANE_Status hp5590_stop_scan (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_read_scan_count (SANE_Int dn, - enum proto_flags proto_flags, - unsigned int *count); + enum proto_flags proto_flags, + unsigned int *count); static SANE_Status hp5590_set_scan_params (SANE_Int dn, - enum proto_flags proto_flags, - struct scanner_info *scanner_info, - unsigned int top_x, unsigned int top_y, - unsigned int width, unsigned int height, - unsigned int dpi, - enum color_depths color_depth, - enum scan_modes scan_mode, - enum scan_sources scan_source); + enum proto_flags proto_flags, + struct scanner_info *scanner_info, + unsigned int top_x, unsigned int top_y, + unsigned int width, unsigned int height, + unsigned int dpi, + enum color_depths color_depth, + enum scan_modes scan_mode, + enum scan_sources scan_source); static SANE_Status hp5590_send_forward_calibration_maps (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_send_reverse_calibration_map (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_inc_scan_count (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_start_scan (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_read (SANE_Int dn, - enum proto_flags proto_flags, - unsigned char *bytes, - unsigned int size, void *state); + enum proto_flags proto_flags, + unsigned char *bytes, + unsigned int size, void *state); static SANE_Status hp5590_read_buttons (SANE_Int dn, - enum proto_flags proto_flags, - enum button_status *status); + enum proto_flags proto_flags, + enum button_status *status); static SANE_Status hp5590_read_part_number (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_calc_pixel_bits (unsigned int dpi, - enum color_depths color_depth, - unsigned int *pixel_bits); + enum color_depths color_depth, + unsigned int *pixel_bits); static SANE_Status hp5590_is_data_available (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); static SANE_Status hp5590_reset_scan_head (SANE_Int dn, - enum proto_flags proto_flags); + enum proto_flags proto_flags); #endif /* HP5590_H */ /* vim: sw=2 ts=8 */ |