CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 63

no-image

CONTROLINK86

Manufacturer Part Number
CONTROLINK86
Description
Development Software Embedded Networking Software
Manufacturer
SMSC
Datasheet

Specifications of CONTROLINK86

Tool Function
Compiler
Tool Type
Compiler
Processor Series
80x86
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ControLink86 Realtime Networking Software
/****************************************************************************
unsigned char send_pkt(void)
* FUNCTION NAME: send_pkt
*
* DESCRIPTION : schedule a packet to be sent
*
* RETURN VALUE : none
***************************************************************************/
} /* end of parse_indication(..) */
{
unsigned char status;
USIGN8 destination_node;
USIGN8 ssapidx;
USIGN8 dsapidx;
unsigned char once_many;
char dummy[10];
/* get the node address to send the data to */
printf("Enter the destination node address\n");
printf("<0x01 - 0xFF> for individual or <0x00> for broadcast: ");
gets(&dummy[0]);
fflush(stdin);
sscanf(&dummy[0], "%x", &destination_node);
/* get the sap to send from */
printf("Enter the SAP number to send the data from: ");
gets(&dummy[0]);
case NO_INDICATION:
break;
case UNITDATA_INDICATION:
case XID_INDICATION:
case TEST_INDICATION:
case DISC_INDICATION:
case DISC_CONFIRM:
}
{
printf("\nSAP %d received %d bytes: { ", (sapid + 1), ((SAP[sapid].msbcount << 8) +
SAP[sapid].lsbcount));
for(j = 0; j < sizeof_sb[sapid]; j++)
printf("}\n");
break;
}
{
printf("XID query from SAP %d\n", sapid);
break;
}
{
printf("Link TEST frame received from SAP %d\n", sapid);
break;
}
{
printf("Received Disconnect Command\n");
break;
}
{
printf("Disconnect Confirmation Received\n");
break;
}
{
if((j < 3) || (j > (sizeof_sb[sapid] - 3)))
else if(j < 4)
}
{
printf("%02x ", SAPBUF[sapid][j]);
}
{
printf("... ");
}
63

Related parts for CONTROLINK86