Lines Matching defs:ma1017

109 struct ma1017;
111 typedef struct ma1017
175 SANE_Status (*get_row) (struct ma1017 * chip, SANE_Byte * row,
193 ma1017;
237 static SANE_Status usb_low_init (ma1017 ** chip);
239 static SANE_Status usb_low_exit (ma1017 * chip);
244 usb_low_set_cmt_table (ma1017 * chip, SANE_Int index, Channel channel,
248 static SANE_Status usb_low_get_a2 (ma1017 * chip, SANE_Byte * value);
250 static SANE_Status usb_low_start_cmt_table (ma1017 * chip);
252 static SANE_Status usb_low_stop_cmt_table (ma1017 * chip);
255 usb_low_set_test_sram_mode (ma1017 * chip, SANE_Bool is_test);
257 static SANE_Status usb_low_set_fix_pattern (ma1017 * chip, SANE_Bool is_fix);
260 static SANE_Status usb_low_adjust_timing (ma1017 * chip, SANE_Byte data);
263 static SANE_Status usb_low_get_a4 (ma1017 * chip, SANE_Byte * value);
265 static SANE_Status usb_low_select_timing (ma1017 * chip, SANE_Byte data);
268 usb_low_turn_frontend_mode (ma1017 * chip, SANE_Bool is_on);
271 static SANE_Status usb_low_get_a6 (ma1017 * chip, SANE_Byte * value);
273 static SANE_Status usb_low_set_asic_io_pins (ma1017 * chip, SANE_Byte data);
275 static SANE_Status usb_low_set_rgb_sel_pins (ma1017 * chip, SANE_Byte data);
278 static SANE_Status usb_low_get_a7 (ma1017 * chip, SANE_Byte * value);
280 static SANE_Status usb_low_set_timing (ma1017 * chip, SANE_Byte data);
282 static SANE_Status usb_low_set_sram_bank (ma1017 * chip, Banksize banksize);
285 static SANE_Status usb_low_get_a8 (ma1017 * chip, SANE_Byte * value);
288 usb_low_set_cmt_table_length (ma1017 * chip, SANE_Byte table_length);
291 static SANE_Status usb_low_get_a9 (ma1017 * chip, SANE_Byte * value);
294 usb_low_set_cmt_second_position (ma1017 * chip, SANE_Byte position);
297 static SANE_Status usb_low_get_a10 (ma1017 * chip, SANE_Byte * value);
299 static SANE_Status usb_low_set_ccd_width (ma1017 * chip, SANE_Word ccd_width);
302 static SANE_Status usb_low_get_a11 (ma1017 * chip, SANE_Byte * value);
304 static SANE_Status usb_low_set_dummy (ma1017 * chip, SANE_Word dummy);
307 static SANE_Status usb_low_get_a12 (ma1017 * chip, SANE_Byte * value);
309 static SANE_Status usb_low_get_a13 (ma1017 * chip, SANE_Byte * value);
312 usb_low_set_image_byte_width (ma1017 * chip, SANE_Word row_size);
315 usb_low_set_soft_resample (ma1017 * chip, SANE_Word soft_resample);
319 usb_low_set_cmt_loop_count (ma1017 * chip, SANE_Word loop_count);
322 static SANE_Status usb_low_get_a15 (ma1017 * chip, SANE_Byte * value);
324 static SANE_Status usb_low_enable_motor (ma1017 * chip, SANE_Bool is_enable);
327 usb_low_set_motor_movement (ma1017 * chip, SANE_Bool is_full_step,
330 static SANE_Status usb_low_set_motor_signal (ma1017 * chip, SANE_Byte signal);
333 usb_low_set_motor_direction (ma1017 * chip, SANE_Bool is_backward);
336 usb_low_move_motor_home (ma1017 * chip, SANE_Bool is_home,
340 static SANE_Status usb_low_get_a16 (ma1017 * chip, SANE_Byte * value);
343 usb_low_set_image_dpi (ma1017 * chip, SANE_Bool is_optical600,
347 usb_low_set_pixel_depth (ma1017 * chip, Pixeldepth pixeldepth);
349 static SANE_Status usb_low_invert_image (ma1017 * chip, SANE_Bool is_invert);
352 static SANE_Status usb_low_get_a17 (ma1017 * chip, SANE_Byte * value);
354 static SANE_Status usb_low_get_a18 (ma1017 * chip, SANE_Byte * value);
356 static SANE_Status usb_low_get_a19 (ma1017 * chip, SANE_Byte * value);
358 static SANE_Status usb_low_set_red_ref (ma1017 * chip, SANE_Byte red_ref);
360 static SANE_Status usb_low_set_green_ref (ma1017 * chip, SANE_Byte green_ref);
362 static SANE_Status usb_low_set_blue_ref (ma1017 * chip, SANE_Byte blue_ref);
365 static SANE_Status usb_low_get_a20 (ma1017 * chip, SANE_Byte * value);
367 static SANE_Status usb_low_get_a21 (ma1017 * chip, SANE_Byte * value);
369 static SANE_Status usb_low_get_a22 (ma1017 * chip, SANE_Byte * value);
371 static SANE_Status usb_low_set_red_pd (ma1017 * chip, SANE_Byte red_pd);
373 static SANE_Status usb_low_set_green_pd (ma1017 * chip, SANE_Byte green_pd);
375 static SANE_Status usb_low_set_blue_pd (ma1017 * chip, SANE_Byte blue_pd);
378 static SANE_Status usb_low_get_a23 (ma1017 * chip, SANE_Byte * value);
381 usb_low_turn_peripheral_power (ma1017 * chip, SANE_Bool is_on);
383 static SANE_Status usb_low_turn_lamp_power (ma1017 * chip, SANE_Bool is_on);
385 static SANE_Status usb_low_set_io_3 (ma1017 * chip, SANE_Bool is_high);
388 usb_low_set_led_light_all (ma1017 * chip, SANE_Bool is_light_all);
391 static SANE_Status usb_low_get_a24 (ma1017 * chip, SANE_Byte * value);
393 static SANE_Status usb_low_set_ad_timing (ma1017 * chip, SANE_Byte pattern);
396 static SANE_Status usb_low_set_serial_byte1 (ma1017 * chip, SANE_Byte data);
398 static SANE_Status usb_low_set_serial_byte2 (ma1017 * chip, SANE_Byte data);
401 static SANE_Status usb_low_get_a27 (ma1017 * chip, SANE_Byte * value);
403 static SANE_Status usb_low_set_serial_format (ma1017 * chip, SANE_Byte data);
406 static SANE_Status usb_low_get_home_sensor (ma1017 * chip);
409 static SANE_Status usb_low_start_rowing (ma1017 * chip);
411 static SANE_Status usb_low_stop_rowing (ma1017 * chip);
413 static SANE_Status usb_low_wait_rowing_stop (ma1017 * chip);
416 static SANE_Status usb_low_read_all_registers (ma1017 * chip);
419 usb_low_get_row (ma1017 * chip, SANE_Byte * data, SANE_Word * lines_left);
422 usb_low_get_row_direct (ma1017 * chip, SANE_Byte * data,
426 usb_low_get_row_resample (ma1017 * chip, SANE_Byte * data,
430 static SANE_Status usb_low_wait_rowing (ma1017 * chip);
433 usb_low_read_rows (ma1017 * chip, SANE_Byte * data, SANE_Word byte_count);
436 usb_low_write_reg (ma1017 * chip, SANE_Byte reg_no, SANE_Byte data);
439 usb_low_read_reg (ma1017 * chip, SANE_Byte reg_no, SANE_Byte * data);
444 static SANE_Status usb_low_open (ma1017 * chip, const char *devname);
446 static SANE_Status usb_low_close (ma1017 * chip);