Added getChannelTransitionSize function
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11532 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
43185af232
commit
b75eda3185
|
@ -143,6 +143,20 @@ typedef struct {
|
||||||
#define dmaGetChannelInt(dmachp) \
|
#define dmaGetChannelInt(dmachp) \
|
||||||
(dmachp)->xdmac->XDMAC_CHID[(dmachp)->chid].XDMAC_CIS
|
(dmachp)->xdmac->XDMAC_CHID[(dmachp)->chid].XDMAC_CIS
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Returns the number of transfers to be performed.
|
||||||
|
* @note This function can be invoked in both ISR or thread context.
|
||||||
|
* @pre The stream must have been allocated using @p dmaChannelAllocate().
|
||||||
|
* @post After use the stream can be released using @p dmaChannelRelease().
|
||||||
|
*
|
||||||
|
* @param[in] dmachp pointer to a @p sama_dma_channel_t structure
|
||||||
|
* @return The number of transfers to be performed.
|
||||||
|
*
|
||||||
|
* @special
|
||||||
|
*/
|
||||||
|
#define dmaChannelGetTransactionSize(dmachp) \
|
||||||
|
((size_t)((dmachp)->xdmac->XDMAC_CHID[(dmachp)->chid].XDMAC_CUBC))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Associates a source to a DMA channel.
|
* @brief Associates a source to a DMA channel.
|
||||||
* @note This function can be invoked in both ISR or thread context.
|
* @note This function can be invoked in both ISR or thread context.
|
||||||
|
|
Loading…
Reference in New Issue