GetSerialConf: Get the Serial Line Configuration

Function Description

GetSerialConf returns the configuration parameters for a specific serial line communication port.

Graphical Representation

G-RU-0010383.2.gif-high.gif

 

 

Parameter Description

Input

Type

Comment

Link

LinkNumber

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

Example

Refer to the SetSerialConf example.