TMPM4G9  V1.0.0.0
trm.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __TRM_H
17 #define __TRM_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_sample_def.h"
27 
37 /*------------------------------------------------------------------------------*/
38 /* Macro Function */
39 /*------------------------------------------------------------------------------*/
45 /* no define */
46  /* End of group TRMOSC_Private_macro */
50 
51 
52 /*------------------------------------------------------------------------------*/
53 /* Configuration */
54 /*------------------------------------------------------------------------------*/
60 /* no define */
61  /* End of group TRMOSC_Private_define */
65 
66 
67 /*------------------------------------------------------------------------------*/
68 /* Macro Definition */
69 /*------------------------------------------------------------------------------*/
80 #define TRMOSC_CONTROL_ENABLE (0x00000001UL)
81 #define TRMOSC_CONTROL_DISABLE (0x00000000UL) /* End of group TRMOSC_Control */
85  /* End of group TRMOSC_Private_define */
89 
90 /*------------------------------------------------------------------------------*/
91 /* Enumerated Type Definition */
92 /*------------------------------------------------------------------------------*/
98 /* no define */
99  /* End of group TRMOSC_Private_define */
103 
104 /*------------------------------------------------------------------------------*/
105 /* Structure Definition */
106 /*------------------------------------------------------------------------------*/
111 /*----------------------------------*/
115 /*----------------------------------*/
116 typedef struct {
117  uint32_t TrimmingControl;
119  uint32_t FineTrimmingValue;
121  /* End of group TRMOSC_Private_define */
125 
126 /*------------------------------------------------------------------------------*/
127 /* Functions */
128 /*------------------------------------------------------------------------------*/
134 void SetTrmOsc(TRM_ControlTypeDef *ControlStruct);
135 uint32_t GetTrimmingControlValue(void);
136 uint32_t GetInitCoarseTrimValue(void);
137 uint32_t GetInitFineTrimValue(void);
138 uint32_t GetCoarseTrimValueSet(void);
139 uint32_t GetFineTrimValueSet(void);
140  /* End of group TRMOSC_Private_functions */
144  /* End of group TRMOSC */
148  /* End of group Example */
152 
153 #ifdef __cplusplus
154 }
155 #endif /* __cplusplus */
156 #endif /* __TRM_H */
157 
uint32_t GetCoarseTrimValueSet(void)
void SetTrmOsc(TRM_ControlTypeDef *ControlStruct)
uint32_t FineTrimmingValue
Definition: trm.h:119
uint32_t GetTrimmingControlValue(void)
uint32_t GetInitCoarseTrimValue(void)
TRM handle structure definenition.
Definition: trm.h:116
uint32_t GetInitFineTrimValue(void)
uint32_t TrimmingControl
Definition: trm.h:117
uint32_t CoarseTrimmingValue
Definition: trm.h:118
uint32_t GetFineTrimValueSet(void)