QNX Developer Support
|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Write an 8-bit value to a port
#include <hw/inout.h> void out8( uintptr_t port, uint8_t val );
- The port you want to write the value to.
- The value that you want to write.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The out8() function writes an 8-bit value, specified by val, to the specified port.
The calling thread must have I/O privileges; see ThreadCtl()'s _NTO_TCTL_IO command for details.
The calling process must also use mmap_device_io() to access the device's I/O registers.