The SetWiring method sets connection type depending on parameters passed to this method
BOOL SetWiring( LONG Dtr, // Transmit line signal LONG Rts, // Receive line signal LONG Out1, // Output line signal LONG Out2, // Input line signal );
- Dtr, Rst, Out1, Out2 [in] : line signals may have following values depending on which port you want connect to:
Value Meaning Hex WIRED_TO_DCD setting connection to remote DCD line 0x80 WIRED_TO_RI setting connection to remote RI line 0x40 WIRED_TO_DSR setting connection to remote DSR line 0x20 WIRED_TO_CTS setting connection to remote CTS line 0x10
Return Values : If the function succeeds, the return value is TRUE, alternatively, the return value is FALSE.
The default pinout is the following: