| 전자부품 데이터시트 검색엔진 |
|
AN2367 데이터시트(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2367 데이터시트(HTML) 11 Page - STMicroelectronics |
|
11 / 13 page ![]() 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; } |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |