TMPM4G(1) Group Peripheral Driver User Manual  V1.0.0.0
txz_uart_mdma.h
Go to the documentation of this file.
1 
14 /*------------------------------------------------------------------------------*/
15 /* Define to prevent recursive inclusion */
16 /*------------------------------------------------------------------------------*/
17 #ifndef __UART_MDMA_H
18 #define __UART_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_uart.h"
29 #include "txz_uart_include.h"
30 #include "txz_mdma.h"
31 
41 /*------------------------------------------------------------------------------*/
42 /* Macro Definition */
43 /*------------------------------------------------------------------------------*/
53 #define UART_MDMA_TYPE_UNUSE ((uint32_t)0x00)
54 #define UART_MDMA_TYPE_AREA_TO_AREA ((uint32_t)0x01)
55 #define UART_MDMA_TYPE_FIX_TO_AREA ((uint32_t)0x02)
56 #define UART_MDMA_TYPE_AREA_TO_FIX ((uint32_t)0x03)
57 #define UART_MDMA_TYPE_FIX_TO_FIX ((uint32_t)0x04) /* End of group UART_MDMA_TransferType */
61 
66 #define UART_MDMA_UART_CH0 ((uint32_t)0x00)
67 #define UART_MDMA_UART_CH1 ((uint32_t)0x01)
68 #define UART_MDMA_UART_CH2 ((uint32_t)0x02)
69 #define UART_MDMA_UART_CH3 ((uint32_t)0x03)
70 #define UART_MDMA_UART_CH4 ((uint32_t)0x04)
71 #define UART_MDMA_UART_CH5 ((uint32_t)0x05) /* End of group UART_MDMA_TransferType */
75  /* End of group UART_Exported_define */
79 
80 
81 /*------------------------------------------------------------------------------*/
82 /* Enumerated Type Definition */
83 /*------------------------------------------------------------------------------*/
89 /* no define */
90  /* End of group UART_Exported_define */
94 
95 
96 /*------------------------------------------------------------------------------*/
97 /* Structure Definition */
98 /*------------------------------------------------------------------------------*/
104 /*----------------------------------*/
108 /*----------------------------------*/
109 typedef struct
110 {
111  uint32_t type;
113  uint32_t ch;
116 
117 /*----------------------------------*/
121 /*----------------------------------*/
122 typedef struct
123 {
128 
129 
130 
131 
132 /*----------------------------------*/
136 /*----------------------------------*/
137 typedef struct
138 {
143 } uart_mdma_t;
144 
145  /* End of group UART_Exported_typedef */
149 
150 
151 /*------------------------------------------------------------------------------*/
152 /* Functions */
153 /*------------------------------------------------------------------------------*/
164 TXZ_Result uart_mdma_get_uart_ch_to_mdma_ch(uint32_t uart_ch, uint32_t *tx_ch, uint32_t *rx_ch);
168 TXZ_Result uart_mdma_RXE_enable(uart_mdma_t *p_obj); /* End of group UART_Exported_functions */
172  /* End of group UART */
176  /* End of group Periph_Driver */
180 
181 #ifdef __cplusplus
182 }
183 #endif /* __cplusplus */
184 #endif /* __UART_DMA_H */
185 
186 
Transmit data information structure definition.
Definition: txz_uart.h:632
TXZ_Result
Definition: txz_driver_def.h:43
mdma_t * p_obj
Definition: txz_uart_mdma.h:124
TXZ_Result uart_mdma_RXE_enable(uart_mdma_t *p_obj)
UART handle structure definition.
Definition: txz_uart.h:745
uart_mdma_setting_t rx
Definition: txz_uart_mdma.h:126
UART MDMA initial setting structure definition.
Definition: txz_uart_mdma.h:122
uint32_t type
Definition: txz_uart_mdma.h:111
This file provides internal common definition.
uart_t super
Definition: txz_uart_mdma.h:139
uart_mdma_setting_t tx
Definition: txz_uart_mdma.h:125
UART MDMA handle structure definition.
Definition: txz_uart_mdma.h:137
Receive event information structure definition.
Definition: txz_uart.h:596
TXZ_Result uart_mdma_TXE_disable(uart_mdma_t *p_obj)
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
TXZ_Result uart_mdma_discard_receive(uart_mdma_t *p_obj)
uint32_t ch
Definition: txz_uart_mdma.h:113
TXZ_Result uart_mdma_receiveIt(uart_mdma_t *p_obj, uart_receive_t *p_info)
uart_mdma_initial_setting_t init
Definition: txz_uart_mdma.h:141
TXZ_Result uart_mdma_RXE_disable(uart_mdma_t *p_obj)
TXZ_Result uart_mdma_deinit(uart_mdma_t *p_obj)
TXZ_Result uart_mdma_get_uart_ch_to_mdma_ch(uint32_t uart_ch, uint32_t *tx_ch, uint32_t *rx_ch)
TXZ_Result uart_mdma_discard_transmit(uart_mdma_t *p_obj)
MDMA setting structure definition.
Definition: txz_uart_mdma.h:109
TXZ_Result uart_mdma_init(uart_mdma_t *p_obj)
TXZ_Result uart_mdma_transmitIt(uart_mdma_t *p_obj, uart_transmit_t *p_info)
TXZ_Result uart_mdma_TXE_enable(uart_mdma_t *p_obj)
This file provides all the functions prototypes for UART driver.