ComConfig data structure
The settings for the serial interfaces of the BX are transferred with the following data structure.
TYPE ST_COMConfig:
STRUCT
cbRxBufferLen :WORD;
cbTxBufferLen :WORD;
dwMode :DWORD;
BaudRate :DWORD;
eCommPort :E_CommPort;
eDataBits :E_DataBits;
eParity :E_Parity;
eStoppBits :E_StoppBits;
END_STRUCT
END_TYPE
Legend
cbRxBufferLen: Has no purpose (was retained for compatibility reasons)
cbTxBufferLen: Has no purpose (was retained for compatibility reasons)
dwMode: data mode COM 1 only "0" - COM 2 RS232 "0" and RS485 "1"
BaudRate: Baud rate
eCommPort: Com Port COM1/COM2
eDataBits: number of data bits SEVEN_DATABITS/EIGHT_DATABITS
eParity: EVEN/ODD/NONE
eStoppBits: Number of stop bits ONE_STOPPBIT/TWO_STOPPBITS