IEEE1284_DATA - Online Linux Manual PageSection : 3
Updated : 11/11/2010
Source : [FIXME: source]
Note : Functions

NAMEieee1284_read_data, ieee1284_write_data, ieee1284_data_dir, ieee1284_wait_data − control the data lines

SYNOPSIS#include <ieee1284​.h>int ieee1284_read_data(struct parport *port); void ieee1284_write_data(struct parport *port, unsigned char dt); int ieee1284_data_dir(struct parport *port, int reverse); int ieee1284_wait_data(struct parport *port, unsigned char mask, unsigned char val, struct timeval *timeout);

DESCRIPTIONThese functions manipulate the data lines of the parallel port associated with port (which must have been claimed using ieee1284_claim(3))​. The lines are represented by an 8−bit number (one line per bit) and a direction​. The data lines are driven as a group; they may be all host−driven (forward direction) or not (reverse direction)​. When the peripheral is driving them the host must not​. For ieee1284_data_dir the reverse parameter should be zero to turn the data line drivers on and non−zero to turn them off​. Some port types may be unable to switch off the data line drivers​. Setting the data lines may have side effects on some port types (for example, some Amiga ports pulse nStrobe)​. ieee1284_wait_data waits, up until the timeout, for the data bits specified in mask to have the corresponding values in val​.

RETURN VALUEieee1284_read_data returns the 8−bit number representing the data lines unless it is not possible to return such a value with this port type, in which case it returns an error code​. Possible error codes: E1284_NOTAVAIL Bi−directional data lines are not available on this system​. E1284_INVALIDPORT The port parameter is invalid (perhaps it has not been claimed, for instance)​. E1284_SYS There was an error at the operating system level, and errno has been set accordingly​. E1284_TIMEDOUT The timeout has elapsed​. Whereas ieee1284_read_data may return E1284_NOTAVAIL on its first invocation on the port, if it does not do so then it cannot until ieee1284_close is called for that port​.

AUTHORTim Waugh <​twaugh@redhat.com​> Author.

COPYRIGHT
Copyright © 2001-2003 Tim Waugh
0
Johanes Gumabo
Data Size   :   9,636 byte
man-ieee1284_wait_data.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 259,649
Visitor ID   :     :  
Visitor IP   :   3.129.67.218   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.