0
|
1 |
/**************************************************************************************************
|
|
2 |
*
|
|
3 |
* msr_io.h
|
|
4 |
*
|
|
5 |
* Verwaltung der IO-Karten
|
|
6 |
|
|
7 |
*
|
|
8 |
* Autor: Wilhelm Hagemeister
|
|
9 |
*
|
|
10 |
* (C) Copyright IgH 2002
|
|
11 |
* Ingenieurgemeinschaft IgH
|
|
12 |
* Heinz-Bäcker Str. 34
|
|
13 |
* D-45356 Essen
|
|
14 |
* Tel.: +49 201/61 99 31
|
|
15 |
* Fax.: +49 201/61 98 36
|
|
16 |
* E-mail: sp@igh-essen.com
|
|
17 |
*
|
|
18 |
*
|
|
19 |
* $RCSfile: msr_io.h,v $
|
|
20 |
* $Revision: 1.5 $
|
|
21 |
* $Author: ha $
|
|
22 |
* $Date: 2005/06/24 20:08:15 $
|
|
23 |
* $State: Exp $
|
|
24 |
*
|
|
25 |
*
|
|
26 |
* $Log: msr_io.h,v $
|
|
27 |
* Revision 1.5 2005/06/24 20:08:15 ha
|
|
28 |
* *** empty log message ***
|
|
29 |
*
|
|
30 |
* Revision 1.4 2005/06/24 17:39:05 ha
|
|
31 |
* *** empty log message ***
|
|
32 |
*
|
|
33 |
* Revision 1.3 2005/02/28 17:11:48 hm
|
|
34 |
* *** empty log message ***
|
|
35 |
*
|
|
36 |
* Revision 1.1 2005/02/10 16:34:24 hm
|
|
37 |
* Initial revision
|
|
38 |
*
|
|
39 |
* Revision 1.4 2004/12/21 22:03:54 hm
|
|
40 |
* *** empty log message ***
|
|
41 |
*
|
|
42 |
* Revision 1.3 2004/12/16 15:44:01 hm
|
|
43 |
* *** empty log message ***
|
|
44 |
*
|
|
45 |
* Revision 1.2 2004/12/01 17:07:49 hm
|
|
46 |
* *** empty log message ***
|
|
47 |
*
|
|
48 |
* Revision 1.1 2004/11/26 15:14:21 hm
|
|
49 |
* Initial revision
|
|
50 |
*
|
|
51 |
* Revision 1.1 2004/11/01 11:05:20 hm
|
|
52 |
* Initial revision
|
|
53 |
*
|
|
54 |
* Revision 1.1 2004/10/21 12:09:23 hm
|
|
55 |
* Initial revision
|
|
56 |
*
|
|
57 |
* Revision 1.3 2004/09/21 18:10:58 hm
|
|
58 |
* *** empty log message ***
|
|
59 |
*
|
|
60 |
* Revision 1.2 2004/07/22 17:28:02 hm
|
|
61 |
* *** empty log message ***
|
|
62 |
*
|
|
63 |
* Revision 1.1 2004/06/21 08:46:52 hm
|
|
64 |
* Initial revision
|
|
65 |
*
|
|
66 |
* Revision 1.4 2004/06/02 20:38:42 hm
|
|
67 |
* *** empty log message ***
|
|
68 |
*
|
|
69 |
* Revision 1.3 2004/06/02 20:38:18 hm
|
|
70 |
* *** empty log message ***
|
|
71 |
*
|
|
72 |
* Revision 1.2 2004/06/02 12:15:17 hm
|
|
73 |
* *** empty log message ***
|
|
74 |
*
|
|
75 |
* Revision 1.5 2003/02/20 17:33:37 hm
|
|
76 |
* *** empty log message ***
|
|
77 |
*
|
|
78 |
* Revision 1.4 2003/02/14 18:17:28 hm
|
|
79 |
* *** empty log message ***
|
|
80 |
*
|
|
81 |
* Revision 1.3 2003/02/13 17:11:12 hm
|
|
82 |
* *** empty log message ***
|
|
83 |
*
|
|
84 |
* Revision 1.2 2003/01/30 15:05:58 hm
|
|
85 |
* *** empty log message ***
|
|
86 |
*
|
|
87 |
* Revision 1.1 2003/01/24 20:40:09 hm
|
|
88 |
* Initial revision
|
|
89 |
*
|
|
90 |
* Revision 1.1 2003/01/22 15:55:40 hm
|
|
91 |
* Initial revision
|
|
92 |
*
|
|
93 |
* Revision 1.1 2002/08/13 16:26:27 hm
|
|
94 |
* Initial revision
|
|
95 |
*
|
|
96 |
* Revision 1.4 2002/07/04 13:34:27 sp
|
|
97 |
* *** empty log message ***
|
|
98 |
*
|
|
99 |
* Revision 1.3 2002/07/04 12:08:34 sp
|
|
100 |
* *** empty log message ***
|
|
101 |
*
|
|
102 |
* Revision 1.2 2002/07/04 08:44:19 sp
|
|
103 |
* Änderung des Autors :) und des Datums
|
|
104 |
*
|
|
105 |
* Revision 1.1 2002/07/04 08:25:26 sp
|
|
106 |
* Initial revision
|
|
107 |
*
|
|
108 |
*
|
|
109 |
*
|
|
110 |
*
|
|
111 |
*
|
|
112 |
*
|
|
113 |
*
|
|
114 |
**************************************************************************************************/
|
|
115 |
|
|
116 |
/*--Schutz vor mehrfachem includieren------------------------------------------------------------*/
|
|
117 |
|
|
118 |
#ifndef _MSR_IO_H_
|
|
119 |
#define _MSR_IO_H_
|
|
120 |
|
|
121 |
/*--includes-------------------------------------------------------------------------------------*/
|
|
122 |
|
|
123 |
//#include "msr_control.h"
|
|
124 |
|
|
125 |
/*--defines--------------------------------------------------------------------------------------*/
|
|
126 |
|
|
127 |
|
|
128 |
struct cif_in_t { /* Von Feld nach dSPACE */
|
|
129 |
uint8_t CIM_stat;
|
|
130 |
uint8_t P101[91];
|
|
131 |
uint8_t P201[72];
|
|
132 |
uint8_t P301[72];
|
|
133 |
} __attribute__ ((packed));
|
|
134 |
|
|
135 |
struct cif_out_t { /* Von dSPACE zum Feld */
|
|
136 |
uint8_t WatchDog;
|
|
137 |
uint8_t P101[39];
|
|
138 |
uint8_t P201[32];
|
|
139 |
uint8_t P301[32];
|
|
140 |
} __attribute__ ((packed));
|
|
141 |
|
|
142 |
/*--external functions---------------------------------------------------------------------------*/
|
|
143 |
|
|
144 |
/*--external data--------------------------------------------------------------------------------*/
|
|
145 |
|
|
146 |
/*--public data----------------------------------------------------------------------------------*/
|
|
147 |
|
|
148 |
/*
|
|
149 |
***************************************************************************************************
|
|
150 |
*
|
|
151 |
* Function: msr_io_init
|
|
152 |
*
|
|
153 |
* Beschreibung: Initialisieren der I/O-Karten
|
|
154 |
*
|
|
155 |
* Parameter:
|
|
156 |
*
|
|
157 |
* Rückgabe:
|
|
158 |
*
|
|
159 |
* Status: exp
|
|
160 |
*
|
|
161 |
***************************************************************************************************
|
|
162 |
*/
|
|
163 |
int msr_io_init();
|
|
164 |
|
|
165 |
/*
|
|
166 |
***************************************************************************************************
|
|
167 |
*
|
|
168 |
* Function: msr_io_register
|
|
169 |
*
|
|
170 |
* Beschreibung: Kanaele oder Parameter registrieren
|
|
171 |
*
|
|
172 |
* Parameter:
|
|
173 |
*
|
|
174 |
* Rückgabe:
|
|
175 |
*
|
|
176 |
* Status: exp
|
|
177 |
*
|
|
178 |
***************************************************************************************************
|
|
179 |
*/
|
|
180 |
|
|
181 |
int msr_io_register();
|
|
182 |
|
|
183 |
/*
|
|
184 |
***************************************************************************************************
|
|
185 |
*
|
|
186 |
* Function: msr_io_write
|
|
187 |
*
|
|
188 |
* Beschreibung: Schreiben der Werte
|
|
189 |
*
|
|
190 |
* Parameter:
|
|
191 |
*
|
|
192 |
* Rückgabe:
|
|
193 |
*
|
|
194 |
* Status: exp
|
|
195 |
*
|
|
196 |
***************************************************************************************************
|
|
197 |
*/
|
|
198 |
int msr_io_write();
|
|
199 |
|
|
200 |
/*
|
|
201 |
***************************************************************************************************
|
|
202 |
*
|
|
203 |
* Function: msr_io_write
|
|
204 |
*
|
|
205 |
* Beschreibung: Lesen der Werte
|
|
206 |
*
|
|
207 |
* Parameter:
|
|
208 |
*
|
|
209 |
* Rückgabe:
|
|
210 |
*
|
|
211 |
* Status: exp
|
|
212 |
*
|
|
213 |
***************************************************************************************************
|
|
214 |
*/
|
|
215 |
int msr_io_read();
|
|
216 |
|
|
217 |
/*
|
|
218 |
***************************************************************************************************
|
|
219 |
*
|
|
220 |
* Function: msr_io_cleanup
|
|
221 |
*
|
|
222 |
* Beschreibung: Aufräumen
|
|
223 |
*
|
|
224 |
* Parameter:
|
|
225 |
*
|
|
226 |
* Rückgabe:
|
|
227 |
*
|
|
228 |
* Status: exp
|
|
229 |
*
|
|
230 |
***************************************************************************************************
|
|
231 |
*/
|
|
232 |
void msr_io_cleanup();
|
|
233 |
|
|
234 |
#endif
|
|
235 |
|
|
236 |
|