|
void | bflb_dma_channel_init (struct bflb_device_s *dev, const struct bflb_dma_channel_config_s *config) |
| Initialize dma channel. More...
|
|
void | bflb_dma_channel_deinit (struct bflb_device_s *dev) |
| Deinitialize dma channel. More...
|
|
void | bflb_dma_channel_start (struct bflb_device_s *dev) |
| Start dma channel transfer. More...
|
|
void | bflb_dma_channel_stop (struct bflb_device_s *dev) |
| Stop dma channel transfer. More...
|
|
bool | bflb_dma_channel_isbusy (struct bflb_device_s *dev) |
| Check if dma channel is in busy. More...
|
|
void | bflb_dma_channel_irq_attach (struct bflb_device_s *dev, void(*callback)(void *arg), void *arg) |
| Register dma channel transmission completion interrupt callback. More...
|
|
void | bflb_dma_channel_irq_detach (struct bflb_device_s *dev) |
| Unregister dma channel transmission completion interrupt callback. More...
|
|
int | bflb_dma_channel_lli_reload (struct bflb_device_s *dev, struct bflb_dma_channel_lli_pool_s *lli_pool, uint32_t max_lli_count, struct bflb_dma_channel_lli_transfer_s *transfer, uint32_t count) |
| Config dma channel lli. More...
|
|
void | bflb_dma_channel_lli_link_head (struct bflb_device_s *dev, struct bflb_dma_channel_lli_pool_s *lli_pool, uint32_t used_lli_count) |
| Enable lli continueous mode. More...
|
|
void | bflb_rx_cycle_dma_init (struct bflb_rx_cycle_dma *rx_dma, struct bflb_device_s *dma_ch, struct bflb_dma_channel_lli_pool_s *rx_llipool, uint8_t rx_llipool_size, uint32_t src_addr, uint8_t *dst_buf, uint32_t dst_buf_size, void(*copy)(uint8_t *data, uint32_t len)) |
| Init rx cycle dma. More...
|
|
void | bflb_rx_cycle_dma_process (struct bflb_rx_cycle_dma *rx_dma, bool in_dma_isr) |
| Rx cycle dma process. More...
|
|
int | bflb_dma_feature_control (struct bflb_device_s *dev, int cmd, size_t arg) |
| Control dma feature. More...
|
|
void | bflb_dma_channel_tcint_mask (struct bflb_device_s *dev, bool mask) |
| Enable or disable dma channel transmission completion interrupt. More...
|
|
bool | bflb_dma_channel_get_tcint_status (struct bflb_device_s *dev) |
| Check if dma channel transfers completely. More...
|
|
void | bflb_dma_channel_tcint_clear (struct bflb_device_s *dev) |
| Clear dma channel transmission completion interrupt status. More...
|
|