A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: iga1405457143708
Ixiasoft
Visible to Intel only — GUID: iga1405457143708
Ixiasoft
12.4.1.2. ioctl() Operations
The fast version of the JTAG UART driver supports the ioctl() function to allow HAL-based programs to request device-specific operations. Specifically, you can use the ioctl() operations to control the timeout period, and to detect whether or not a host is connected. The fast driver defines the ioctl() operations shown in below.
Request | Meaning |
---|---|
TIOCSTIMEOUT | Set the timeout (in seconds) after which the driver will decide that the host is not connected. A timeout of 0 makes the target assume that the host is always connected. The ioctl arg parameter passed in must be a pointer to an integer. |
TIOCGCONNECTED | Sets the integer arg parameter to a value that indicates whether the host is connected and acting as a terminal (1), or not connected (0). The ioctl arg parameter passed in must be a pointer to an integer. |
For details about the ioctl() function, refer to the Nios II Software Developer's Handbook .