User`s guide

VxWorks
BSP Developer’s Guide, 6.0
104
int (*callbackInstall)
(
SIO_CHAN * pSioChan,
int callbackType,
STATUS (*callback)(),
void * callbackArg
);
int (*pollInput)
(
SIO_CHAN * pSioChan,
char * inChar
);
int (*pollOutput)
(
SIO_CHAN * pSioChan,
char outChar
);
};
The members of the SIO_DRV_FUNCS structure are as follows:
ioctl( )
This routine points to the standard I/O control interface routine for the driver.
This routine provides the primary control interface for any driver. To access the
I/O control services for a standard SIO device, use the following symbolic
constants:
SIO_BAUD_SET
Sets a new baud rate.
SIO_BAUD_GET
Gets the current baud rate.
SIO_HW_OPTS_SET
Sets new hardware settings.
SIO_HW_OPTS_GET
Gets current hardware settings.
SIO_MODE_SET
Sets a new operating mode.
SIO_MODE_GET
Gets the current operating mode.
SIO_AVAIL_MODES_GET
Gets available operating modes.