TMPM4G(1) Group Peripheral Driver User Manual
V1.0.0.0
txz_mdma_include.h
Go to the documentation of this file.
1
13
/*------------------------------------------------------------------------------*/
14
/* Define to prevent recursive inclusion */
15
/*------------------------------------------------------------------------------*/
16
#ifndef __MDMA_INCLUDE_H
17
#define __MDMA_INCLUDE_H
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
/*------------------------------------------------------------------------------*/
24
/* Includes */
25
/*------------------------------------------------------------------------------*/
26
#include "
txz_driver_def.h
"
27
37
/*------------------------------------------------------------------------------*/
38
/* Macro Function */
39
/*------------------------------------------------------------------------------*/
45
/* no define */
46
/* End of group MDMA_Private_macro */
50
51
52
/*------------------------------------------------------------------------------*/
53
/* Macro Definition */
54
/*------------------------------------------------------------------------------*/
65
#define MDMA_NULL ((void *)0)
/* End of group MDMA_NullPointer */
69
75
#define MDMA_PARAM_OK ((int32_t)0)
76
#define MDMA_PARAM_NG ((int32_t)-1)
/* End of group MDMA_ParameterResult */
80
86
#define MDMA_FORCE_STOP_STATUS_IDLE ((uint32_t)0)
87
#define MDMA_FORCE_STOP_STATUS_RUN ((uint32_t)1)
88
#define MDMA_FORCE_STOP_STATUS_DONE ((uint32_t)2)
89
#define MDMA_FORCE_STOP_STATUS_ERROR ((uint32_t)3)
/* End of group MDMA_FORCE_STOP_STATUS */
93
99
#define MDMA_TIME_OUT_COUNT ((uint32_t)0x1000000)
/* End of group TIME_OUT_COUNT */
103
/* End of group MDMA_Private_define */
106
107
/*------------------------------------------------------------------------------*/
108
/* Inline Functions */
109
/*------------------------------------------------------------------------------*/
114
__STATIC_INLINE uint32_t
convert_ch_to_reg
(uint32_t ch);
115
/*--------------------------------------------------*/
122
/*--------------------------------------------------*/
123
__STATIC_INLINE uint32_t
convert_ch_to_reg
(uint32_t ch)
124
{
125
uint32_t result = (uint32_t)((uint32_t)1 << (uint8_t)ch);
126
127
return
(result);
128
}
129
/* End of group MDMA_Private_functions */
133
134
/* End of group MDMA */
/* End of group Periph_Driver */
141
142
143
#ifdef __cplusplus
144
}
145
#endif
/* __cplusplus */
146
#endif
/* __MDMA_INCLUDE_H */
147
148
convert_ch_to_reg
__STATIC_INLINE uint32_t convert_ch_to_reg(uint32_t ch)
Convert channel to register.
Definition:
txz_mdma_include.h:123
txz_driver_def.h
All common macro and definition for TXZ peripheral drivers.
CMOS5F_ReleaseBuild
TMPM4G9_V1000
Libraries
Periph_driver
inc
txz_mdma_include.h
Generated by
1.8.12