
TIP675-SW-42 – VxWorks Device Driver
Page 17 of 31
4.3 ioctl()
NAME
ioctl() - performs an I/O control function.
SYNOPSIS
#include “tip675.h”
int ioctl
(
int
fd,
int
request,
int
arg
)
DESCRIPTION
Special I/O operation that do not fit to the standard basic I/O calls will be performed by calling the
ioctl
function with a specific function code and an optional function dependent argument.
For details of supported
ioctl
functions see VxWorks Reference Manual: VxWorks Programmer’s
Guide: I/O system.
PARAMETER
fd
This file descriptor specifies the device to be used. The file descriptor has been returned by the
open()
function.
request
This argument specifies the function that shall be executed.
Following functions are defined:
Function
Description
FIO_T675_SET_DIR
Set direction of I/O lines
FIO_T675_INSTALL_ISF
Install
user
supplied
I/O
service
function
at
specified I/O line
FIO_T675_REMOVE_ISF
Remove user supplied I/O service function from
specified I/O line
FIO_T675_ENA_EXCLK
Enable simultaneous update feature
FIO_T675_DIS_EXCLK
Disable simultaneous update feature
FIO_T675_READ
Read from input buffer
FIO_T675_WRITE
Write to output buffer