/dev/com

device names for communication ports 

Device


SYNOPSIS

/dev/com/n

/dev/com/nM


DESCRIPTION

The NuTCRACKER Platform recognizes two forms of device names for communication ports:

By default, the NuTCRACKER Platform supports 12 com ports. You can increase this limit by using _NutConf() to change _NC_SET_MAX_COM_PORTS. This must be done before the first com port is opened in the process.

Supported ioctl() Requests

TCGETS, TCSETS, TCSETSF, TCSETSW  

These ioctl() requests are used to get and set termios parameters, and are documented under sstruct termios. The argument to the ioctl() request is a pointer to a termios structure.

TCFLSH  

This ioctl() request is used to flush pending input and output, and is documented under struct termios.

TCSBRK  

This ioctl() request is used to send a break, and is documented under struct termios.

TCXONC  

This ioctl() request is used for flow control, and is documented under struct termios.

TCGETX, TCSETX, TCSETXF, TCSETXW  

These ioctl() requests are used to get and set termiox parameters, and are documented under struct termiox. The argument to the ioctl() request is a pointer to a termiox structure.

FIOGETOWN  

This ioctl() request is equivalent to fcntl(fildes, F_GETOWN).

FIOSETOWN  

This ioctl() request is equivalent to fcntl(fildes, F_SETOWN, arg), respectively. The argument to the ioctl() request is a process ID or process group ID, as described for F_SETOWN under fcntl().

FIOASYNC  

This ioctl() request is equivalent to using the fcntl() command F_SETFL to set or clear the O_ASYNC flag. The argument to the ioctl() request is a variable of type unsigned long. If this variable is non-zero, the O_ASYNC flag is set, otherwise it is cleared.

FIONBIO  

This ioctl() request is equivalent to using the fcntl() command F_SETFL to set or clear the O_NONBLOCK flag. The argument to the ioctl() request is a variable of type unsigned long. If this variable is non-zero, the O_NONBLOCK flag is set, otherwise it is cleared.


PORTING ISSUES

Refer to The Communication Port Interface in the PTC MKS Toolkit UNIX to Windows Porting Guide for a detailed discussion of working with communication port devices.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
fcntl(), open()

Miscellaneous:
/dev/console, struct termios, struct termiox


PTC MKS Toolkit 10.4 Documentation Build 39.