Electronic Components Datasheet Search |
|
AN2367 Datasheet(PDF) 11 Page - STMicroelectronics |
|
AN2367 Datasheet(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; } |
Similar Part No. - AN2367 |
|
Similar Description - AN2367 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link Exchange | Manufacturer List 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 |