TMPM4G(1) Group Peripheral Driver User Manual  V1.0.0.0
txz_adc_ch.h
Go to the documentation of this file.
1 
14 /*------------------------------------------------------------------------------*/
15 /* Define to prevent recursive inclusion */
16 /*------------------------------------------------------------------------------*/
17 #ifndef __ADC_CH_H
18 #define __ADC_CH_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_Exported_define */
66 
67 /*------------------------------------------------------------------------------*/
68 /* Structure Definition */
69 /*------------------------------------------------------------------------------*/
75 /*----------------------------------*/
79 /*----------------------------------*/
80 typedef struct
81 {
82  uint32_t interrupt;
84  uint32_t type;
86  uint32_t ain;
88 
89 /*----------------------------------*/
93 /*----------------------------------*/
94 typedef struct
95 {
96  __IO uint32_t *p_tset;
97  __I uint32_t *p_reg;
99 } adc_ch_t;
100  /* End of group ADC_Exported_typedef */
104 
105 /*------------------------------------------------------------------------------*/
106 /* Functions */
107 /*------------------------------------------------------------------------------*/
112 uint32_t get_conversion_data(uint32_t reg);
117 TXZ_Result adc_ch_get_value(adc_ch_t *p_obj, uint32_t *p_value); /* End of group ADC_Exported_functions */
121  /* End of group ADC */
125  /* End of group Periph_Driver */
129 
130 #ifdef __cplusplus
131 }
132 #endif /* __cplusplus */
133 #endif /* __ADC_CH_H */
134 
135 
__IO uint32_t * p_tset
Definition: txz_adc_ch.h:96
TXZ_Result adc_ch_int_disable(adc_ch_t *p_obj)
Initialize Setting.
Definition: txz_adc_ch.h:80
TXZ_Result adc_ch_init(adc_ch_t *p_obj)
TXZ_Result
Definition: txz_driver_def.h:43
TXZ_Result adc_ch_get_value(adc_ch_t *p_obj, uint32_t *p_value)
TXZ_Result adc_ch_deinit(adc_ch_t *p_obj)
TXZ_Result adc_ch_int_enable(adc_ch_t *p_obj)
adc_ch_initial_setting_t init
Definition: txz_adc_ch.h:98
__I uint32_t * p_reg
Definition: txz_adc_ch.h:97
uint32_t type
Definition: txz_adc_ch.h:84
All common macro and definition for TXZ peripheral drivers.
uint32_t get_conversion_data(uint32_t reg)
uint32_t ain
Definition: txz_adc_ch.h:86
uint32_t interrupt
Definition: txz_adc_ch.h:82
ADC handle structure definition.
Definition: txz_adc_ch.h:94