TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
|
This file provides API functions for DMA driver. More...
Functions | |
__STATIC_INLINE int32_t | check_param_priority (uint32_t param) |
Check the Priority's parameter. More... | |
__STATIC_INLINE int32_t | check_param_burst (uint32_t param) |
Check the Use Burst's parameter. More... | |
__STATIC_INLINE int32_t | check_param_dest_inc (uint32_t param) |
Check the Destination Address Increment Type's parameter. More... | |
__STATIC_INLINE int32_t | check_param_dest_size (uint32_t param) |
Check the Destination Data Size's parameter. More... | |
__STATIC_INLINE int32_t | check_param_src_inc (uint32_t param) |
Check the Source Address Increment Type's parameter. More... | |
__STATIC_INLINE int32_t | check_param_src_size (uint32_t param) |
Check the Source Data Size's parameter. More... | |
__STATIC_INLINE int32_t | check_param_arbitration_num (uint32_t param) |
Check the Arbitration Timing's parameter. More... | |
__STATIC_INLINE int32_t | check_param_transfer_num (uint32_t param) |
Check the Transfer Num Range's parameter. More... | |
__STATIC_INLINE int32_t | check_param_primary_base_address (uint32_t num, uint32_t param) |
Check the primary base address. More... | |
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... | |
void | dma_irq_handler (dma_t *p_obj, uint32_t ch) |
IRQ handler. More... | |
void | dma_error_irq_handler (dma_t *p_obj) |
Error IRQ handler. 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... | |
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... | |
Variables | |
C | |
This file provides API functions for DMA driver.
DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LICENSE AGREEMENT.
(C)Copyright TOSHIBA MICROELECTRONICS CORPORATION 2017 All rights reserved
__STATIC_INLINE int32_t check_param_arbitration_num | ( | uint32_t | param | ) |
Check the Arbitration Timing's parameter.
param | :Arbitration Timing's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_burst | ( | uint32_t | param | ) |
Check the Use Burst's parameter.
param | :Use Burst's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_dest_inc | ( | uint32_t | param | ) |
Check the Destination Address Increment Type's parameter.
param | :Destination Address Increment Type's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_dest_size | ( | uint32_t | param | ) |
Check the Destination Data Size's parameter.
param | :Destination Data Size's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_primary_base_address | ( | uint32_t | num, |
uint32_t | param | ||
) |
Check the primary base address.
num | :Num of total channel. |
param | :Primary base address. |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_priority | ( | uint32_t | param | ) |
Check the Priority's parameter.
param | :Priority's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_src_inc | ( | uint32_t | param | ) |
Check the Source Address Increment Type's parameter.
param | :Source Address Increment Type's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_src_size | ( | uint32_t | param | ) |
Check the Source Data Size's parameter.
param | :Source Data Size's parameter |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE int32_t check_param_transfer_num | ( | uint32_t | param | ) |
Check the Transfer Num Range's parameter.
param | :Transfer Num Range's parameter |
ADC_PARAM_OK | :Valid |
ADC_PARAM_NG | :Invalid |