CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 70

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
**********************************************************************/
* FUNCTION NAME: show_saps
*
* DESCRIPTION : shows the size and contents of local saps
*
* RETURN VALUE : none
**********************************************************************/
else if((dummy[0] == 'e') || (dummy[0] == 'E'))
else if((dummy[0] == 'n') || (dummy[0] == 'N'))
/* get the formatting character */
printf("\nEnter the formatting character of the SAPBUF %d: ", (sapidx + 1));
gets(&dummy[0]);
printf("\n");
fflush(stdin);
sscanf(&dummy[0], "%x", &temp);
/* fill the SAP buffer */
for(j = 0; j < sizeof_sb[sapidx]; j++)
if(init_flag == TRUE)
else
} /* end of change_sap(..) */
{
return;
}
{
printf("\nSAP %d retains its old parameters\n", (sapidx + 1));
}
{
SAPBUF[sapidx][j] = temp;
}
{
/* activate SAP with the new parameters */
sap_status = llc1_request((USIGN8)(sapidx + 1), 0, SAP_ACTIVATION_REQUEST, &SAP[sapidx]);
if(sap_status != E_OK)
else
{
/* display the contents of the SAP buffer */
printf("SAP %d new data, %d bytes: { ", (sapidx + 1), sizeof_sb[sapidx]);
for(j = 0; j < sizeof_sb[sapidx]; j++)
printf("}\n");
}
}
{
printf("ERROR - activating SAP %d\n", (sapidx + 1));
}
{
printf("SAP %d is on line. SAP %d has %d bytes: { ", (sapidx + 1), (sapidx + 1),
for(j = 0; j < sizeof_sb[sapidx]; j++)
printf("}\n");
}
{
if((j < 3) || (j > (sizeof_sb[sapidx] - 3)))
else if(j < 4)
}
sizeof_sb[sapidx]);
{
if((j < 3) || (j > (sizeof_sb[sapidx] - 3)))
else if(j < 4)
}
{
printf("%02x ", SAPBUF[sapidx][j]);
}
{
printf("... ");
}
{
printf("%02x ", SAPBUF[sapidx][j]);
}
{
printf("... ");
}
70

Related parts for CONTROLINK86