TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
|
Functions | |
__STATIC_INLINE int32_t | check_param_channel (uint32_t numMax, uint32_t ch) |
Check the channel no. More... | |
__STATIC_INLINE uint32_t | get_primary_address (uint32_t base, uint32_t ch) |
Get primary start address. More... | |
__STATIC_INLINE uint32_t | convert_transfer_num_to_reg (uint32_t num) |
Convert transfer num to register. More... | |
__STATIC_INLINE uint32_t | convert_ch_to_reg (uint32_t ch) |
Convert channel to register. More... | |
__STATIC_INLINE uint32_t | get_end_address (uint32_t start, uint32_t inc, uint32_t size, uint32_t num) |
Get Tansfer End Address. More... | |
__STATIC_INLINE int32_t check_param_channel | ( | uint32_t | numMax, |
uint32_t | ch | ||
) |
Check the channel no.
numMax | :Channel Max Num. |
ch | :Channel No. |
DMA_PARAM_OK | :Valid |
DMA_PARAM_NG | :Invalid |
__STATIC_INLINE uint32_t convert_ch_to_reg | ( | uint32_t | ch | ) |
Convert channel to register.
ch | :Channel(Interface format). |
Channel(Register | format). |
__STATIC_INLINE uint32_t convert_transfer_num_to_reg | ( | uint32_t | num | ) |
Convert transfer num to register.
num | :Transfer num(Interface format). |
Transfer | num(Register format). |
__STATIC_INLINE uint32_t get_end_address | ( | uint32_t | start, |
uint32_t | inc, | ||
uint32_t | size, | ||
uint32_t | num | ||
) |
Get Tansfer End Address.
start | :Start Address. |
inc | :Address increment type. |
size | :One data size. |
num | :Num of transfer data. |
Tansfer | End Address. |
__STATIC_INLINE uint32_t get_primary_address | ( | uint32_t | base, |
uint32_t | ch | ||
) |
Get primary start address.
base | :Primary base address. |
ch | :Channel. |
Primary | start address. |