TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
inc
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 "TMPM4KxA.h"
/* End of group Device_Header */
38
39
43
typedef
enum
{
44
TXZ_SUCCESS = 0U,
45
TXZ_ERROR = 1U
46
} TXZ_Result;
47
48
typedef
enum
{
49
TXZ_BUSY = 0U,
50
TXZ_DONE = 1U
51
} TXZ_WorkState;
52
53
typedef
enum
{
54
TXZ_DISABLE = 0U,
55
TXZ_ENABLE = 1U
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 */
84
/* End of group Periph_Driver */
88
/* End of group TXZ_DRIVER_DEF */
92
93
#ifdef __cplusplus
94
}
95
#endif
/* __cplusplus */
96
97
#endif
/* __TXZ_DRIVER_DEF_H */
assert_failed
void assert_failed(char *file, int32_t line)
To report the name of the source file and source line number where the assert_param error has occurre...
Generated by
1.8.13