59#define SANEI_PP_DATAIN 1
60#define SANEI_PP_DATAOUT 0
64#define SANEI_PP_CTRL_STROBE 0x01
65#define SANEI_PP_CTRL_AUTOLF 0x02
66#define SANEI_PP_CTRL_NOT_INIT 0x04
67#define SANEI_PP_CTRL_SELECT_IN 0x08
68#define SANEI_PP_CTRL_ENABLE_IRQ 0x10
69#define SANEI_PP_CTRL_DIRECTION 0x20
70#define SANEI_PP_CTRL_RESERVED 0xc0
91extern void sanei_pp_close(
int fd );
148extern SANE_Status sanei_pp_outb_ctrl(
int fd, SANE_Byte val );
149extern SANE_Status sanei_pp_outb_addr(
int fd, SANE_Byte val );
150extern SANE_Status sanei_pp_outb_epp (
int fd, SANE_Byte val );
157extern SANE_Byte sanei_pp_inb_stat(
int fd );
158extern SANE_Byte sanei_pp_inb_ctrl(
int fd );
159extern SANE_Byte sanei_pp_inb_epp (
int fd );
SANE_Byte sanei_pp_inb_data(int fd)
Read data from ports (spp-data, status, ctrl and epp-data)
SANE_Status sanei_pp_outb_data(int fd, SANE_Byte val)
Write data to ports (spp-data, ctrl, epp-address and epp-data)
SANE_Bool sanei_pp_uses_directio(void)
Check whether for libieee1284 usage.
sanei_pp_mode
some modes, we'd like to see/use.
Definition: sanei_pp.h:52
@ SANEI_PP_MODE_ECP
ECP.
Definition: sanei_pp.h:56
@ SANEI_PP_MODE_EPP
EPP.
Definition: sanei_pp.h:55
@ SANEI_PP_MODE_BIDI
BIDI.
Definition: sanei_pp.h:54
@ SANEI_PP_MODE_SPP
SPP.
Definition: sanei_pp.h:53
SANE_Status sanei_pp_open(const char *dev, int *fd)
Open a parport device.
SANE_Status sanei_pp_setmode(int fd, int mode)
Set the operation mode for a given device.
SANE_Status sanei_pp_claim(int fd)
Claim a parport device.
SANE_Status sanei_pp_set_datadir(int fd, int rev)
Set the data direction.
SANE_Status sanei_pp_release(int fd)
Release a previously claimed device.
SANE_Status sanei_pp_init(void)
Initialize sanei_pp.
void sanei_pp_udelay(unsigned long usec)
Delay execution for some micro-seconds.
SANE_Status sanei_pp_getmodes(int fd, int *mode)
Determine the available parallel port modes for a given device.