TMPM4KxA Group Peripheral Driver User Manual  V1.0.4.0
Functions
DMA_Private_fuctions

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...
 

Detailed Description

Function Documentation

◆ check_param_channel()

__STATIC_INLINE int32_t check_param_channel ( uint32_t  numMax,
uint32_t  ch 
)

Check the channel no.

Parameters
numMax:Channel Max Num.
ch:Channel No.
Return values
DMA_PARAM_OK:Valid
DMA_PARAM_NG:Invalid
Note
-

◆ convert_ch_to_reg()

__STATIC_INLINE uint32_t convert_ch_to_reg ( uint32_t  ch)

Convert channel to register.

Parameters
ch:Channel(Interface format).
Return values
Channel(Registerformat).
Note
-

◆ convert_transfer_num_to_reg()

__STATIC_INLINE uint32_t convert_transfer_num_to_reg ( uint32_t  num)

Convert transfer num to register.

Parameters
num:Transfer num(Interface format).
Return values
Transfernum(Register format).
Note
-

◆ get_end_address()

__STATIC_INLINE uint32_t get_end_address ( uint32_t  start,
uint32_t  inc,
uint32_t  size,
uint32_t  num 
)

Get Tansfer End Address.

Parameters
start:Start Address.
inc:Address increment type.
size:One data size.
num:Num of transfer data.
Return values
TansferEnd Address.
Note
Must be set (num > 0).

◆ get_primary_address()

__STATIC_INLINE uint32_t get_primary_address ( uint32_t  base,
uint32_t  ch 
)

Get primary start address.

Parameters
base:Primary base address.
ch:Channel.
Return values
Primarystart address.
Note
-