CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 67

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
/****************************************************************************
void init_sap(void)
* FUNCTION NAME: init_sap
*
* DESCRIPTION : initialize llc driver and all declared saps
*
* RETURN VALUE : none
***************************************************************************/
printf("D20_P1MODE D20_FOUR_NAKS D20_ET3 D20_RCV_ALL D20_NET_SPEED
printf("
} /* end of display_parameters(..)
{
char dummy[10];
unsigned char sap_status;
unsigned char temp;
unsigned int j;
USIGN8 i;
/* initialize SAPS */
printf("Enter:\n");
printf("
printf("
printf("
gets(&dummy[0]);
printf("\n");
fflush(stdin);
if((dummy[0] == 'm') || (dummy[0] == 'M'))
else if((dummy[0] == 'd') || (dummy[0] == 'D'))
else if((dummy[0] == 'e') || (dummy[0] == 'e'))
{
/* get number of SAPs for this program */
printf("\nEnter number of SAPs for this application: ");
gets(&dummy[0]);
printf("\n\n");
fflush(stdin);
sscanf(&dummy[0], "%d", &numof_saps);
for(i = 0; i < numof_saps; i++)
}
{
numof_saps = 8;
for(i = 0; i < numof_saps; i++)
}
%02x
{
printf("Enter the size of buffer for SAP %d: ", (i + 1));
gets(&dummy[0]);
fflush(stdin);
sscanf(&dummy[0], "%d", &sizeof_sb[i]);
printf("Enter the formatting character of the SAPBUF %d: ", (i + 1));
gets(&dummy[0]);
printf("\n");
fflush(stdin);
sscanf(&dummy[0], "%x", &temp);
for(j = 0; j < sizeof_sb[i]; j++)
}
{
sizeof_sb[i] = 16;
for(j = 0; j < 16; j++)
}
<d> for the default size of 8 SAPs - 16 bytes per each SAP buffer\n");
<m> for manual setting of the SAP buffer sizes\n");
<e> to exit this program\n");
d20_get_parameter(D20P_P1MODE), d20_get_parameter(D20P_FOUR_NAKS),
d20_get_parameter(D20P_ET3), d20_get_parameter(D20P_RCV_ALL),
d20_get_parameter(D20P_NET_SPEED), d20_get_parameter(D20P_SLOW_ARB));
{
SAPBUF[i][j] = temp;
}
{
SAPBUF[i][j] = (USIGN8)((i + 1) << 4);
}
%02x
%02x
%02x
%02x
67
%02x\n",
D20_SLOW_ARB\n");

Related parts for CONTROLINK86