You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @note This API won't install interrupt service for the allocated channel.
149
+
* If interrupt service is needed, user has to register GDMA event callback by `gdma_register_tx_event_callbacks` or `gdma_register_rx_event_callbacks`.
150
+
* @note To allocate both TX and RX channels in a pair, pass non-NULL pointers for both ret_tx_chan and ret_rx_chan.
151
+
* To allocate only one direction, pass NULL for the unwanted direction.
152
+
* @note Allocation is atomic: if any channel fails to allocate, all partially allocated resources are cleaned up automatically.
153
+
* Either all requested channels are successfully allocated, or the function fails with no channels allocated.
154
+
*
155
+
* @param[in] config Pointer to a collection of configurations for allocating GDMA channel
156
+
* @param[out] ret_tx_chan Returned TX channel handle. Pass NULL if TX channel is not needed. Must not be NULL if ret_rx_chan is also NULL.
157
+
* @param[out] ret_rx_chan Returned RX channel handle. Pass NULL if RX channel is not needed. Must not be NULL if ret_tx_chan is also NULL.
158
+
* @return
159
+
* - ESP_OK: Create DMA channel(s) successfully
160
+
* - ESP_ERR_INVALID_ARG: Create DMA channel failed because both ret_tx_chan and ret_rx_chan are NULL
161
+
* - ESP_ERR_NO_MEM: Create DMA channel failed because out of memory
162
+
* - ESP_FAIL: Create DMA channel failed because of other error
0 commit comments