Reads a word (2 bytes) from the specified hardware port
#include <nwconio.h>
unsigned int inpw (
int port);
(IN) Specifies the hardware port.
The value returned is the word that was read.
The inpw function reads a word (2 bytes) from the hardware port whose number is given by port.
A hardware port is used to communicate with a device. One or 2 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.
#include <nwconio.h> #define DEVICE 34 main () { unsigned int transmitted; transmitted=inpw (DEVICE); }