/[PAMELA software]/quicklook/dataToXML/Data/compilationInfo/src/FileManager/MMSUDriver/FD_MMSUDriver_p.c
ViewVC logotype

Contents of /quicklook/dataToXML/Data/compilationInfo/src/FileManager/MMSUDriver/FD_MMSUDriver_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 : FileManager
5 /* C.I. No. :
6 /* $Revision: 1.1.1.1 $
7 /* $Date: 2003/08/04 09:40:21 $
8 /* Belonging to :
9 /* :
10 /* $RCSfile: FD_MMSUDriver_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: FD_MMSUDriver_p.c,v $
25 /* Revision 1.1.1.1 2003/08/04 09:40:21 sebastiani
26 /* Imported sources laben rel. 19.06.2003 integrated with pam2
27 /*
28 /* Revision 1.5 2002/10/17 10:03:54 zulia
29 /* removed FD_PIFReset
30 /*
31 /* Revision 1.4 2002/05/09 08:16:34 zulia
32 /* * acceptance release
33 /*
34 /*
35 /*****************************************************************************/
36
37
38 /*============================= Include File ================================*/
39
40 #include <src/FileManager/MMSUDriver/FD_MMSUDriver_p.h>
41 #include <src/FileManager/MMSUDriver/FD_MMSUDriver_op.h>
42
43
44 /*****************************************************************************/
45
46 /*======= M M S U D r i v e r P R O V I D E D I N T E R F A C E =======*/
47
48 /*****************************************************************************/
49 /* @Function: FD_piInitMMSUDriver */
50 /* @Purpose : */
51
52 /* Provided Interface to initialize the MMSUDriver object. */
53 /* */
54 /* @@ */
55 /* @Parameter Name @Mode @Description */
56 /* status_code OUT Return code */
57 /* @@ */
58 /*****************************************************************************/
59
60 status_code FD_piInitMMSUDriver (void)
61 {
62 status_code status;
63
64 status =FD_opInitMMSUDriver();
65 return (status);
66
67 }
68
69
70
71
72 /*****************************************************************************/
73 /* @Function: FD_piDrammaWrWPBUSReg */
74 /* @Purpose : */
75 /* Provided Interface to program a writing into the Dramma WPBUS register. */
76 /* The Dramma register is located by the box, board address, and register */
77 /* type parameters. */
78 /* */
79 /* @@ */
80 /* @Parameter Name @Mode @Description */
81 /* BoardId IN Board address (0 to MAX_BOARD_ADDR) */
82 /* Reg IN Register indentifier */
83 /* (FD_DRAMMA_REG_WPBUS type) */
84 /* Value IN Value to write into the Dramma register */
85 /* status_code OUT Return code */
86 /* @@ */
87 /*****************************************************************************/
88
89 status_code FD_piDrammaWrWPBUSReg (unsigned int BoardId,
90 unsigned int Reg,
91 unsigned int Value)
92 {
93 status_code status;
94
95 status =FD_opDrammaWrWPBUSReg (BoardId,Reg,Value);
96 return (status);
97
98 }
99
100
101
102 /*****************************************************************************/
103 /* @Function: FD_piDrammaRdRPBUSReg */
104 /* @Purpose : */
105 /* Provided Interface to program a reading from the Dramma RPBUS register. */
106 /* The Dramma register is located by the box, board address, and register */
107 /* type. */
108 /* */
109 /* @@ */
110 /* @Parameter Name @Mode @Description */
111 /* BoardId IN Board address (0 to MAX_BOARD_ADDR) */
112 /* Reg IN Register indentifier */
113 /* (FD_DRAMMA_REG_RPBUS type) */
114 /* Value OUT Value read from the Dramma register */
115 /* status_code OUT Return code */
116 /* @@ */
117 /*****************************************************************************/
118
119
120 status_code FD_piDrammaRdRPBUSReg (unsigned int BoardId,
121 unsigned int Reg,
122 unsigned int* Value)
123 {
124 status_code status;
125
126 status =FD_opDrammaRdRPBUSReg (BoardId,Reg,Value);
127 return (status);
128
129 }
130
131 /*****************************************************************************/
132 /* @Function: FD_piStartTransferToMemory */
133 /* @Purpose : */
134 /* Provided Interface to start the WPBUS writing into the memory module. */
135 /* */
136 /* @@ */
137 /* @Parameter Name @Mode @Description */
138 /* Module IN Module ID to write to */
139 /* status_code OUT Return code */
140 /* @@ */
141 /*****************************************************************************/
142
143 status_code FD_piStartTransferToMemory(FD_MODID Module)
144 {
145 status_code status;
146
147 status = FD_opStartTransferToMemory(Module);
148 return (status);
149 }
150
151 /*****************************************************************************/
152 /* @Function: FD_piStartTransferFromMemory */
153 /* @Purpose : */
154 /* Provided Interface to start the WPBUS writing into the memory module. */
155 /* */
156 /* @@ */
157 /* @Parameter Name @Mode @Description */
158 /* Module IN Module ID to write to */
159 /* status_code OUT Return code */
160 /* @@ */
161 /*****************************************************************************/
162
163 status_code FD_piStartTransferFromMemory(FD_MODID Module, BOOL LastSector)
164 {
165 status_code status;
166
167 status = FD_opStartTransferFromMemory(Module, LastSector);
168 return (status);
169 }
170
171 /*****************************************************************************/
172 /* @Function: FD_piAbortTransfer */
173 /* @Purpose : */
174 /* Provided Interface to start the WPBUS writing into the memory module. */
175 /* */
176 /* @@ */
177 /* @Parameter Name @Mode @Description */
178 /* Module IN Module ID to write to */
179 /* status_code OUT Return code */
180 /* @@ */
181 /*****************************************************************************/
182
183 status_code FD_piAbortTransfer(FD_ABT_TYPE Aborttype)
184 {
185 status_code status;
186
187 status = FD_opAbortTransfer(Aborttype);
188 return (status);
189 }
190
191 /*****************************************************************************/
192 /* @Function: FD_piSetWPBUSWaitState */
193 /* @Purpose : */
194 /* Provided Interface to set the WPBUS wait state counter */
195 /* packets. */
196 /* */
197 /* @@ */
198 /* @Parameter Name @Mode @Description */
199 /* Counter IN Number of WPBUS wait states */
200 /* status_code OUT Return code */
201 /* @@ */
202 /*****************************************************************************/
203
204 status_code FD_piSetWPBUSWaitState(UINT32 Counter)
205 {
206 status_code status = SUCCESSFUL;
207
208 FD_opSetWPBUSWaitState(Counter);
209 return (status);
210 }
211
212 /*****************************************************************************/
213 /* @Function: FD_piSetRPBUSWaitState */
214 /* @Purpose : */
215 /* Provided Interface to set the RPBUS wait state counter */
216 /* packets. */
217 /* */
218 /* @@ */
219 /* @Parameter Name @Mode @Description */
220 /* Counter IN Number of RPBUS wait states */
221 /* status_code OUT Return code */
222 /* @@ */
223 /*****************************************************************************/
224
225 status_code FD_piSetRPBUSWaitState(UINT32 Counter)
226 {
227 status_code status = SUCCESSFUL;
228
229 FD_opSetRPBUSWaitState(Counter);
230 return (status);
231 }
232
233 /*****************************************************************************/
234 /* @Function: FD_piSetBlockLength */
235 /* @Purpose : */
236 /* Provided Interface to set the last block length for the RPBUS */
237 /* */
238 /* @@ */
239 /* @Parameter Name @Mode @Description */
240 /* Length IN block length */
241 /* status_code OUT Return code */
242 /* @@ */
243 /*****************************************************************************/
244
245 status_code FD_piSetBlockLength(UINT32 Length)
246 {
247 status_code status = SUCCESSFUL;
248
249 FD_opSetBlockLength(Length);
250 return (status);
251 }
252

  ViewVC Help
Powered by ViewVC 1.1.23