VSF Documented
|
Go to the source code of this file.
Data Structures | |
struct | vsf_dma_isr_t |
struct | vsf_dma_channel_cfg_t |
dma configuration More... | |
struct | vsf_dma_channel_status_t |
struct | vsf_dma_capability_t |
struct | vsf_dma_op_t |
struct | vsf_dma_t |
Typedefs | |
typedef enum vsf_dma_channel_mode_t | vsf_dma_channel_mode_t |
typedef enum vsf_dma_irq_mask_t | vsf_dma_irq_mask_t |
typedef struct vsf_dma_t | vsf_dma_t |
typedef void | vsf_dma_isr_handler_t(void *target_ptr, vsf_dma_t *dma_ptr, int8_t channel, vsf_dma_irq_mask_t irq_mask) |
typedef struct vsf_dma_isr_t | vsf_dma_isr_t |
typedef struct vsf_dma_channel_cfg_t | vsf_dma_channel_cfg_t |
dma configuration | |
typedef struct vsf_dma_channel_status_t | vsf_dma_channel_status_t |
typedef struct vsf_dma_capability_t | vsf_dma_capability_t |
typedef struct vsf_dma_op_t | vsf_dma_op_t |
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_MULTI_CLASS ENABLED |
#define VSF_DMA_CFG_PREFIX vsf |
#define VSF_DMA_CFG_FUNCTION_RENAME ENABLED |
#define VSF_DMA_CFG_REIMPLEMENT_TYPE_CHANNEL_MODE DISABLED |
#define VSF_DMA_CFG_REIMPLEMENT_TYPE_IRQ_MASK DISABLED |
#define VSF_DMA_CFG_REIMPLEMENT_TYPE_CHANNEL_CFG DISABLED |
Redefine struct vsf_dma_channel_cfg_t. For compatibility, members should not be deleted when struct vsf_dma_channel_cfg_t redefining.
#define VSF_DMA_CFG_REIMPLEMENT_TYPE_CFG DISABLED |
Redefine struct vsf_dma_cfg_t. The vsf_dma_isr_handler_t type also needs to be redefined For compatibility, members should not be deleted when struct vsf_dma_cfg_t redefining.
#define VSF_DMA_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
Redefine struct vsf_dma_capability_t. For compatibility, members should not be deleted when struct vsf_dma_capability_t redefining.
#define VSF_DMA_CFG_INHERT_HAL_CAPABILITY ENABLED |
#define VSF_DMA_APIS | ( | __prefix_name | ) |
#define __VSF_HAL_TEMPLATE_API VSF_HAL_TEMPLATE_API_FP |
#define __vsf_dma_t VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_t) |
#define vsf_dma_init | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_init) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_fini | ( | __DMA | ) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_fini) ((__vsf_dma_t *)(__DMA)) |
#define vsf_dma_capability | ( | __DMA | ) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_capability) ((__vsf_dma_t *)(__DMA)) |
#define vsf_dma_channel_request | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_request) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_channel_release | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_release) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_channel_config | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_config) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_channel_start | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_start) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_channel_cancel | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_cancel) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_channel_get_transferred_count | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_get_transferred_count) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
#define vsf_dma_channel_status | ( | __DMA, | |
... | |||
) | VSF_MCONNECT(VSF_DMA_CFG_PREFIX, _dma_channel_status) ((__vsf_dma_t *)(__DMA), ##__VA_ARGS__) |
typedef enum vsf_dma_channel_mode_t vsf_dma_channel_mode_t |
typedef enum vsf_dma_irq_mask_t vsf_dma_irq_mask_t |
typedef void vsf_dma_isr_handler_t(void *target_ptr, vsf_dma_t *dma_ptr, int8_t channel, vsf_dma_irq_mask_t irq_mask) |
typedef struct vsf_dma_isr_t vsf_dma_isr_t |
typedef struct vsf_dma_channel_cfg_t vsf_dma_channel_cfg_t |
dma configuration
typedef struct vsf_dma_channel_status_t vsf_dma_channel_status_t |
typedef struct vsf_dma_capability_t vsf_dma_capability_t |
typedef struct vsf_dma_op_t vsf_dma_op_t |
anonymous enum |
enum vsf_dma_irq_mask_t |
initialize a dma instance.
[in] | dma_ptr | a pointer to structure vsf_dma_t |
|
extern |
|
extern |
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 |
|
extern |
dma channel configuration
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | cfg_ptr | a pointer to DMA channel configuration |
|
extern |
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 |
|
extern |
dma release channel
[in] | dma_ptr | a pointer to structure vsf_dma_t |
[in] | channel | channel number |