CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 69
CONTROLINK86
Manufacturer Part Number
CONTROLINK86
Description
Development Software Embedded Networking Software
Manufacturer
SMSC
Datasheet
1.CONTROLINK86.pdf
(75 pages)
Specifications of CONTROLINK86
Tool Function
Compiler
Tool Type
Compiler
Processor Series
80x86
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ControLink86 Realtime Networking Software
/****************************************************************************
void change_sap(void)
* FUNCTION NAME: change_sap
*
* DESCRIPTION : changes data in a selected SAP buffer
*
* RETURN VALUE : none
***************************************************************************/
printf("\n\n");
if((net_status != E_OK))
} /* end of display_netmap(..)
{
char dummy[10];
USIGN8 sapidx;
USIGN8 temp;
USIGN8 sap_status;
unsigned int j;
unsigned char init_flag = FALSE;
/* get the sap number to change */
printf("\nEnter the SAP number to change: ");
gets(&dummy[0]);
fflush(stdin);
sscanf(&dummy[0], "%d", &sapidx);
/* convert the sap number into the array index */
sapidx--;
printf("\nEnter:\n");
printf("
printf("
printf("
gets(&dummy[0]);
printf("\n");
fflush(stdin);
if((dummy[0] == 'y') || (dummy[0] == 'Y'))
}
{
printf("Bad network, status = %s\n", status_str[net_status]);
printf("Exiting ControLink\n");
exit(-1);
}
{
/* set init flag */
init_flag = TRUE;
/* take the SAP off line */
sap_status = llc1_request((USIGN8)(sapidx + 1), 0, SAP_DEACTIVATION_REQUEST,
&SAP[sapidx]);
if(sap_status == E_OK)
else
/* enter new configuration */
printf("\nEnter the new size of SAP %d: ", (sapidx + 1));
gets(&dummy[0]);
fflush(stdin);
sscanf(&dummy[0], "%d", &sizeof_sb[sapidx]);
}
if(netmap[i] & (1 << j))
}
{
printf("SAP %d is deactivated.\n", (sapidx + 1));
}
{
printf("ERROR - deactivating SAP %d.\n", (sapidx + 1));
return;
}
<y> to change configuration of SAP %d\n", (sapidx + 1));
<n> to keep old configuration of SAP %d\n", (sapidx + 1));
<e> to exit to main menu\n");
{
printf("%02x, ", ((i * 8) + j));
}
69