TMPM4G9  V1.0.0.0
bsp_uart_io_mdma.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __BSP_UART_IO_MDMA_H
17 #define __BSP_UART_IO_MDMA_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include <stdarg.h>
27 #include "txz_sample_def.h"
28 
38 /*------------------------------------------------------------------------------*/
39 /* Macro Function */
40 /*------------------------------------------------------------------------------*/
46 /* no define */
47  /* End of group BSP_UTILITIES_Exported_macro */
51 
52 
53 /*------------------------------------------------------------------------------*/
54 /* Configuration */
55 /*------------------------------------------------------------------------------*/
61 /* no define */
62  /* End of group BSP_UTILITIES_Exported_define */
66 
67 
68 /*------------------------------------------------------------------------------*/
69 /* Macro Definition */
70 /*------------------------------------------------------------------------------*/
76 #define UART_IO_MDMA_SEND_MAX ((uint32_t)0x100)
77 #define UART_IO_MDMA_RECEIVE_MAX ((uint32_t)0x100) /* End of group BSP_UTILITIES_Exported_define */
83 
84 
85 /*------------------------------------------------------------------------------*/
86 /* Enumerated Type Definition */
87 /*------------------------------------------------------------------------------*/
93 /*----------------------------------*/
97 /*----------------------------------*/
98 typedef enum {
104 
105 /*----------------------------------*/
109 /*----------------------------------*/
110 typedef enum {
116  /* End of group BSP_UTILITIES_Exported_define */
120 
121 
122 /*------------------------------------------------------------------------------*/
123 /* Structure Definition */
124 /*------------------------------------------------------------------------------*/
129 /*----------------------------------*/
133 /*----------------------------------*/
134 typedef struct
135 {
136  uint32_t id;
138  uint32_t boudrate;
139  struct
140  {
142  } mdma;
144 
145 /*----------------------------------*/
150 /*----------------------------------*/
151 typedef struct
152 {
153  volatile UartIOMDmaTxState state;
154  uint8_t buff[UART_IO_MDMA_SEND_MAX];
156 
157 /*----------------------------------*/
162 /*----------------------------------*/
163 typedef struct
164 {
165  volatile UartIOMDmaRxState state;
166  uint8_t buff[UART_IO_MDMA_RECEIVE_MAX];
168 
169 /*----------------------------------*/
173 /*----------------------------------*/
174 typedef struct
175 {
180 
181 /*----------------------------------*/
185 /*----------------------------------*/
186 typedef struct
187 {
191  /* End of group BSP_UTILITIES_Exported_typedef */
195 
196 
197 /*------------------------------------------------------------------------------*/
198 /* Functions */
199 /*------------------------------------------------------------------------------*/
205 void uart_io_mdma_finalize(uart_io_mdma_t *p_instance); /* End of group BSP_UTILITIES_Exported_functions */
209  /* End of group BSP_UTILITIES */
213  /* End of group Example */
217 
218 #ifdef __cplusplus
219 }
220 #endif /* __cplusplus */
221 #endif /* __BSP_UART_IO_MDMA_H */
222 
Definition: bsp_uart_io_mdma.h:112
uart_io_mdma_private_tx_t tx
Definition: bsp_uart_io_mdma.h:177
void uart_io_mdma_finalize(uart_io_mdma_t *p_instance)
Finalize.
Definition: bsp_uart_io_mdma.c:444
UartIOMDmaTxState
Send state.
Definition: bsp_uart_io_mdma.h:98
USB UART class.
Definition: bsp_uart_io_mdma.h:186
uart_io_mdma_private_info_t info
Definition: bsp_uart_io_mdma.h:189
Definition: bsp_uart_io_mdma.h:100
Definition: bsp_uart_io_mdma.h:102
uart_io_mdma_initial_setting_t init
Definition: bsp_uart_io_mdma.h:188
UartIOMDmaRxState
Receive state.
Definition: bsp_uart_io_mdma.h:110
USB UART Private Member.
Definition: bsp_uart_io_mdma.h:174
UART MDMA handle structure definition.
Definition: txz_uart_mdma.h:137
#define UART_IO_MDMA_RECEIVE_MAX
Definition: bsp_uart_io_mdma.h:77
USB UART Send information.
Definition: bsp_uart_io_mdma.h:151
volatile UartIOMDmaTxState state
Definition: bsp_uart_io_mdma.h:153
mdma_t * p_mdma
Definition: bsp_uart_io_mdma.h:141
uart_io_mdma_private_rx_t rx
Definition: bsp_uart_io_mdma.h:178
uart_io_mdma_t * uart_io_mdma_initialize(uart_io_mdma_initial_setting_t *p_param)
Initialize.
Definition: bsp_uart_io_mdma.c:369
MDMA handle structure definition.
Definition: txz_mdma.h:342
Definition: bsp_uart_io_mdma.h:99
USB UART Initial Setting.
Definition: bsp_uart_io_mdma.h:134
#define UART_IO_MDMA_SEND_MAX
Definition: bsp_uart_io_mdma.h:76
UART.
Definition: TMPM4G6.h:1071
USB UART Receive information.
Definition: bsp_uart_io_mdma.h:163
Definition: bsp_uart_io_mdma.h:114
Definition: bsp_uart_io_mdma.h:111
Definition: bsp_uart_io_mdma.h:113
TSB_UART_TypeDef * p_reg
Definition: bsp_uart_io_mdma.h:137
uint32_t boudrate
Definition: bsp_uart_io_mdma.h:138
uart_mdma_t uart
Definition: bsp_uart_io_mdma.h:176
volatile UartIOMDmaRxState state
Definition: bsp_uart_io_mdma.h:165
uint32_t id
Definition: bsp_uart_io_mdma.h:136
Definition: bsp_uart_io_mdma.h:101