TMPM4G9  V1.0.0.0
safety_uart.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef _SAFETY_UART_H
17 #define _SAFETY_UART_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_safety_def.h"
27 #include "txz_uart.h"
28 
38 /*------------------------------------------------------------------------------*/
39 /* Macro Definition */
40 /*------------------------------------------------------------------------------*/
46 /* no define */
47  /* End of group UARTTest_Exported_define */
51 
52 /*------------------------------------------------------------------------------*/
53 /* Enumerated Type Definition */
54 /*------------------------------------------------------------------------------*/
60 // UART ID for SAFETY UART
61 // can be any value but use thesae pre-assigned values for now
62 typedef enum
63 {
70 
72 
73  } SafetyUartID;
74 
75  /* End of group UARTTest_Exported_define */
79 
80 /*------------------------------------------------------------------------------*/
81 /* Structure Definition */
82 /*------------------------------------------------------------------------------*/
88 /* no define */
89  /* End of group UARTTest_Exported_typedef */
93 
94 /*------------------------------------------------------------------------------*/
95 /* Functions */
96 /*------------------------------------------------------------------------------*/
102 // IRQ handler for safety_UART_loopback
103 // return immediately if safety_UART_loopback not running
107 
108 bool safety_UART_loopback(SafetyUartID id, uint32_t start, uint32_t length);
109  /* End of group UARTTest_Exported_functions */
113  /* End of group UARTTest */
117  /* End of group Safety_Library */
121 
122 #ifdef __cplusplus
123 }
124 #endif /* __cplusplus */
125 #endif /* _SAFETY_UART_H */
126 
127 
Definition: safety_uart.h:69
void safety_UART_hook_err(SafetyUartID id)
ERR IRQ Handler.
Definition: safety_uart.c:667
All common macro and definition for TXZ safety libraries.
Definition: safety_uart.h:68
void safety_UART_hook_rx(SafetyUartID id)
RX IRQ Handler.
Definition: safety_uart.c:649
Definition: safety_uart.h:64
SafetyUartID
Definition: safety_uart.h:62
Definition: safety_uart.h:67
Definition: safety_uart.h:66
void safety_UART_hook_tx(SafetyUartID id)
TX IRQ Handler.
Definition: safety_uart.c:631
Definition: safety_uart.h:71
bool safety_UART_loopback(SafetyUartID id, uint32_t start, uint32_t length)
UART loopback test.
Definition: safety_uart.c:684
Definition: safety_uart.h:65
This file provides all the functions prototypes for UART driver.