1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
23
24
29
30
37
38
39
44
45
46
51
52
53
59
60
61
66
67
68
69
70
71
72
/* ... */
#pragma once
#include "stdbool.h"
#include "hal/spi_types.h"
#ifdef __cplusplus
extern "C" {
#endif
#if !SOC_GDMA_SUPPORTED
/* ... */
typedef enum {
DMA_CHANNEL_DIRECTION_TX,
DMA_CHANNEL_DIRECTION_RX,
}{ ... } spi_dma_chan_dir_t;
typedef struct {
spi_host_device_t host_id;
spi_dma_chan_dir_t dir;
int chan_id;
}{ ... } spi_dma_chan_handle_t;
/* ... */
void spi_dma_enable_burst(spi_dma_chan_handle_t chan_handle, bool data_burst, bool desc_burst);
/* ... */
void spi_dma_append(spi_dma_chan_handle_t chan_handle);
/* ... */
void spi_dma_reset(spi_dma_chan_handle_t chan_handle);
/* ... */
void spi_dma_start(spi_dma_chan_handle_t chan_handle, void *addr);
/* ... */
uint32_t spi_dma_get_eof_desc(spi_dma_chan_handle_t chan_handle);
/* ... */
#endif
#ifdef __cplusplus
}{...}
#endif