outpw

Writes a word (2 bytes), determined by value, to the hardware port whose number is given by 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 short outpw  (  
     int              port,  
     unsigned short   value);
  

Parameters

port

(IN) Specifies the hardware port.

value

(IN) Specifies the word to write.

Return Values

The value transmitted is returned.

Remarks

A hardware port is used to communicate with a device. One or 2 bytes can be read and/or written from each port, depending upon 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, inpd, inpw, outp, outpd

Example

  #include <nwconio.h>  
  #define DEVICE 34  
   
  main ()  
  {  
     outpw (DEVICE, 0x1234);  
  }