User`s guide
72 DC 900-1317J
ADCCP NRM Programmer’s Guide
usProtXParms[1] field (data size = 16), and the data area. The iProtModifier field value
must be 1, which indicates that an NRM (or NRME) station is being configured.
The C structure definition in Figure 3–2 shows how the data area is organized. Note
that the data type
short refers to a two-byte integer and sizeof (CONFIG_2) is 16.
The options variable specifies which of the eleven ADCCP options are selected for the
station. A separate bit represents each option: an option is disabled when its bit is reset
to zero and is enabled when its bit is set to one. Bit 0 represents ADCCP option 1, bit 1
represents ADCCP option 2, and so on. Bits 11 through 15 are reserved and must be
zero.
The window variable identifies the transmit window size on the link. If ADCCP option
10 is disabled, valid window sizes are in the range 1–7. If ADCCP option 10 is enabled,
valid window sizes are in the range 1–127. The user’s application should configure the
minimum transmit window necessary to ensure efficient data transfer; the line baud
typedef struct /* Configures station */
{
short options; /* ADCCP options */
/* Bit 0: Enable XID/RD
Bit 1: Enable REJ
Bit 2: Enable SREJ
Bit 3: Enable UI
Bit 4: Enable SIM/RIM
Bit 5: Enable UP
Bit 6: Enable extended address
Bit 7: Delete response I-frames
Bit 8: Delete command I-frames
Bit 9: Enable extended sequencing
Bit 10: Delete RSET
Bits 11–15: must be zero */
char window; /* Transmit window size */
char srej_threshold; /* SREJ threshold */
short maxdata; /* Maximum I-frame data length */
char loc_size; /* Local address length */
char rem_size; /* Remote address length */
char loc_addr[4]; /* Local address array */
char rem_addr[4]; /* Remote address array */
} CONFIG_2;
Figure 3–2: DLI_PROT_CFG_LINK Packet Data Area (Second Variant)