công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN2367 bảng dữ liệu(PDF) 11 Page - STMicroelectronics

tên linh kiện AN2367
Giải thích chi tiết về linh kiện  This application note describes an optimized memory copy
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2367 bảng dữ liệu(HTML) 11 Page - STMicroelectronics

Back Button AN2367 Datasheet HTML 5Page - STMicroelectronics AN2367 Datasheet HTML 6Page - STMicroelectronics AN2367 Datasheet HTML 7Page - STMicroelectronics AN2367 Datasheet HTML 8Page - STMicroelectronics AN2367 Datasheet HTML 9Page - STMicroelectronics AN2367 Datasheet HTML 10Page - STMicroelectronics AN2367 Datasheet HTML 11Page - STMicroelectronics AN2367 Datasheet HTML 12Page - STMicroelectronics AN2367 Datasheet HTML 13Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 11 / 13 page
background image
AN2367
Example of C call
11/13
Appendix B
Example of C call
ulong DMACHandleRxPkt(void* ppkt, ushort size)
{
__DMA_DSCR_Base
*pDescr;
dmacEthernetif
*ptDMACIf;
ulong
value;
ptDMACIf = GetDMACContext();
/* Check if the descriptor is owned by the DMA or CPU */
value = (ulong) (ptDMACIf->pDmaRxDscrBase->dmaPackStatus &
DMA_DSCR_RX_STATUS_VALID_MSK);
/* Check for valid mask
*/
if (value == DMA_DSCR_RX_STATUS_VALID_MSK)
{
return (DMAC_NOK);
}
// Get the Rx Descriptor base
pDescr = ptDMACIf->pDmaRxDscrBase;
// Check for validity
if ( (pDescr != NULL)
&& (pDescr->dmaAddr)
)
{
size = ((pDescr->dmaPackStatus & 0x7ff) - 4);
MEMCOPY_L2S_BY4((char *)ppkt, tempRxAry, size);
}
else
return DMAC_NOK;
/* Give the buffer back to DMAC */
pDescr->dmaPackStatus = DMA_DSCR_RX_STATUS_VALID_MSK;
/* Start the receive operation */
DMAC_REG_BIT_SET( ptDMACIf->pRfDMA->dmaRxStart,
DMA_RX_START_FETCH);
// Return no error
return DMAC_OK;
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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