CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 44

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.6d20_write_packet()
R
OUTINE
OUTINE
OUTINE
OUTINE
/* user buffer declaration */
USIGN8 user_buf[512];
/* wait for packet to be received, then pull it out */
status = d20_read_packet(WAIT, user_buf)
if (status == E_OK)
This function is used for scheduling a transmission of a packet. This function is used by the
upper layers or the control application to schedule a transmission of a packet. This function
will transfer the data provided by the parent software to the COM2002x Packet RAM page
that is available for transmission. If the transmitter is available, this function will then issue a
command to initiate the transmission (see COM2002x ULANC for the description of the
Command Register).
This function will initialize the packet Retry Counter. This is a software mechanism that
allows the D20 Driver to reschedule the sending of a packet as many times as it is specified
by the D20_RETRIES parameter (see Section 4.5).
The data provided in the user buffer to the d20_write_packet() must be of the following
format:
P
R
E
D
Parameter
wait_flag
data_ptr
Action
no packet available
data retrieved correctly
Data Location
user_buf[0]
user_buf[1]
user_buf[2]
user_buf[3]
ARAMETERS
XAMPLE
ETURN
ESCRIPTION
{
/* valid data in the user_buf*/
}
V
:
ALUES
:
:
:
Symbol
SID
DID
HCNT
LCNT
Description
Specifies whether the function should wait for a
packet reception or get an available packet.
0x00 = do not wait
0x01 = wait
Pointer to a buffer to which the data should be
transferred.
Result
E_NO_PACKET
E_OK
44
Description
Source ID
Destination ID
0 = indication of a short packet
1 = indication of a long packet
1 - 252 = short packet count
0 - 256 = long packet count = 256 + count

Related parts for CONTROLINK86