Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(66)

Issue 2823041: Add possibility to configure endpoints for all USB functions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Reinhold
Modified:
13 years, 9 months ago
Reviewers:
Visibility:
Public.

Description

Add function to set USB endpoints to use Added void sanei_usb_set_endpoint (SANE_Int dn, SANE_Int ep_type, SANE_Int ep); This function allows the user to set the endpoint to use on the given device for the given endpoint type (e.g. bulk in). Some scanners have multiple bulk in/out endpoints but use only one for communication (not the one detected during auto-detection), so one call to the new function will change the used endpoint. Some scanners use two different endpoint for different purposes, so in that case each read/write call needs to be preceeded by a call to that function to set the proper endpoint. ep_type is a bitmask and is usually of the form (USB_DIR_IN|USB_ENDPOINT_TYPE_BULK)

Patch Set 1 #

Patch Set 2 : Added callback function for sanei_usb_open to override auto-detected endpoints #

Patch Set 3 : Started from scratch, add one function to set the ep for a given type; nothing else is really needed #

Patch Set 4 : Minor fix: use hex for endpoints in debug output #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -1 line) Patch
M include/sane/sanei_usb.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M sanei/sanei_usb.c View 1 2 3 4 chunks +47 lines, -1 line 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b