Course Hero Logo

Parameters mapping is a macro specifying the

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 92 - 95 out of 441 pages.

Parametersmappingis a macro specifying the peripheral assignment for a channel.This function assigns a peripheral mapping to a DMA channel. It is used to select which peripheralis used for a DMA channel. The parametermappingshould be one of the macros namedUDMA_CHn_ttttfrom the header filedma.h. For example, to assign DMA channel 0 to the eUSCIAO RX channel, the parameter should be the macroUDMA_CH1_EUSCIA0RX.Please consult the data sheet for a table showing all the possible peripheral assignments for theDMA channels for a particular device.ReturnsNone.7.3.3.2void DMA_assignInterrupt ( uint32_tinterruptNumber,uint32_tchannel)Assigns a specific DMA channel to the corresponding interrupt handler. For MSP432 devices,there are three configurable interrupts, and one master interrupt. This function will assign aspecific DMA channel to the provided configurable DMA interrupt.Note that once a channel is assigned to a configurable interrupt, it will be masked in hardwarefrom the master DMA interrupt (interruptNumber zero). This function can also be used inconjunction with the DMAIntTrigger function to provide the feature to software trigger specificchannel interrupts.Wed Aug 14 17:01:15 -05 201991
Direct Memory Access Controller (DMA)ParametersinterruptNumberis the configurable interrupt to assign the given channel. Valid values are:DMA_INT1the first configurable DMA interrupt handlerDMA_INT2the second configurable DMA interrupt handlerDMA_INT3the third configurable DMA interrupt handlerchannelis the channel to assign the interruptReturnsNone.ReferencesDMA_enableInterrupt().7.3.3.3void DMA_clearErrorStatus ( void)Clears the DMA error interrupt.This function clears a pending DMA error interrupt. This function should be called from within theDMA error interrupt handler to clear the interrupt.ReturnsNone.7.3.3.4void DMA_clearInterruptFlag ( uint32_tchannel)Clears the DMA controller channel interrupt mask for interrupt zero.Parameterschannelis the channel interrupt to clear.This function is used to clear the interrupt status of the DMA controller. Note that only interruptsthat weren’t assigned to DMA interrupts one through three using the DMA_assignInterrupt functionwill be affected by this function. For other DMA interrupts, only one channel can be associated andtherefore clearing is unnecessary.ReturnsNone7.3.3.5void DMA_disableChannel ( uint32_tchannelNum)Disables a DMA channel for operation.ParametersWed Aug 14 17:01:15 -05 201992
Direct Memory Access Controller (DMA)channelNumis the channel number to disable.This function disables a specific DMA channel. Once disabled, a channel cannot respond to DMAtransfer requests until re-enabled viaDMA_enableChannel().ReturnsNone.7.3.3.6void DMA_disableChannelAttribute ( uint32_tchannelNum,uint32_tattr)Disables attributes of a DMA channel.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 441 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
DIEGOYANKELEVICH
Tags
Interrupt handler, DriverLib, ADC14

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture