Man page - ieee1284_terminate(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_NEGOTIATION(3) | Functions | IEEE1284_NEGOTIATION(3) |
NAME
ieee1284_negotiate, ieee1284_terminate - IEEE 1284 negotiation
SYNOPSIS
#include <ieee1284.h>
int ieee1284_negotiate(struct parport *port, int mode);
void ieee1284_terminate(struct parport *port);
DESCRIPTION
These functions are for negotiating to and terminating from IEEE 1284 data transfer modes. The default mode is called compatibility mode, or in other words normal printer protocol. It is a host-to-peripheral mode only. There are special modes that allow peripheral-to-host transfer as well, which may be negotiated to using ieee1284_negotiate. IEEE 1284 negotiation is a process by which the host requests a transfer mode and the peripheral accepts or rejects it. An IEEE 1284-compliant device will require a successful negotiation to a particular mode before it is used for data transfer (but simpler devices may not if they only speak one transfer mode).
To terminate the special mode and go back to compatilibity mode use ieee1284_terminate.
These functions act on the parallel port associated with port, which must be claimed.
With a device strictly complying to IEEE 1284 you will need to call ieee1284_terminate in between any two calls to ieee1284_negotiate for modes other than M1284_COMPAT.
AVAILABLE MODES
Uni-directional modes
Bi-directional modes
Mode variations
RETURN VALUE
E1284_OK
E1284_NOTAVAIL
E1284_REJECTED
E1284_NEGFAILED
E1284_SYS
E1284_INVALIDPORT
AUTHOR
Tim Waugh <twaugh@redhat.com>
- Author.
COPYRIGHT
Copyright © 2001-2003 Tim Waugh
| 09/18/2007 |