| Returns an electrical level from the select pin of curren LPT's D25 connector.
|
Language
|
Description
|
C/C++
|
UCHAR GetPin ( HANDLE hLpt , UCHAR nPin );
|
Delphi
|
function GetPin ( hLpt : THANDLE, nPin: Byte ) : Byte ; stdcall
|
VB
|
Function GetPin ( ByVal hLpt As Long , ByVal nPin As Byte ) As Byte
|
Parameters:
hLpt - the handle returned by a successful call to OpenRapidLpt
nPin - requested pin number (1..25)
Return Value :
Zero if an electrical level is low, non-zero otherwise.
Comments:
The current LPT must be in read mode:
SetReadMode(1)
|