Specifications
102 Data Path Routing (DPR) HighWire MTP-2 - 1.2, September 4, 2002
The elements of the MAP structure are:
The following example shows how to issue this command and get the
response.
int err; /* err code */
int flag; /* flag, set to non-priority msg */
struct strbuf cnctl; /* structure for control part of msg */
dpr_conn_t cnproto; /* request/response control structure */
/*
* Set up the DPR_CONNECT command and send it to the board.
*/
cnproto.conn_df.df_fun = (DPR_PROTO_CODE << 8) | DPR_CONNECT;
cnproto.conn_map.fromDev = PUT_TIMESLOT(2) | PUT_CHAN(9) | PUT_DEVICE(CM_TT_TS704);
cnproto.conn_map.toDev = PUT_TIMESLOT(2) | PUT_CHAN(1) | PUT_DEVICE(CM_TT_COMET);
cnproto.conn_map.mode = TTSI_LOWLAT;
cnproto.conn_map.connected = -1;
cnproto.conn_map.ct_xmit_enable = 0;
cnproto.conn_map.local_TSA_line = -1;
cnctl.maxlen = sizeof (cnproto);
cnctl.len = sizeof (cnproto);
cnctl.buf = (char *)&cnproto;
if (!(err = putmsg (fd, &cnctl, 0, 0)))
{
/*
* Set up to get the response from the board.
UINT32 fromDev Source time slot made up by using the macros
PUT_TIMESLOT(t) | PUT_CHAN(c) | PUT_DEVICE(d)
UINT32 toDev Destination time slot made up by using the above
macros
UINT32 mode TSI transmission mode for connect as follows:
TTSI_LOWLAT Low-latency mode
TTSI_FRAMEI Frame-integrity mode
TTSI_HOST Host data substitution mode
TTSI_IDLE1 Put idle code1 on the TDM highway
TTSI_IDLE2 Put idle code2 on the TDM highway
TTSI_IDLE3 Put idle code3 on the TDM highway
TTSI_TESTPAT Put test pattern on the TDM highway
TTSI_TRISTATE Tri-state the TDM highway
INT32 connected 1 - TDM highway connection, 0 - disconnected, -1 - N/A
UINT32 ct_xmit_enable 1 - enable; 0 - disable
INT32 local_TSA_line The local TSA TDM highway number (0-7) or -1 for N/A