VSF Documented
|
#include "hal/driver/driver.h"
Macros | |
#define | VSF_DMA_CFG_FUNCTION_RENAME DISABLED |
Functions | |
vsf_err_t | vsf_dma_init (vsf_dma_t *dma_ptr) |
initialize a dma instance. | |
void | vsf_dma_fini (vsf_dma_t *dma_ptr) |
finalize a dma instance. | |
vsf_dma_capability_t | vsf_dma_capability (vsf_dma_t *dma_ptr) |
get the capability of dma instance. | |
int8_t | vsf_dma_channel_request (vsf_dma_t *dma_ptr) |
dma request new channel | |
void | vsf_dma_channel_release (vsf_dma_t *dma_ptr, int8_t channel) |
dma release channel | |
vsf_err_t | vsf_dma_channel_config (vsf_dma_t *dma_ptr, int8_t channel, vsf_dma_channel_cfg_t *cfg_ptr) |
dma channel configuration | |
vsf_err_t | vsf_dma_channel_start (vsf_dma_t *dma_ptr, int8_t channel, uint32_t src_address, uint32_t dst_address, uint32_t count) |
DMA starts a channel transfer. | |
vsf_err_t | vsf_dma_channel_cancel (vsf_dma_t *dma_ptr, int8_t channel) |
DMA cancels the transmission of a specific channel. | |
uint32_t | vsf_dma_channel_get_transferred_count (vsf_dma_t *dma_ptr, int8_t channel) |
DMA get counter of specific channel that have been transferred. | |
vsf_dma_channel_status_t | vsf_dma_channel_status (vsf_dma_t *dma_ptr, int8_t channel) |
dma release channel | |
#define VSF_DMA_CFG_FUNCTION_RENAME DISABLED |
initialize a dma instance.
[in] | dma_ptr | a pointer to structure vsf_dma_t |
void vsf_dma_fini | ( | vsf_dma_t * | dma_ptr | ) |
vsf_dma_capability_t vsf_dma_capability | ( | vsf_dma_t * | dma_ptr | ) |
get the capability of dma instance.
[in] | dma_ptr | a pointer to structure vsf_dma_t |
dma request new channel
[in] | dma_ptr | a pointer to structure vsf_dma_t |
dma release channel
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | channel | channel number |
vsf_err_t vsf_dma_channel_config | ( | vsf_dma_t * | dma_ptr, |
int8_t | channel, | ||
vsf_dma_channel_cfg_t * | cfg_ptr | ||
) |
dma channel configuration
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | cfg_ptr | a pointer to DMA channel configuration |
vsf_err_t vsf_dma_channel_start | ( | vsf_dma_t * | dma_ptr, |
int8_t | channel, | ||
uint32_t | src_address, | ||
uint32_t | dst_address, | ||
uint32_t | count | ||
) |
DMA starts a channel transfer.
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | channel | channel number |
[in] | src_address | source address |
[in] | dst_address | destination address |
[in] | count | counter of data to be transferred (in byte) |
DMA cancels the transmission of a specific channel.
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | channel | channel number |
DMA get counter of specific channel that have been transferred.
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | channel | channel number |
vsf_dma_channel_status_t vsf_dma_channel_status | ( | vsf_dma_t * | dma_ptr, |
int8_t | channel | ||
) |
dma release channel
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | channel | channel number |