inpd

Reads a double word (4 bytes) from the specified hardware port

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Service:Device I/O

Syntax

  #include <nwconio.h>  
   
  unsigned int inpd  (  
     int   port);
  

Parameters

port

(IN) Specifies the hardware port.

Return Values

The value returned is the double word that was read.

Remarks

The inpd function reads a double word (4 bytes) from the hardware port whose number is given by port.

A hardware port is used to communicate with a device. One to 4 bytes can be read and/or written from each port, depending on the hardware. Consult the technical documentation for your computer in order to determine the port numbers for a device and the expected usage of each port for a device.

See Also

inp, outp, outpd, outpw

Example

  #include <nwconio.h>  
  #define DEVICE 34  
   
  main ()  
  {  
     unsigned int transmitted;  
     transmitted=inpd (DEVICE);  
  }