CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 46

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
R
R
R
4.6.8d20_network_map()
R
R
R
R
R
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
none
/* data buffer declaration */
USIGN8 ptr[512];
/* get the packet out of the inbuf[ ] queue*/
d20_get_qentry(ptr);
/* data now available
The network map routine builds a map of the nodes connected to the network. A pointer to a
buffer is passed to the routine and the buffer’s bits are set (present) or reset (not present)
depending on if a node is present. The user buffer must be 32 bytes in length. If the node is
present on the network (passing tokens), the corresponding bit to its address is set in the
network map. Bit 0 of the network map (data_ptr[0].0) is illegal.
USIGN8 d20_network_map (USIGN8 *data_ptr);
unsigned char bit_map[32];
/* generate a network bit map */
status = d20_network_map(bit_map);
if(status == E_OK)
P
R
E
D
P
P
R
E
Parameter
ptr
Parameter
data_ptr
Action
network map successfully compiled
no active nodes connected to the
medium
only one node (this node)
connected and active on the link
ARAMETERS
XAMPLE
ROTOTYPE
ARAMETERS
XAMPLE
ETURN
ESCRIPTION
ETURN
{
/* check if node 5 is available */
if ((bit_map[0] & 0x20) != 0)
V
V
:
:
ALUES
ALUES
:
:
:
:
:
:
Description
pointer to the buffer where to put the data retrieved
from the COM2002x
Description
pointer to the 32-byte array of 8-bit values that
store the current network map of nodes
Result
E_OK
E_NO_TOKEN
E_ONE_NODE
46

Related parts for CONTROLINK86