/[PAMELA software]/quicklook/dataToXML/Data/compilationInfo/src/BasicSW/TimingInfo/TI_TimingInfo_p.c
ViewVC logotype

Contents of /quicklook/dataToXML/Data/compilationInfo/src/BasicSW/TimingInfo/TI_TimingInfo_p.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Apr 25 09:00:20 2006 UTC (19 years, 2 months ago) by kusanagi
Branch: MAIN
CVS Tags: dataToXML1_02/01, dataToXML1_02/00, dataToXML1_03/00, dataToXML1_03/01, dataToXML1_00/00, firstRelease, dataToXML1_01/00, dataToXML1_03_02, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
These program extract in an XML format the info contained into the ROOT files generated by YODA from the PAMELA data. To visualize the XML files in a more human readable format a collection of XSL files are given in the Data subfolder.

1 /****************************************************************************
2 /* F i l e D a t a
3 /*
4 /* Module : BasicSW
5 /* C.I. No. :
6 /* $Revision: 1.8 $
7 /* $Date: 2005/01/26 18:46:26 $
8 /* Belonging to :
9 /* :
10 /* $RCSfile: TI_TimingInfo_p.c,v $
11 /* Program Type :
12 /* Sub-modules :
13 /*
14 /****************************************************************************
15 /* S W D e v e l o p m e n t E n v i r o n m e n t
16 /*
17 /* Host system :
18 /* SW Compiler :
19 /* $Author: sebastiani $
20 /* :
21 /****************************************************************************
22 /* U p d a t i n g
23 /*
24 /* $Log: TI_TimingInfo_p.c,v $
25 /* Revision 1.8 2005/01/26 18:46:26 sebastiani
26 /* *** empty log message ***
27 /*
28 /* Revision 1.7 2004/07/27 17:30:17 faber
29 /* OBT can be now in second or milliseconds, depending of the situazion.
30 /* OBT_s is used for FM compatibility, OBT_ms basically for MM infos
31 /*
32 /* Revision 1.6 2004/05/27 17:50:38 sebastiani
33 /* *** empty log message ***
34 /*
35 /* Revision 1.5 2004/05/06 15:50:57 faber
36 /* GetTimeSyncInfo introduced
37 /*
38 /* Revision 1.4 2003/09/12 10:52:56 faber
39 /* introduced PTH_VAR_TC_CYC_RATE
40 /*
41 /* Revision 1.3 2003/08/29 11:13:30 faber
42 /* TI_StartTimerMoscowTime introduced
43 /*
44 /* Revision 1.2 2003/08/28 10:11:44 faber
45 /* New timer management. GPT is now possible to be disabled. (DisableGPT,EnableGPT)
46 /* GetTimeInfo now use the RTEMS clock instead reading the TI_SystemTime.
47 /* GetTimeInfo now returns seconds, instead of milliseconds.
48 /*
49 /* Revision 1.1.1.1 2003/08/04 09:40:21 sebastiani
50 /* Imported sources laben rel. 19.06.2003 integrated with pam2
51 /*
52 /* Revision 1.4 2002/11/14 09:46:42 zulia
53 /* removed unsed status variable
54 /*
55 /* Revision 1.3 2002/05/09 08:16:34 zulia
56 /* * acceptance release
57 /*
58 /*
59 /*****************************************************************************/
60
61 /*============================= Include File ================================*/
62
63 #include <src/BasicSW/TimingInfo/TI_TimingInfo_p.h>
64 #include <src/BasicSW/TimingInfo/TI_TimingInfo_op.h>
65
66
67 /*****************************************************************************/
68
69 /*======== T i m i n g I n f o P R O V I D E D I N T E R F A C E =======*/
70
71 /*****************************************************************************/
72
73 /*****************************************************************************/
74 /* @Function: TI_piInitTimingInfo */
75 /* @Purpose : */
76 /* Provided Interface to implement the TimingInfo object initialization. */
77 /* No parameters are requested. */
78 /* */
79 /* @@ */
80 /* @Parameter Name @Mode @Description */
81 /* status_code OUT Return code */
82 /* @@ */
83 /*****************************************************************************/
84
85 status_code TI_piInitTimingInfo(void)
86 {
87 status_code status;
88
89 status =TI_opInitTimingInfo();
90 return (status);
91
92 }
93
94
95
96 /*****************************************************************************/
97 /* @Function: TI_ihTimingInfo */
98 /* @Purpose : */
99 /* Provided Interface to implement the interrupt handler of the */
100 /* On Board Time (OBT) information. */
101 /* */
102 /* @@ */
103 /* @Parameter Name @Mode @Description */
104 /* @@ */
105 /*****************************************************************************/
106
107 void TI_ihTimingInfo(void)
108 {
109
110 TI_opTimingOperation();
111
112 }
113
114
115
116 /*****************************************************************************/
117 /* @Function: TI_piGetTimeInfo */
118 /* @Purpose : */
119 /* Provided Interface for return the On Board Time (OBT) information. */
120 /* */
121 /* @@ */
122 /* @Parameter Name @Mode @Description */
123 /* pTime OUT OBT read */
124 /* status_code OUT Return code (Always SUCCESSFUL) */
125 /* @@ */
126 /*****************************************************************************/
127
128 status_code TI_piGetTimeInfo_s(TI_TIME* pTime)
129 {
130
131 TI_opGetTimeInfo_s (pTime);
132 return (SUCCESSFUL);
133 }
134
135 status_code TI_piGetTimeInfo_ms(TI_TIME* pTime)
136 {
137
138 TI_opGetTimeInfo_ms (pTime);
139 return (SUCCESSFUL);
140 }
141
142
143 /*****************************************************************************/
144 /* @Function: TI_piUpdateTimeInfo */
145 /* @Purpose : */
146 /* Provided Interface to update the On Board Time (OBT) information. */
147 /* */
148 /* @@ */
149 /* @Parameter Name @Mode @Description */
150 /* Time IN Value of the time to update */
151 /* status_code OUT Return code (Always SUCCESSFUL) */
152 /* @@ */
153 /*****************************************************************************/
154
155 status_code TI_piUpdateTimeInfo_s(TI_TIME Time)
156 {
157 TI_opUpdateTimeInfo_s (Time);
158 return (SUCCESSFUL);
159 }
160
161 /*****************************************************************************/
162 /* @Function: DisableGPT */
163 /* @Purpose : */
164 /* Provided Interface to disable the GPT interrupt */
165 /* */
166 /* @@ */
167 /*****************************************************************************/
168
169 void TI_piDisableGPT() {
170 TI_opDisableGPT();
171 }
172
173
174 /*****************************************************************************/
175 /* @Function: EnableGPT */
176 /* @Purpose : */
177 /* Provided Interface to disable the GPT interrupt */
178 /* */
179 /* @@ */
180 /*****************************************************************************/
181
182 void TI_piEnableGPT() {
183 TI_opEnableGPT();
184 }
185
186
187 status_code TI_piSetObtOrbit_s() {
188 return TI_opSetObtOrbit_s();
189 }
190
191 status_code TI_piGetObtOrbit_s(TI_TIME *t) {
192 return TI_opGetObtOrbit_s(t);
193 }
194
195 status_code TI_piGetOrbitOffset_s(TI_TIME *t) {
196 return TI_opGetOrbitOffset_s(t);
197 }
198
199 status_code TI_piGetTimeSyncOffset_s(TI_TIME *t) {
200 return TI_opGetTimeSyncOffset_s(t);
201 }
202
203 status_code TI_piGetCurrentMoscowTime_s(TI_TIME *t) {
204 return TI_opGetCurrentMoscowTime_s(t);
205 }
206
207 status_code TI_piStartTimer_INFN_MoscowTime_s(unsigned int Tim,TI_TIME Time,void* Routine,void* UserData) {
208 return TI_opStartTimer_INFN_MoscowTime_s(Tim,Time,Routine,UserData);
209 }
210
211 status_code TI_piTimeSyncIsAvailable(BOOL* avail) {
212 return TI_opTimeSyncIsAvailable(avail);
213 }
214
215 status_code TI_piGetTimeSyncInfo_s(TI_TIME *obt_ts,TI_TIME *ts) {
216 return TI_opGetTimeSyncInfo_s(obt_ts,ts);
217 }

  ViewVC Help
Powered by ViewVC 1.1.23