CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 43

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
4.6.5d20_read_packet()
R
R
OUTINE
OUTINE
Received data retrieval function. After the data has been received by the COM2002x, the
d20_check_int() routine pulls it out of the COM2002x Packet RAM and stores it in the driver
queue called inbuf[ ]. The upper layer or the control application may schedule the retrieval of
the received data from this queue. This retrieval is accomplished by the d20_read_packet()
function. The retrieved data is placed in the system memory at the specified pointer. This
function can be directed to wait for the buffer to be received or read the packet from inbuf[ ]
queue.
The retrieved packet is stored at the specified pointer in the format of the ARCNET packet
(see Section 3.6.3):
USIGN8 d20_read_packet(USIGN8 wait_flag, USIGN8 *data_ptr);
D
P
Buffer location
user_buf[0]
user_buf[1]
user_buf[2]
user_buf[3]
user_buf[4]
user_buf[5]
user_buf[n]
or
user_buf[256 + n]
ROTOTYPE
ESCRIPTION
:
:
Symbol
SID
DID
HCNT
LCNT
SYSCOD
DATA
DATA
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
System Code
LLC packet data
LLC packet data
43

Related parts for CONTROLINK86