51#include "../include/sane/config.h"
52#include "../include/sane/sane.h"
56 PV8630_REQ_READBYTE = 0x00,
57 PV8630_REQ_WRITEBYTE = 0x01,
58 PV8630_REQ_EPPBULKREAD = 0x02,
59 PV8630_REQ_EPPBULKWRITE = 0x03,
60 PV8630_REQ_FLUSHBUFFER = 0x04,
61 PV8630_REQ_ENABLEINTERRUPT = 0x05,
62 PV8630_REQ_DISABLEINTERRUPT = 0x06,
63 PV8630_REQ_READWORD = 0x08,
64 PV8630_REQ_WRITEWORD = 0x09
71 PV8630_REPPADDRESS = 0x01,
72 PV8630_UNKNOWN = 0x02,
78extern void sanei_pv8630_init (
void);
79extern SANE_Status sanei_pv8630_write_byte (
int fd, SANEI_PV_Index index,
81extern SANE_Status sanei_pv8630_read_byte (
int fd, SANEI_PV_Index index,
83extern SANE_Status sanei_pv8630_prep_bulkread (
int fd,
int len);
84extern SANE_Status sanei_pv8630_prep_bulkwrite (
int fd,
int len);
85extern SANE_Status sanei_pv8630_flush_buffer (
int fd);
86extern SANE_Status sanei_pv8630_bulkwrite (
int fd,
const void *data,
88extern SANE_Status sanei_pv8630_bulkread (
int fd,
void *data,
size_t * len);
89extern SANE_Status sanei_pv8630_xpect_byte (
int fd, SANEI_PV_Index index,
90 SANE_Byte value, SANE_Byte mask);
91extern SANE_Status sanei_pv8630_wait_byte (
int fd, SANEI_PV_Index index,
92 SANE_Byte value, SANE_Byte mask,