TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
|
Functions | |
TXZ_Result | dma_init (dma_t *p_obj) |
Initialize the DMA object. More... | |
TXZ_Result | dma_deinit (dma_t *p_obj) |
Release the DMA object. More... | |
TXZ_Result | dma_get_error (dma_t *p_obj, uint32_t *p_err) |
Get Error. More... | |
TXZ_Result | dma_clear_error (dma_t *p_obj) |
Clear Error. More... | |
void | dma_error_irq_handler (dma_t *p_obj) |
Error IRQ handler. More... | |
void | dma_irq_handler (dma_t *p_obj, uint32_t ch) |
IRQ handler. More... | |
TXZ_Result | dma_ch_init (dma_t *p_obj, uint32_t ch) |
Initialize the DMA channel object. More... | |
TXZ_Result | dma_ch_deinit (dma_t *p_obj, uint32_t ch) |
Release the DMA channel object. More... | |
TXZ_Result | dma_startIt (dma_t *p_obj, uint32_t ch, dma_cfg_t *p_cfg) |
Start DMA mode. More... | |
TXZ_Result | dma_stopIt (dma_t *p_obj, uint32_t ch) |
Stop DMA mode. More... | |
TXZ_Result | dma_sw_request (dma_t *p_obj, uint32_t ch) |
DMA Request Self Trigger. More... | |
TXZ_Result | dma_normal_startIt (dma_t *p_obj, uint32_t ch, uint32_t burst, dma_normal_cfg_t *p_cfg) |
Start DMA normal mode. More... | |
TXZ_Result | dma_normal_stopIt (dma_t *p_obj, uint32_t ch) |
Stop DMA normal mode. More... | |
TXZ_Result | dma_normal_cnt_startIt (dma_t *p_obj, uint32_t ch, uint32_t burst, dma_cnt_cfg_t *p_cfg) |
Start DMA DMA Continuation mode. More... | |
TXZ_Result | dma_normal_cnt_stopIt (dma_t *p_obj, uint32_t ch) |
Stop DMA DMA Continuation mode. More... | |
TXZ_Result | dma_cnt_chain_startIt (dma_t *p_obj, uint32_t ch, uint32_t burst, dma_chain_cfg_t *p_cfg) |
Start DMA Continuation Chain mode. More... | |
TXZ_Result | dma_cnt_chain_stopIt (dma_t *p_obj, uint32_t ch) |
Stop DMA Continuation Chain mode. More... | |
TXZ_Result | dma_chain_startIt (dma_t *p_obj, uint32_t ch, uint32_t burst, dma_chain_cfg_t *p_cfg) |
Start DMA Chain mode. More... | |
TXZ_Result | dma_chain_stopIt (dma_t *p_obj, uint32_t ch) |
Stop DMA Chain mode. More... | |
TXZ_Result dma_ch_deinit | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Release the DMA channel object.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_ch_init | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Initialize the DMA channel object.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_chain_startIt | ( | dma_t * | p_obj, |
uint32_t | ch, | ||
uint32_t | burst, | ||
dma_chain_cfg_t * | p_cfg | ||
) |
Start DMA Chain mode.
p_obj | :DMA object. |
ch | :Channel. |
burst | :Use burst. Use Burst. |
p_cfg | :config. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_chain_stopIt | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Stop DMA Chain mode.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_clear_error | ( | dma_t * | p_obj | ) |
Clear Error.
p_obj | :DMA object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_cnt_chain_startIt | ( | dma_t * | p_obj, |
uint32_t | ch, | ||
uint32_t | burst, | ||
dma_chain_cfg_t * | p_cfg | ||
) |
Start DMA Continuation Chain mode.
p_obj | :DMA object. |
ch | :Channel. |
burst | :Use burst. Use Burst. |
p_cfg | :config. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_cnt_chain_stopIt | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Stop DMA Continuation Chain mode.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_deinit | ( | dma_t * | p_obj | ) |
Release the DMA object.
p_obj | :DMA object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
void dma_error_irq_handler | ( | dma_t * | p_obj | ) |
Error IRQ handler.
p_obj | :DMA object. |
- |
TXZ_Result dma_get_error | ( | dma_t * | p_obj, |
uint32_t * | p_err | ||
) |
Get Error.
Error bits.
Bit | Bit Symbol | Function |
---|---|---|
31-1 | - | - |
0 | err_clr | Bus Error. |
p_obj | :DMA object. |
p_err | :Destination address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_init | ( | dma_t * | p_obj | ) |
Initialize the DMA object.
p_obj | :DMA object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
void dma_irq_handler | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
IRQ handler.
p_obj | :DMA object. |
ch | :Channel. |
- |
TXZ_Result dma_normal_cnt_startIt | ( | dma_t * | p_obj, |
uint32_t | ch, | ||
uint32_t | burst, | ||
dma_cnt_cfg_t * | p_cfg | ||
) |
Start DMA DMA Continuation mode.
p_obj | :DMA object. |
ch | :Channel. |
burst | :Use burst. Use Burst. |
p_cfg | :config. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_normal_cnt_stopIt | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Stop DMA DMA Continuation mode.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_normal_startIt | ( | dma_t * | p_obj, |
uint32_t | ch, | ||
uint32_t | burst, | ||
dma_normal_cfg_t * | p_cfg | ||
) |
Start DMA normal mode.
p_obj | :DMA object. |
ch | :Channel. |
burst | :Use burst. Use Burst. |
p_cfg | :config. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_normal_stopIt | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Stop DMA normal mode.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
Start DMA mode.
p_obj | :DMA object. |
ch | :Channel. |
p_cfg | :config. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_stopIt | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
Stop DMA mode.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result dma_sw_request | ( | dma_t * | p_obj, |
uint32_t | ch | ||
) |
DMA Request Self Trigger.
p_obj | :DMA object. |
ch | :Channel. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |