GetSerialConf: Get the Serial Line Configuration
GetSerialConf returns the configuration parameters for a specific serial line communication port.
Input |
Type |
Comment |
Link |
Link is the communication port number. |
|
PointerToSerialConf |
POINTER TO SERIAL_CONF |
PointerToSerialConf is the address of the configuration structure (variable of SERIAL_CONF type) in which the configuration parameters are stored. The ADR standard function must be used to define the associated pointer. (See the example below.) |
Output |
Type |
Comment |
GetSerialConf |
WORD |
This function returns: o0: The configuration parameters are returned o255: The configuration parameters are not returned because: othe function was not successful othe function is in progress |
Refer to the SetSerialConf example.