Rockwell Automation 6182 SDK User Manual
Page 96

4–56
RAC6182-Specific Extensions to the CE API
Publication 6182-UM002B-EN-P
Macro
Description
IOCTL_SERIAL_SET
_PORT_MODE
Sets the electrical interface for the specified serial
port. Note that only COM1 supports switching
electrical interfaces.
lpInBuffer should point to a caller allocated WORD
containing the code for the desired electrical
interface. The possible codes are represented by
the following macros defined in othersdk.h:
SERIAL_MODE_RS232
SERIAL_MODE_RS485
SERIAL_MODE_RS422
nInBufferSize should be sizeof(WORD).
IOCTL_SERIAL_
QUERY_PORT_
MODE
Returns the current electrical interface setup for the
specified serial port.
lpOutBuffer should point to a caller allocated WORD
where the code for the current mode will be stored.
The value of *lpOutBuffer can be decoded by
comparison with one of the following macros:
SERIAL_MODE_RS232
SERIAL_MODE_RS485
SERIAL_MODE_RS422
nOutBufferSize should be sizeof(WORD).
IOCTL_SERIAL_
ENABLE_TX_FIFO
Enable the transmit FIFO buffer for the specified
serial port. Note that this is a 16 byte buffer.
lpInBuffer should point to a caller allocated BOOL,
which should contain TRUE or FALSE as required to
enable or disable the FIFO.
nInBufferSize should be sizeof(BOOL).
IOCTL_SERIAL_
ENABLE_RX_FIFO
Enable the receiver FIFO buffer for the specified
serial port. Note that this is a 16 byte buffer.
LpInBuffer should point to a caller allocated BOOL,
which should contain TRUE or FALSE as required to
enable or disable the FIFO.
NInBufferSize should be sizeof(BOOL).
IOCTL_SERIAL_
SET_TX_FIFO_
WATERMARK
Do not use. Not supported on RAC6182.
IOCTL_SERIAL_
SET_RX_FIFO_
WATERMARK
Do not use. Not supported on RAC6182.
IOCTL_SERIAL_
QUERY_TX_FIFO_
COUNT
Do not use. Not supported on RAC6182.
IOCTL_SERIAL_
QUERY_RX_FIFO_
COUNT
Do not use. Not supported on RAC6182.
IOCTL_SERIAL_SET
_COUNTRY_CODE
Do not use. Not supported on RAC6182.
IOCTL_SERIAL_
QUERY_COUNTRY_
CODE
Do not use. Not supported on RAC6182.