User`s guide

46 DC 900-1343D
DDCMP Programmer’s Guide
2.5.2.3 Request Link Status Report
Use the dlWrite function with the pOptArgs.usProtCommand field set to
DLI_PROT_GET_STATUS_REPORT to request the current link status and configuration
option settings. The link configuration options are changed using the Configure Link
command (Section 2.5.1.1). The
dlRead link status report response (the
pOptArgs.usProtCommand field is set to DLI_PROT_GET_STATUS_REPORT by the DLI) con-
sists of 12 words (24 bytes) containing the information shown in Table 2–10.
Table 2–10: Link Status Report Definition
Word Description Value
1 Link active flag 0 = inactive; 1 = active
2 Remote status 0 = inactive; 1 = active
3 Baud rate See Table 3–1 on page 56
4 Clock source See Table 3–1 on page 56
5 Reply timer length (seconds) See Table 3–1 on page 56
6 Controller state Unused
7 Number of leading sync characters Always = 8 (synchronous line mode)
Always = 0 (asynchronous line mode)
8 Synchronous/asynchronous communications See Table 3–1 on page 56
9 Full/half duplex Unused (DDCMP is full duplex)
10 Half-duplex status Unused
11 Link is receive only Unused
12 Electrical interface (Freeway 1000 only) See Table 3–1 on page 56
13 Maintenance state See Table 3–1 on page 56