CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 42

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.4 d20_init()
R
R
R
R
R
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
OUTINE
none
/* set the node id to 55H */
d20_set_parameter(D20P_NODE_ID, 0x55);
The initialization routine provides the hardware and software initialization of the COM2002x
registers, resets COM2002x, determines the Node ID, joins the network (participates in the
token passing scheme) and enables COM2002x for the reception of a packet. COM2002x
and the driver software are initialized according to the COM2002x Driver parameters (see
Section 4.5).
The D20 Driver parameters may be initialized by the d20_defaults() function or individually,
by the upper layers, using d20_set_parameter() function.
See Section 8 (an example program) for illustration of initializing the D20 Driver.
USIGN8 d20_init(void);
none
d20_init() returns the status of the initialization of the driver.
/* initialize the hardware and driver */
status = d20_init();
P
R
E
D
P
P
R
E
Parameter
cmd_par
data_value
Action
Reset failed
Node alone on the segment
Unrecognized network condition
Duplicated Node ID detected
Initialization done without errors
ARAMETERS
XAMPLE
ROTOTYPE
ARAMETERS
XAMPLE
ETURN
ESCRIPTION
ETURN
V
V
:
:
ALUES
ALUES
:
:
:
:
:
:
Description
number of a parameter to be returned.
The list of these numbers is available in D20.H file.
the new value for the D20 Driver parameter defined
by the cmd_par
Result
E_BAD_STATUS
E_NO_TOKEN
E_ONE_NODE
E_NOT_OK
E_NODE_USED
E_OK
42

Related parts for CONTROLINK86