Reads a byte from the specified port address.
Language
|
Description
|
C/C++
|
UCHAR GetPortByte ( HANDLE hLpt, USHORT PortAddress);
|
Delphi
|
function GetPortByte ( hLpt: THandle; PortAddress: Longword ): Byte; stdcall;
|
VB
|
Function GetPortByte ( ByVal hLpt As Long, ByVal PortAddress As Long) As Byte
|
Parameters:
hLpt - the handle returned by a successful call to OpenRapidLpt
PortAddress - the port address in I/O space
Return Value :
The byte read from the specified port address.
See also: GetPortWord GetPortLong SetPortByte SetPortWord SetPortLong
|