TMPM4KxA Group Peripheral Driver User Manual  V1.0.4.0
txz_adc_sh.h
Go to the documentation of this file.
1 
14 /*------------------------------------------------------------------------------*/
15 /* Define to prevent recursive inclusion */
16 /*------------------------------------------------------------------------------*/
17 #ifndef __ADC_SH_H
18 #define __ADC_SH_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /*------------------------------------------------------------------------------*/
25 /* Includes */
26 /*------------------------------------------------------------------------------*/
27 #include "txz_driver_def.h"
28 
39 /*------------------------------------------------------------------------------*/
40 /* Macro Definition */
41 /*------------------------------------------------------------------------------*/
47 /* no define */
48  /* End of group ADC_Exported_define */
52 
53 /*------------------------------------------------------------------------------*/
54 /* Enumerated Type Definition */
55 /*------------------------------------------------------------------------------*/
61 /* no define */
62  /* End of group ADC_SamplingHold_Select */
66 
67 
68  /* End of group ADC_Exported_define */
72 
73 /*------------------------------------------------------------------------------*/
74 /* Structure Definition */
75 /*------------------------------------------------------------------------------*/
81 /*----------------------------------*/
85 /*----------------------------------*/
86 typedef struct
87 {
88  uint32_t trgpat1;
90  uint32_t trgpat2;
93 
94 /*----------------------------------*/
98 /*----------------------------------*/
99 typedef struct
100 {
101  TSB_SH_TypeDef *p_instance;
103 } adc_sh_t;
104  /* End of group ADC_Exported_typedef */
108 
109 /*------------------------------------------------------------------------------*/
110 /* Functions */
111 /*------------------------------------------------------------------------------*/
116 TXZ_Result adc_sh_init(adc_sh_t *p_obj);
117 TXZ_Result adc_sh_deinit(adc_sh_t *p_obj);
118 TXZ_Result adc_sh_set(adc_sh_t *p_obj, uint32_t upper_pattern, uint32_t lower_pattern);
119 TXZ_Result adc_sh_get(adc_sh_t *p_obj, uint32_t *p_value); /* End of group ADC_Exported_functions */
123  /* End of group ADC */
127  /* End of group Periph_Driver */
131 
132 #ifdef __cplusplus
133 }
134 #endif /* __cplusplus */
135 #endif /* __ADC_SH_H */
136 
137 
ADC SH handle structure definenition.
Definition: txz_adc_sh.h:99
uint32_t trgpat2
Definition: txz_adc_sh.h:90
uint32_t trgpat1
Definition: txz_adc_sh.h:88
All common macro and definition for TXZ peripheral drivers.
Initialize Setting.
Definition: txz_adc_sh.h:86
TSB_SH_TypeDef * p_instance
Definition: txz_adc_sh.h:101
adc_sh_setting_t init
Definition: txz_adc_sh.h:102