Before communicating, configure the port with the MgslSetParams call. This passes a configuration structure to the API that determines port characteristics, such as the communications mode (HDLC, asynchronous, etc), serial encoding, and CRC selection. Retrieve the current port configuration with the MgslGetParams call.
Calling MgslSetParams disables the transmitter and receiver, but does not effect the state of the serial control signals DTR and RTS. This is useful for establishing a connection in asynchronous mode and then switching to HDLC mode while maintaining the connection by keeping DTR active.
MgslSetOption controls various advanced communications options. These options usually remain in the default state. The options are described in more detail in the MgslSetOption section. MgslGetOption is used to retrieve the current value of an option.
The MgslGetPortConfigEx and MgslSetPortConfigEx functions retrieve and modify the adapter hardware settings for a port. Usually the device manager property page controls these settings.
| Previous | Contents | Next |