поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN2282 датащи(PDF) 11 Page - STMicroelectronics

номер детали AN2282
подробное описание детали  With the ever-increasing success
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2282 датащи(HTML) 11 Page - STMicroelectronics

Back Button AN2282 Datasheet HTML 7Page - STMicroelectronics AN2282 Datasheet HTML 8Page - STMicroelectronics AN2282 Datasheet HTML 9Page - STMicroelectronics AN2282 Datasheet HTML 10Page - STMicroelectronics AN2282 Datasheet HTML 11Page - STMicroelectronics AN2282 Datasheet HTML 12Page - STMicroelectronics AN2282 Datasheet HTML 13Page - STMicroelectronics AN2282 Datasheet HTML 14Page - STMicroelectronics AN2282 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 19 page
background image
AN2282
Firmware
11/19
typedef struct{
unsigned char buff[1600];
unsigned short dim;
unsigned type;
} mblk_t;
The messages to be transmitted are managed by two linked lists of requests inside a static
array of transmission requests. It is possible to manage up to 16 outstanding requests. The
request structure is as follows:
struct txreq
{
struct txreq
*pNext;
PIA
pDestAddr;
mblk_t
*pMsg;
unsigned short Length;
unsigned short Type;
};
typedef struct txreq TXREQ, *PTXREQ;
The first list is composed of the outstanding transmission requests, the second one of the
unused requests. The functions for message management are:
●
unsigned long csSend( PIA pDestAddr, mblk_t *pSendParms );
This routine is called when a new message has to be transmitted. The Destination
address and the message are passed by the arguments. The new transmit request is
placed on the transmit request queue. If a transmit request is not currently in progress
then the new transmit request is started, else it waits its turn in queue.
●
unsigned short csRequestTransmit(void);
This routine requests that a transmit be started by writing a transmit command and a
frame length to the chip. The content of the BusStatus register is returned which
indicates the success of the request.
●
void csCopyTxFrame(void);
This routine builds an Ethernet header in the chip's transmit frame buffer and then
copies the frame data from the list of message blocks to the chip's transmit frame
buffer. When all the data has been copied then the chip automatically starts to transmit
the frame.
●
void csProcessISQ(void);
This routine processes the events on the Interrupt Status Queue. The events are read
one at a time from the ISQ and the appropriate event handlers are called. The ISQ is
read until it is empty. If the chip's interrupt request line is active, then reading a zero
from the ISQ will deactivate the interrupt request line.
●
void csReceiveEvent( unsigned short RxEvent );
This routine is called whenever a frame has been received at the chip. This routine
copies the received frame into the data buffer of the reception message and passes the
message to the upper layer by calling Announce_Packet() entry point of the upper
layer. Moreover, this routine verifies that the frame type is acceptable.
●
void csTransmitEvent(void);
This routine is called whenever the transmission of a frame has completed (either
successfully or unsuccessfully). This routine removes the completed transmit request



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com