TMPM4G(1) Group Peripheral Driver User Manual  V1.0.0.0
txz_fuart_mdma.h
Go to the documentation of this file.
1 
14 /*------------------------------------------------------------------------------*/
15 /* Define to prevent recursive inclusion */
16 /*------------------------------------------------------------------------------*/
17 #ifndef __FUART_MDMA_H
18 #define __FUART_MDMA_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /*------------------------------------------------------------------------------*/
25 /* Includes */
26 /*------------------------------------------------------------------------------*/
27 #include "txz_driver_def.h"
28 #include "txz_fuart.h"
29 #include "txz_fuart_include.h"
30 #include "txz_mdma.h"
31 
41 /*------------------------------------------------------------------------------*/
42 /* Macro Definition */
43 /*------------------------------------------------------------------------------*/
53 #define FUART_MDMA_TYPE_UNUSE ((uint32_t)0x00)
54 #define FUART_MDMA_TYPE_AREA_TO_AREA ((uint32_t)0x01)
55 #define FUART_MDMA_TYPE_FIX_TO_AREA ((uint32_t)0x02)
56 #define FUART_MDMA_TYPE_AREA_TO_FIX ((uint32_t)0x03)
57 #define FUART_MDMA_TYPE_FIX_TO_FIX ((uint32_t)0x04) /* End of group FUART_MDMA_TransferType */
61 
66 #define FUART_MDMA_FUART_CH0 ((uint32_t)0x00)
67 #define FUART_MDMA_FUART_CH1 ((uint32_t)0x01) /* End of group FUART_MDMA_TransferType */
71  /* End of group FUART_Exported_define */
75 
76 
77 /*------------------------------------------------------------------------------*/
78 /* Enumerated Type Definition */
79 /*------------------------------------------------------------------------------*/
85 /* no define */
86  /* End of group FUART_Exported_define */
90 
91 
92 /*------------------------------------------------------------------------------*/
93 /* Structure Definition */
94 /*------------------------------------------------------------------------------*/
100 /*----------------------------------*/
104 /*----------------------------------*/
105 typedef struct
106 {
107  uint32_t type;
109  uint32_t ch;
112 
113 /*----------------------------------*/
117 /*----------------------------------*/
118 typedef struct
119 {
124 
125 
126 
127 
128 /*----------------------------------*/
132 /*----------------------------------*/
133 typedef struct
134 {
139 } fuart_mdma_t;
140 
141  /* End of group FUART_Exported_typedef */
145 
146 
147 /*------------------------------------------------------------------------------*/
148 /* Functions */
149 /*------------------------------------------------------------------------------*/
160 TXZ_Result fuart_mdma_get_fuart_ch_to_mdma_ch(uint32_t fuart_ch, uint32_t *tx_ch, uint32_t *rx_ch);
164 TXZ_Result fuart_mdma_RXE_enable(fuart_mdma_t *p_obj); /* End of group FUART_Exported_functions */
168  /* End of group FUART */
172  /* End of group Periph_Driver */
176 
177 #ifdef __cplusplus
178 }
179 #endif /* __cplusplus */
180 #endif /* __FUART_DMA_H */
181 
182 
Transmit data information structure definition.
Definition: txz_fuart.h:399
fuart_mdma_setting_t tx
Definition: txz_fuart_mdma.h:121
mdma_t * p_obj
Definition: txz_fuart_mdma.h:120
TXZ_Result fuart_mdma_receiveIt(fuart_mdma_t *p_obj, fuart_receive_t *p_info)
TXZ_Result
Definition: txz_driver_def.h:43
fuart_mdma_setting_t rx
Definition: txz_fuart_mdma.h:122
TXZ_Result fuart_mdma_discard_transmit(fuart_mdma_t *p_obj)
TXZ_Result fuart_mdma_discard_receive(fuart_mdma_t *p_obj)
fuart_mdma_initial_setting_t init
Definition: txz_fuart_mdma.h:137
FUART handle structure definition.
Definition: txz_fuart.h:483
FUART MDMA handle structure definition.
Definition: txz_fuart_mdma.h:133
uint32_t ch
Definition: txz_fuart_mdma.h:109
fuart_t super
Definition: txz_fuart_mdma.h:135
TXZ_Result fuart_mdma_RXE_disable(fuart_mdma_t *p_obj)
This file provides internal common definition.
All common macro and definition for TXZ peripheral drivers.
This file provides all the functions prototypes for MDMA driver.
MDMA handle structure definition.
Definition: txz_mdma.h:342
This file provides all the functions prototypes for FUART driver.
Receive event information structure definition.
Definition: txz_fuart.h:388
MDMA setting structure definition.
Definition: txz_fuart_mdma.h:105
TXZ_Result fuart_mdma_get_fuart_ch_to_mdma_ch(uint32_t fuart_ch, uint32_t *tx_ch, uint32_t *rx_ch)
TXZ_Result fuart_mdma_TXE_disable(fuart_mdma_t *p_obj)
TXZ_Result fuart_mdma_transmitIt(fuart_mdma_t *p_obj, fuart_transmit_t *p_info)
TXZ_Result fuart_mdma_init(fuart_mdma_t *p_obj)
uint32_t type
Definition: txz_fuart_mdma.h:107
TXZ_Result fuart_mdma_RXE_enable(fuart_mdma_t *p_obj)
FUART MDMA initial setting structure definition.
Definition: txz_fuart_mdma.h:118
TXZ_Result fuart_mdma_deinit(fuart_mdma_t *p_obj)
TXZ_Result fuart_mdma_TXE_enable(fuart_mdma_t *p_obj)