Man page - ieee1284_open(3)
Packages contas this manual
- ieee1284_ecp_write_data(3)
- ieee1284_ref(3)
- ieee1284_ecp_read_addr(3)
- ieee1284_do_nack_handshake(3)
- ieee1284_negotiate(3)
- ieee1284_find_ports(3)
- ieee1284_nibble_read(3)
- ieee1284_write_data(3)
- ieee1284_byte_read(3)
- libieee1284(3)
- ieee1284_ecp_write_addr(3)
- ieee1284_read_status(3)
- parport_list(3)
- ieee1284_ecp_fwd_to_rev(3)
- ieee1284_close(3)
- ieee1284_epp_read_addr(3)
- ieee1284_epp_read_data(3)
- ieee1284_data_dir(3)
- ieee1284_read_control(3)
- ieee1284_free_ports(3)
- ieee1284_compat_write(3)
- ieee1284_set_timeout(3)
- ieee1284_frob_control(3)
- ieee1284_terminate(3)
- ieee1284_claim(3)
- ieee1284_wait_status(3)
- ieee1284_read_data(3)
- ieee1284_ecp_rev_to_fwd(3)
- ieee1284_epp_write_data(3)
- ieee1284_write_control(3)
- ieee1284_get_deviceid(3)
- ieee1284_unref(3)
- ieee1284_release(3)
- ieee1284_get_irq_fd(3)
- ieee1284_open(3)
- ieee1284_ecp_read_data(3)
- parport(3)
- ieee1284_wait_data(3)
- ieee1284_epp_write_addr(3)
apt-get install libieee1284-3-dev
Manual
| IEEE1284_OPEN(3) | Functions | IEEE1284_OPEN(3) |
NAME
ieee1284_open - open a port
SYNOPSIS
#include <ieee1284.h>
int ieee1284_open(struct parport *port, int flags, int *capabilities);
DESCRIPTION
In order to begin using a port it must be opened. Any initial set-up of the port is done at this stage. When an open port is no longer needed it should be closed with ieee1284_close(3).
The possible flags are:
F1284_EXCL
The iopl/dev-port access methods don't support this yet, but the ppdev ones do.
If capabilities is not NULL it must point to storage for an int, which will be treated as a set of flags, one per bit, which the library sets or clears as appropriate. If a capability is present it will be used when asked for. They are:
CAP1284_RAW
CAP1284_NIBBLE
CAP1284_BYTE
CAP1284_COMPAT
CAP1284_ECP
CAP1284_ECPRLE
CAP1284_ECPSWE
CAP1284_BECP
CAP1284_EPP
CAP1284_EPPSWE
CAP1284_IRQ
CAP1284_DMA
RETURN VALUE
E1284_OK
E1284_INIT
E1284_NOMEM
E1284_NOTAVAIL
E1284_INVALIDPORT
E1284_SYS
SEE ALSO
ieee1284_close(3)
AUTHOR
Tim Waugh <twaugh@redhat.com>
- Author.
COPYRIGHT
Copyright © 2001-2003 Tim Waugh
| 09/18/2007 |