1 |
/**************************************************************************** |
2 |
/* F i l e D a t a |
3 |
/* |
4 |
/* Module : BasicSW |
5 |
/* C.I. No. : |
6 |
/* $Revision: 1.1.1.1 $ |
7 |
/* $Date: 2003/08/04 09:40:21 $ |
8 |
/* Belonging to : |
9 |
/* : |
10 |
/* $RCSfile: CD_CrimeaDriver_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: CD_CrimeaDriver_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.3 2002/05/09 08:16:34 zulia |
29 |
/* * acceptance release |
30 |
/* |
31 |
/* |
32 |
/*****************************************************************************/ |
33 |
|
34 |
|
35 |
/*============================= Include File ================================*/ |
36 |
|
37 |
#include <src/BasicSW/CrimeaDriver/CD_CrimeaDriver_p.h> |
38 |
#include <src/BasicSW/CrimeaDriver/CD_CrimeaDriver_op.h> |
39 |
|
40 |
/*****************************************************************************/ |
41 |
|
42 |
/*=== C D _ C r i m e a D r i v e r P R O V I D E D I N T E R F A C E ===*/ |
43 |
|
44 |
/*****************************************************************************/ |
45 |
|
46 |
/*****************************************************************************/ |
47 |
/* @Function: CD_piInitCrimeaDriver */ |
48 |
/* @Purpose : */ |
49 |
/* Provided Interface to implement the CRIMEA driver initialization. */ |
50 |
/* No parameters are requested. */ |
51 |
/* */ |
52 |
/* @@ */ |
53 |
/* @Parameter Name @Mode @Description */ |
54 |
/* status_code OUT Return code */ |
55 |
/* @@ */ |
56 |
/*****************************************************************************/ |
57 |
|
58 |
status_code CD_piInitCrimeaDriver (void) |
59 |
{ |
60 |
status_code status; |
61 |
|
62 |
status =CD_opInitCrimeaDriver(); |
63 |
return (status); |
64 |
|
65 |
} |
66 |
|
67 |
|
68 |
|
69 |
/*****************************************************************************/ |
70 |
/* @Function: CD_piWrCrimeaReg */ |
71 |
/* @Purpose : */ |
72 |
/* Provided Interface for writing the generic CRIMEA register. */ |
73 |
/* The possible function return code can be SUCCESSFUL or INVALID_ADDRESS */ |
74 |
/* (bad register specification) */ |
75 |
/* */ |
76 |
/* @@ */ |
77 |
/* @Parameter Name @Mode @Description */ |
78 |
/* Reg IN Crimea register (CD_CRIMEA_REG type) */ |
79 |
/* Value IN Value to write into the register */ |
80 |
/* status_code OUT Return code */ |
81 |
/* @@ */ |
82 |
/*****************************************************************************/ |
83 |
|
84 |
status_code CD_piWrCrimeaReg (unsigned int Reg, unsigned int Value) |
85 |
{ |
86 |
status_code status; |
87 |
|
88 |
status =CD_opWrCrimeaReg (Reg, Value); |
89 |
return (status); |
90 |
|
91 |
} |
92 |
|
93 |
|
94 |
|
95 |
/*****************************************************************************/ |
96 |
/* @Function: CD_piRdCrimeaReg */ |
97 |
/* @Purpose : */ |
98 |
/* Provided Interface for reading the generic CRIMEA register. */ |
99 |
/* The possible function return code can be SUCCESSFUL or INVALID_ADDRESS */ |
100 |
/* (bad register specification) */ |
101 |
/* */ |
102 |
/* @@ */ |
103 |
/* @Parameter Name @Mode @Description */ |
104 |
/* Reg IN Crimea register (CD_CRIMEA_REG type) */ |
105 |
/* Value OUT Value read */ |
106 |
/* status_code OUT Return code */ |
107 |
/* @@ */ |
108 |
/*****************************************************************************/ |
109 |
|
110 |
status_code CD_piRdCrimeaReg (unsigned int Reg, unsigned int* Value) |
111 |
{ |
112 |
status_code status; |
113 |
|
114 |
status =CD_opRdCrimeaReg (Reg, Value); |
115 |
return (status); |
116 |
|
117 |
} |
118 |
|
119 |
|
120 |
|
121 |
/*****************************************************************************/ |
122 |
/* @Function: CD_piGetCrimeaInterPending */ |
123 |
/* @Purpose : */ |
124 |
/* Provided Interface for reading the Crimea Interrupt Pending register. */ |
125 |
/* */ |
126 |
/* @@ */ |
127 |
/* @Parameter Name @Mode @Description */ |
128 |
/* InterPending OUT Interrupt Pending value read */ |
129 |
/* status_code OUT Return code */ |
130 |
/* @@ */ |
131 |
/*****************************************************************************/ |
132 |
|
133 |
status_code CD_piGetCrimeaInterPending (unsigned int* InterPending) |
134 |
{ |
135 |
status_code status; |
136 |
|
137 |
status =CD_opGetCrimeaInterPending (InterPending); |
138 |
return (status); |
139 |
|
140 |
} |
141 |
|
142 |
|
143 |
|
144 |
/*****************************************************************************/ |
145 |
/* @Function: CD_piSetCrimeaInterClear */ |
146 |
/* @Purpose : */ |
147 |
/* Provided Interface for clearing the Crimea Interrupt Clear register. */ |
148 |
/* */ |
149 |
/* @@ */ |
150 |
/* @Parameter Name @Mode @Description */ |
151 |
/* InterClear IN Interrupt Clear value */ |
152 |
/* status_code OUT Return code */ |
153 |
/* @@ */ |
154 |
/*****************************************************************************/ |
155 |
|
156 |
status_code CD_piSetCrimeaInterClear (unsigned int InterClear) |
157 |
{ |
158 |
status_code status; |
159 |
|
160 |
status =CD_opSetCrimeaInterClear(InterClear); |
161 |
return (status); |
162 |
|
163 |
} |
164 |
|
165 |
|
166 |
/*****************************************************************************/ |
167 |
/* @Function: CD_piSetCrimeaInterMask */ |
168 |
/* @Purpose : */ |
169 |
/* Provided Interface for setting the Crimea Interrupt Mask register. */ |
170 |
/* */ |
171 |
/* @@ */ |
172 |
/* @Parameter Name @Mode @Description */ |
173 |
/* InterMask IN Interrupt mask value */ |
174 |
/* status_code OUT Return code */ |
175 |
/* @@ */ |
176 |
/*****************************************************************************/ |
177 |
|
178 |
status_code CD_piSetCrimeaInterMask (unsigned int InterMask) |
179 |
{ |
180 |
status_code status; |
181 |
|
182 |
status =CD_opSetCrimeaInterMask(InterMask); |
183 |
return (status); |
184 |
|
185 |
} |
186 |
|
187 |
|
188 |
|
189 |
/*****************************************************************************/ |
190 |
/* @Function: CD_piGetCrimeaInterMask */ |
191 |
/* @Purpose : */ |
192 |
/* Provided Interface for getting the Crimea Interrupt Mask register. */ |
193 |
/* */ |
194 |
/* @@ */ |
195 |
/* @Parameter Name @Mode @Description */ |
196 |
/* InterMask OUT Interrupt mask value */ |
197 |
/* status_code OUT Return code */ |
198 |
/* @@ */ |
199 |
/*****************************************************************************/ |
200 |
|
201 |
status_code CD_piGetCrimeaInterMask (unsigned int* InterMask) |
202 |
{ |
203 |
status_code status; |
204 |
|
205 |
status =CD_opGetCrimeaInterMask(InterMask); |
206 |
return (status); |
207 |
|
208 |
} |