
TIP675-SW-42 – VxWorks Device Driver
Page 12 of 31
…
result = tip675DevCreate(
"/tip675/0",
0,
0,
(void*)&tip675Conf);
if (result == OK)
{
/* Device successfully created */
}
else
{
/* Error occurred when creating the device */
}
}
else {
printf("ERROR: No IP found on supported IP carrier boards\n");
}
…
RETURNS
OK, or ERROR if the function fails an error code will be stored in
errno
.
ERROR CODES
The error codes are stored in
errno
and can be read with the function
errnoGet()
.
Error code
Description
S_ioLib_NO_DRIVER
Driver not installed, run tip675Drv()
S_tip675Drv_IARG
Invalid argument in device configuration buffer. Please
check all arguments given to tip675DevCreate().
S_ioLib_DEVICE_ERROR
Device error. The certain TIP675 device seems to be
faulty or isn’t a TIP675 device at all.
S_tdrv002Drv_EXISTS
Device has already been created
SEE ALSO
VxWorks Programmer’s Guide: I/O System