Lines Matching defs:setup
227 * setup is an apparently scanner-specific sequence:
229 * setup[1] = 0x11 --> data to register
230 * setup[1] = 0x01 --> data to scanner memory
233 gl640WriteBulk( int fd, u_char *setup, u_char *data, size_t size )
237 setup[0] = 1;
238 setup[4] = (size) & 0xFF;
239 setup[5] = (size >> 8) & 0xFF;
240 setup[6] = 0;
242 CHK (gl640WriteControl (fd, GL640_BULK_SETUP, setup, 8));
252 * setup is an apparently scanner-specific sequence:
254 * setup[1] = 0x00 --> data from scanner memory
255 * setup[1] = 0x0c --> data from scanner fifo?
258 gl640ReadBulk( int fd, u_char *setup, u_char *data, size_t size, int mod )
264 setup[0] = 0;
265 setup[4] = (size) & 0xFF;
266 setup[5] = (size >> 8) & 0xFF;
267 setup[6] = mod;
269 CHK (gl640WriteControl (fd, GL640_BULK_SETUP, setup, 8));
720 /* setup scan states */