TMPM4G(1) Group Peripheral Driver User Manual  V1.0.0.0
txz_driver_def.h
Go to the documentation of this file.
1 
13 /* Define to prevent recursive inclusion -------------------------------------*/
14 #ifndef __TXZ_DRIVER_DEF_H
15 #define __TXZ_DRIVER_DEF_H
16 
17 #ifdef __cplusplus
18  extern "C" {
19 #endif
20 
34 #include "TMPM4Gx.h" /* End of group Device_Header */
38 
39 
43 typedef enum {
45  TXZ_ERROR = 1U
46 } TXZ_Result;
47 
48 typedef enum {
49  TXZ_BUSY = 0U,
50  TXZ_DONE = 1U
52 
53 typedef enum {
56 } TXZ_FunctionalState; /* End of group TXZ_Exported_typedef */
60 
64 #define IS_TXZ_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
65 
66 #define IS_POINTER_NOT_NULL(param) ((void*)(param)!=(void*)0)
67 
74 #ifdef DEBUG
75 void assert_failed(char *file, int32_t line);
76 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((char *)__FILE__, __LINE__))
77 #else
78 #define assert_param(expr)
79 #endif /* DEBUG */
80  /* End of group TXZ_Exported_macro */
83  /* End of group Periph_Driver */
87  /* End of group TXZ_DRIVER_DEF */
91 
92 #ifdef __cplusplus
93 }
94 #endif /* __cplusplus */
95 
96 #endif /* __TXZ_DRIVER_DEF_H */
Definition: txz_driver_def.h:45
Definition: txz_driver_def.h:50
TXZ_Result
Definition: txz_driver_def.h:43
Definition: txz_driver_def.h:55
TXZ_WorkState
Definition: txz_driver_def.h:48
TXZ_FunctionalState
Definition: txz_driver_def.h:53
Definition: txz_driver_def.h:44
Definition: txz_driver_def.h:54
Definition: txz_driver_def.h:49