Check if the specified DMA Channel is enabled.
uint32_t dmac_channel_is_enable( Dmac * p_dmac, uint32_t ul_num)
Data direction | Parameter name | Description |
---|---|---|
[in] |
p_dmac |
Module hardware register base address pointer |
[in] |
ul_num |
DMA Channel number (range 0 to 3) |
The DMA Channel's enable/disable status.
Return value | Description |
---|---|
0 |
DMA Channel is disabled |
1 |
DMA Channel is enabled |