TMPM4KxA Group Peripheral Driver User Manual  V1.0.4.0
txz_cg.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __CG_H
17 #define __CG_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_driver_def.h"
27 
39 /*------------------------------------------------------------------------------*/
40 /* Macro Definition */
41 /*------------------------------------------------------------------------------*/
51 #define CG_CGOSCCR_OSCF_IHOSC ((uint32_t)0x00000000)
52 #define CG_CGOSCCR_OSCF_EHOSC ((uint32_t)0x00000200) /* End of group CG_CGOSCCR_OSCF */
56  /* End of group CG_Exported_define */
59 
60 
61 /*------------------------------------------------------------------------------*/
62 /* Enumerated Type Definition */
63 /*------------------------------------------------------------------------------*/
68 /* no define */ /* End of group CG_Exported_define */
72 
73 /*------------------------------------------------------------------------------*/
74 /* Structure Definition */
75 /*------------------------------------------------------------------------------*/
83 /*----------------------------------*/
84 typedef struct
85 {
86  TSB_CG_TypeDef *p_instance;
87 } cg_t;
88  /* End of group CG_Exported_typedef */
92 
93 /*------------------------------------------------------------------------------*/
94 /* Functions */
95 /*------------------------------------------------------------------------------*/
100 uint32_t cg_get_phyt0(cg_t *p_obj);
101 TXZ_Result cg_ihosc_enable(cg_t *p_obj);
102 TXZ_Result cg_ihosc_disable(cg_t *p_obj);
103 TXZ_Result cg_ehosc_enable(cg_t *p_obj);
104 TXZ_Result cg_ehosc_disable(cg_t *p_obj);
105 uint32_t cg_fosc_status_get(cg_t *p_obj); /* End of group CG_Exported_functions */
109  /* End of group CG */
113  /* End of group Periph_Driver */
117 
118 #ifdef __cplusplus
119 }
120 #endif /* __cplusplus */
121 #endif /* __CG_H */
122 
123 
TSB_CG_TypeDef * p_instance
Definition: txz_cg.h:86
All common macro and definition for TXZ peripheral drivers.
CG member.
Definition: txz_cg.h:84