TMPM4G9  V1.0.0.0
IOSCadjustment.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __IOSCADJUSTMENT_H
17 #define __IOSCADJUSTMENT_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 /*------------------------------------------------------------------------------*/
75 #define TRMOSC_RUN (1)
76 #define TRMOSC_DONE (0)
77 #define TRMOSC_ERROR (-1) /* End of group TRMOSC_Control */
82  /* End of group TRMOSC_Private_define */
86 
87 /*------------------------------------------------------------------------------*/
88 /* Enumerated Type Definition */
89 /*------------------------------------------------------------------------------*/
95 /* no define */
96  /* End of group TRMOSC_Private_define */
100 
101 /*------------------------------------------------------------------------------*/
102 /* Structure Definition */
103 /*------------------------------------------------------------------------------*/
108 /*----------------------------------*/
112 /*----------------------------------*/
113 typedef struct
114 {
115  uint32_t MeasureVal;
116  int32_t MeasureDiff;
117  int32_t CoarseTrim;
118  int32_t FineTrim;
120  /* End of group TRMOSC_Private_define */
124 
125 /*------------------------------------------------------------------------------*/
126 /* Functions */
127 /*------------------------------------------------------------------------------*/
133 int32_t IOSCAdjustment(void);
134 void InitTRM(void);
135  /* End of group TRMOSC_Private_functions */
139  /* End of group TRMOSC */
143  /* End of group Example */
147 
148 #ifdef __cplusplus
149 }
150 #endif /* __cplusplus */
151 #endif /* __IOSCADJUSTMENT_H */
152 
uint32_t MeasureVal
Definition: IOSCadjustment.h:115
int32_t CoarseTrim
Definition: IOSCadjustment.h:117
int32_t MeasureDiff
Definition: IOSCadjustment.h:116
int32_t IOSCAdjustment(void)
Adjustment of internal OSC.
Definition: IOSCadjustment.c:309
int32_t FineTrim
Definition: IOSCadjustment.h:118
void InitTRM(void)
Initialize TRM Function.
Definition: IOSCadjustment.c:345
Adjustment Information.
Definition: IOSCadjustment.h:113