/[PAMELA software]/quicklook/dataToXML/Data/compilationInfo/src/MCMDManager/MCMDArea/MA_MCMDArea_p.c
ViewVC logotype

Annotation of /quicklook/dataToXML/Data/compilationInfo/src/MCMDManager/MCMDArea/MA_MCMDArea_p.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Apr 25 09:00:21 2006 UTC (19 years, 2 months ago) by kusanagi
Branch point for: MAIN
File MIME type: text/plain
Initial revision

1 kusanagi 1.1 /****************************************************************************
2     /* F i l e D a t a
3     /*
4     /* Module : MCMDManager
5     /* C.I. No. :
6     /* $Revision: 1.2 $
7     /* $Date: 2003/11/18 09:01:15 $
8     /* Belonging to :
9     /* :
10     /* $RCSfile: MA_MCMDArea_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: alfarano $
20     /* :
21     /****************************************************************************
22     /* U p d a t i n g
23     /*
24     /* $Log: MA_MCMDArea_p.c,v $
25     /* Revision 1.2 2003/11/18 09:01:15 alfarano
26     /* laben patch fixes some problems
27     /*
28     /* Revision 1.1.1.1 2003/08/04 09:40:21 sebastiani
29     /* Imported sources laben rel. 19.06.2003 integrated with pam2
30     /*
31     /* Revision 1.4 2002/05/15 13:46:34 zulia
32     /* check of MCMD Lenght improved
33     /*
34     /* Revision 1.3 2002/05/09 08:16:34 zulia
35     /* * acceptance release
36     /*
37     /*
38     /*****************************************************************************/
39    
40     /*============================= Include File ================================*/
41    
42     #include <src/MCMDManager/MCMDArea/MA_MCMDArea_p.h>
43     #include <src/MCMDManager/MCMDArea/MA_MCMDArea_op.h>
44    
45    
46     /*****************************************************************************/
47    
48     /*========= M C M D A r e a P R O V I D E D I N T E R F A C E =========*/
49    
50     /*****************************************************************************/
51    
52     /*****************************************************************************/
53     /* @Function: MA_piInitMCMDArea */
54     /* @Purpose : */
55     /* Provided Interface to initialize the MCMDArea object. */
56     /* No parameters are requested. */
57     /* */
58     /* @@ */
59     /* @Parameter Name @Mode @Description */
60     /* status_code OUT Return code */
61     /* @@ */
62     /*****************************************************************************/
63    
64     status_code MA_piInitMCMDArea (void)
65     {
66     status_code status;
67    
68     status =MA_opInitMCMDArea();
69     return (status);
70    
71     }
72    
73    
74    
75     /*****************************************************************************/
76     /* @Function: MA_piGetMCMDType */
77     /* @Purpose : */
78     /* Provided Interface to convert from MCMD code to MCMD type (enumerate). */
79     /* Return code can be SUCCESSFUL or MCMD type not identified. */
80     /* */
81     /* @@ */
82     /* @Parameter Name @Mode @Description */
83     /* McmdId IN MCMD code identifier */
84     /* McmdType OUT MCMD type (enumerate) */
85     /* status_code OUT Return code */
86     /* @@ */
87     /*****************************************************************************/
88    
89     status_code MA_piGetMCMDType (unsigned int McmdId, unsigned int* McmdType)
90     {
91     status_code status;
92    
93     status =MA_opGetMCMDType (McmdId,McmdType);
94     return (status);
95    
96     }
97    
98    
99    
100     /*****************************************************************************/
101     /* @Function: MA_piGetMCMDId */
102     /* @Purpose : */
103     /* Provided Interface to convert from MCMD type (enumerate) to MCMD code. */
104     /* Return code can be SUCCESSFUL or MCMD type not identified. */
105     /* */
106     /* @@ */
107     /* @Parameter Name @Mode @Description */
108     /* McmdType IN MCMD type (enumerate) */
109     /* McmdId OUT MCMD code identifier */
110     /* status_code OUT Return code */
111     /* @@ */
112     /*****************************************************************************/
113    
114     status_code MA_piGetMCMDId (unsigned int McmdType,unsigned int* McmdId)
115     {
116     status_code status;
117    
118     status =MA_opGetMCMDId (McmdType,McmdId);
119     return (status);
120    
121     }
122    
123     /*****************************************************************************/
124     /* @Function: MA_piGetMCMDLenght */
125     /* @Purpose : */
126     /* Provided Interface to check the MCMD lenght. */
127     /* */
128     /* @@ */
129     /* @Parameter Name @Mode @Description */
130     /* McmdType IN MCMD type (enumerate) */
131     /* McmdLen OUT MCMD lenght */
132     /* status_code OUT Return code */
133     /* @@ */
134     /*****************************************************************************/
135    
136     status_code MA_piGetMCMDLenght (unsigned int McmdType,
137     unsigned int McmdLen)
138     {
139     status_code status;
140    
141     status =MA_opGetMCMDLenght (McmdType,McmdLen);
142     return (status);
143     }
144    
145    
146     /*****************************************************************************/
147     /* @Function: MA_piPutMCMDtimetag */
148     /* @Purpose : */
149     /* Provided Interface to insert a MCMD with timetag into timetag MCMD list. */
150     /* Option paramater can be defined by WAIT (wait for resource) or NO_WAIT */
151     /* constant. */
152     /* The Timeout value has effect when the option parameter is WAIT. */
153     /* The Timeout parameter can be defined with the NO_TIMEOUT constant, in */
154     /* this case the task will wait forever. */
155     /* */
156     /* @@ */
157     /* @Parameter Name @Mode @Description */
158     /* Mcmd IN Pointer to MCMD header structure */
159     /* Obt IN On Board Time */
160     /* Option IN Flag which defines if await or no the */
161     /* resource availability (WAIT, NO_WAIT) */
162     /* Timeout IN Timeout value */
163     /* status_code OUT Return code */
164     /* @@ */
165     /*****************************************************************************/
166    
167     status_code MA_piPutMCMDtimetag (MA_HEADER_MCMD* Mcmd, TI_TIME Obt,
168     unsigned int Option, unsigned int Timeout)
169     {
170     status_code status;
171    
172     status =MA_opPutMCMDtimetag (Mcmd,Obt,Option,Timeout);
173     return (status);
174     }
175    
176    
177    
178    
179     /*****************************************************************************/
180     /* @Function: MA_piGetMCMDtimetag */
181     /* @Purpose : */
182     /* Provided Interface to obtain the MCMD with the most recent timetag of */
183     /* the list. */
184     /* Option paramater can be defined by WAIT (wait for resource) or NO_WAIT */
185     /* constant. */
186     /* The Timeout value has effect when the option parameter is WAIT. */
187     /* The Timeout parameter can be defined with the NO_TIMEOUT constant, in */
188     /* this case the task will wait forever. */
189     /* */
190     /* @@ */
191     /* @Parameter Name @Mode @Description */
192     /* Mcmd IN Pointer to MCMD header structure */
193     /* Option IN Flag which defines if await or no the */
194     /* resource availability (WAIT, NO_WAIT) */
195     /* Timeout IN Timeout value */
196     /* status_code OUT Return code */
197     /* @@ */
198     /*****************************************************************************/
199    
200     status_code MA_piGetMCMDtimetag (MA_HEADER_MCMD* Mcmd, unsigned int Option,
201     unsigned int Timeout)
202     {
203     status_code status;
204    
205     status =MA_opGetMCMDtimetag (Mcmd,Option,Timeout);
206     return (status);
207    
208     }
209    
210    
211    
212     /*****************************************************************************/
213     /* @Function: MA_piUpdateMCMDtimetag */
214     /* @Purpose : */
215     /* Provided Interface to update the header position in the timetag MCMD */
216     /* list with most recent MCMD. */
217     /* Option paramater can be defined by WAIT (wait for resource) or NO_WAIT */
218     /* constant. */
219     /* The Timeout value has effect when the option parameter is WAIT. */
220     /* The Timeout parameter can be defined with the NO_TIMEOUT constant, in */
221     /* this case the task will wait forever. */
222     /* */
223     /* @@ */
224     /* @Parameter Name @Mode @Description */
225     /* Obt IN On Board Time */
226     /* Option IN Flag which defines if await or no the */
227     /* resource availability (WAIT, NO_WAIT) */
228     /* Timeout IN Timeout value */
229     /* status_code OUT Return code */
230     /* @@ */
231     /*****************************************************************************/
232    
233     status_code MA_piUpdateMCMDtimetag (TI_TIME Obt,unsigned int Option,
234     unsigned int Timeout)
235     {
236     status_code status;
237    
238     status =MA_opUpdateMCMDtimetag (Obt,Option,Timeout);
239     return (status);
240    
241     }
242    
243    
244     /*****************************************************************************/
245     /* @Function: MA_piDelMCMDtimetag */
246     /* @Purpose : */
247     /* Provided Interface to delete a MCMD in the timetag MCMD list. */
248     /* Option paramater can be defined by WAIT (wait for resource) or NO_WAIT */
249     /* constant. */
250     /* The Timeout value has effect when the option parameter is WAIT. */
251     /* The Timeout parameter can be defined with the NO_TIMEOUT constant, in */
252     /* this case the task will wait forever. */
253     /* */
254     /* @@ */
255     /* @Parameter Name @Mode @Description */
256     /* Mcmd IN Pointer to MCMD header structure */
257     /* Obt IN On Board Time */
258     /* Option IN Flag which defines if await or no the */
259     /* resource availability (WAIT, NO_WAIT) */
260     /* Timeout IN Timeout value */
261     /* status_code OUT Return code */
262     /* @@ */
263     /*****************************************************************************/
264    
265     status_code MA_piDelMCMDtimetag (MA_HEADER_MCMD* Mcmd, TI_TIME Obt,
266     unsigned int Option, unsigned int Timeout)
267     {
268     status_code status;
269    
270     status =MA_opDelMCMDtimetag(Mcmd,Obt,Option,Timeout);
271     return (status);
272    
273     }
274    
275    
276    
277     /*****************************************************************************/
278     /* @Function: MA_piDelAllMCMDtimetag */
279     /* @Purpose : */
280     /* Provided Interface to delete all or a specific MCMD in the list of the */
281     /* MCMD with timetag. */
282     /* Timetag parameter is used as reference to seek the MCMD to delete inside */
283     /* the list. */
284     /* Option paramater can be defined by WAIT (wait for resource) or NO_WAIT */
285     /* constant. */
286     /* The Timeout value has effect when the option parameter is WAIT. */
287     /* The Timeout parameter can be defined with the NO_TIMEOUT constant, in */
288     /* this case the task will wait forever. */
289     /* */
290     /* @@ */
291     /* @Parameter Name @Mode @Description */
292     /* DelAllMcmdFlag IN Flag to indicate delete all or a MCMD */
293     /* Timetag IN Timetag value */
294     /* Option IN Flag which defines if await or no the */
295     /* resource availability (WAIT, NO_WAIT) */
296     /* Timeout IN Timeout value */
297     /* status_code OUT Return code */
298     /* @@ */
299     /*****************************************************************************/
300    
301     status_code MA_piDelAllMCMDtimetag (unsigned int DelAllMcmdFlag,
302     unsigned int Timetag,
303     unsigned int Option,
304     unsigned int Timeout)
305     {
306     status_code status;
307    
308     status =MA_opDelAllMCMDtimetag (DelAllMcmdFlag,Timetag,Option,Timeout);
309     return (status);
310    
311     }
312    
313    
314    
315     /*****************************************************************************/
316     /* @Function: MA_piGetTlmTimetagRTE */
317     /* @Purpose : */
318     /* Provided Interface to obtain the timetag MCMD in the RTE telemetry */
319     /* format. */
320     /* */
321     /* @@ */
322     /* @Parameter Name @Mode @Description */
323     /* McmdBuffer OUT Buffer where MCMD are stored */
324     /* status_code OUT Return code */
325     /* @@ */
326     /*****************************************************************************/
327    
328     status_code MA_piGetTlmTimetagRTE (MA_TLM_TIMETAG_RTE* McmdBuffer)
329     {
330     status_code status;
331    
332     status =MA_opGetTlmTimetagRTE (McmdBuffer);
333     return (status);
334    
335     }
336    
337    
338    
339     /*****************************************************************************/
340     /* @Function: MA_piGetMcmdTimetagQueueFull */
341     /* @Purpose : */
342     /* Provided Interface to obtain the timetag MCMD queue full flag. */
343     /* */
344     /* @@ */
345     /* @Parameter Name @Mode @Description */
346     /* QueueFullFlag OUT Variable where flag is stored */
347     /* status_code OUT Return code */
348     /* @@ */
349     /*****************************************************************************/
350    
351     status_code MA_piGetMcmdTimetagQueueFull (unsigned int* QueueFullFlag)
352     {
353     status_code status;
354    
355     status =MA_opGetMcmdTimetagQueueFull (QueueFullFlag);
356     return (status);
357    
358     }
359    
360    
361    
362     /*****************************************************************************/
363     /* @Function: MA_piGetBufferMCMD */
364     /* @Purpose : */
365     /* Provided Interface to obtain a MCMD buffer from partition resource. */
366     /* In the TimetagFlag parameter can be specified the following constant: */
367     /* IMMEDIATE_MCMD for the partition of the immediate MCMD. */
368     /* TIMETAG_MCMD for the partition of the timetag MCMD. */
369     /* */
370     /* @@ */
371     /* @Parameter Name @Mode @Description */
372     /* TimetagFlag IN Flag to indicate which partition use */
373     /* Option IN Flag which defines if await or no the */
374     /* resource availability (WAIT, NO_WAIT) */
375     /* Timeout IN Timeout value for WAIT option */
376     /* BufMCMD OUT Pointer to partition buffer */
377     /* status_code OUT Return code */
378     /* @@ */
379     /*****************************************************************************/
380    
381     status_code MA_piGetBufferMCMD (void** BufMCMD, unsigned int TimetagFlag)
382     {
383     status_code status;
384    
385     status =MA_opGetBufferMCMD (BufMCMD,TimetagFlag);
386     return (status);
387    
388     }
389    
390    
391    
392     /*****************************************************************************/
393     /* @Function: MA_piDelBufferMCMD */
394     /* @Purpose : */
395     /* Provided Interface to release a MCMD buffer from partition resource. */
396     /* In the TimetagFlag parameter can be specified the following constant: */
397     /* IMMEDIATE_MCMD for the partition of the immediate MCMD. */
398     /* TIMETAG_MCMD for the partition of the timetag MCMD. */
399     /* */
400     /* @@ */
401     /* @Parameter Name @Mode @Description */
402     /* BufMCMD IN Pointer to the buffer that must be released */
403     /* TimetagFlag IN Flag to indicate which partition use */
404     /* Option IN Flag which defines if await or no the */
405     /* resource availability (WAIT, NO_WAIT) */
406     /* Timeout IN Timeout value for WAIT option */
407     /* status_code OUT Return code */
408     /* @@ */
409     /*****************************************************************************/
410    
411     status_code MA_piDelBufferMCMD (void* BufMCMD, unsigned int TimetagFlag)
412     {
413     status_code status;
414    
415     status =MA_opDelBufferMCMD (BufMCMD,TimetagFlag);
416     return (status);
417    
418     }

  ViewVC Help
Powered by ViewVC 1.1.23