Netcruzer Library API
V2.03
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Groups
Pages
nz_pt66ei10p.h
Go to the documentation of this file.
1
107
#ifndef PT66EI_10P_H
108
#define PT66EI_10P_H
109
110
#if defined(XBRD_PT66EI10P) || defined(XBRD_PT66EI10P)
111
113
//Global variables
114
115
//This is used by other application modules
116
#ifndef THIS_IS_NZ_PT66EI_10P_C
117
extern
BYTE pt66ei10pLeds0to2;
118
#endif
119
120
124
void
pt66ei10p_Init(
void
);
125
126
137
void
pt66ei10p_WriteLeds(BYTE value);
138
139
140
// *********************************************************************
141
// ------------------------- iMod Port 1 Defines -----------------------
142
// *********************************************************************
143
#define HAS_IMOD1
144
145
#define IMOD1_PIN2
146
#define IMOD1_PIN2_IS_DIG //Digital I/O port of CPU
147
#define IMOD1_PIN2_IS_PPS
148
#ifdef PIN_08
149
#define PIN_IMOD1_P2 PIN_08
150
#define LAT_IMOD1_P2 LAT_08
151
#define DIR_IMOD1_P2 DIR_08
152
#define PULLUP_IMOD1_P2 PULLUP_08
153
#define PULLDOWN_IMOD1_P2 PULLDOWN_08
154
#define PPS_LAT_IMOD1_P2 PPS_OUT_08
155
#define PPS_IN_IMOD1_P2 PPS_IN_08
156
#define imod1_ConfDirPin2(dir) (DIR_IMOD1_P2 = dir)
157
#define imod1_WritePin2(val) (LAT_IMOD1_P2 = val)
158
#define imod1_ReadPin2() (PIN_IMOD1_P2)
159
#define imod1_ConfPullupPin2(val) (PULLUP_IMOD1_P2 = val)
160
#define imod1_ConfPulldownPin2(val) (PULLDOWN_IMOD1_P2 = val)
161
#endif
162
163
#define IMOD1_PIN3
164
#define IMOD1_PIN3_IS_DIG
165
#define IMOD1_PIN3_IS_PPS
166
#ifdef PIN_07
167
#define PIN_IMOD1_P3 PIN_07
168
#define LAT_IMOD1_P3 LAT_07
169
#define DIR_IMOD1_P3 DIR_07
170
#define PULLUP_IMOD1_P3 PULLUP_07
171
#define PULLDOWN_IMOD1_P3 PULLDOWN_07
172
#define PPS_LAT_IMOD1_P3 PPS_OUT_07
173
#define PPS_IN_IMOD1_P3 PPS_IN_07
174
#define imod1_ConfDirPin3(dir) (DIR_IMOD1_P3 = dir)
175
#define imod1_WritePin3(val) (LAT_IMOD1_P3 = val)
176
#define imod1_ReadPin3() (PIN_IMOD1_P3)
177
#define imod1_ConfPullupPin3(val) (PULLUP_IMOD1_P3 = val)
178
#define imod1_ConfPulldownPin3(val) (PULLDOWN_IMOD1_P3 = val)
179
#endif
180
181
#define IMOD1_PIN4
182
#define IMOD1_PIN4_IS_DIG
183
#define IMOD1_PIN4_IS_PPS
184
#ifdef PIN_06
185
#define PIN_IMOD1_P4 PIN_06
186
#define LAT_IMOD1_P4 LAT_06
187
#define DIR_IMOD1_P4 DIR_06
188
#define PULLUP_IMOD1_P4 PULLUP_06
189
#define PULLDOWN_IMOD1_P4 PULLDOWN_06
190
#define PPS_LAT_IMOD1_P4 PPS_OUT_06
191
#define PPS_IN_IMOD1_P4 PPS_IN_06
192
#define imod1_ConfDirPin4(dir) (DIR_IMOD1_P4 = dir)
193
#define imod1_WritePin4(val) (LAT_IMOD1_P4 = val)
194
#define imod1_ReadPin4() (PIN_IMOD1_P4)
195
#define imod1_ConfPullupPin4(val) (PULLUP_IMOD1_P4 = val)
196
#define imod1_ConfPulldownPin4(val) (PULLDOWN_IMOD1_P4 = val)
197
#endif
198
199
#define IMOD1_PIN5
200
#define IMOD1_PIN5_IS_PPS
201
#define IMOD1_PIN5_IS_DIG
202
#define IMOD1_PIN5_IS_ANALOG
203
#ifdef PIN_01
204
#define PIN_IMOD1_P5 PIN_01
205
#define LAT_IMOD1_P5 LAT_01
206
#define DIR_IMOD1_P5 DIR_01
207
#define PULLUP_IMOD1_P5 PULLUP_01
208
#define PULLDOWN_IMOD1_P5 PULLDOWN_01
209
#define PPS_LAT_IMOD1_P5 PPS_OUT_01
210
#define PPS_IN_IMOD1_P5 PPS_IN_01
211
#define imod1_ConfDirPin5(dir) (DIR_IMOD1_P5 = dir)
212
#define imod1_WritePin5(val) (LAT_IMOD1_P5 = val)
213
#define imod1_ReadPin5() (PIN_IMOD1_P5)
214
#define imod1_ConfPullupPin5(val) (PULLUP_IMOD1_P5 = val)
215
#define imod1_ConfPulldownPin5(val) (PULLDOWN_IMOD1_P5 = val)
216
#endif
217
218
#define IMOD1_PIN6
219
#define IMOD1_PIN6_IS_DIG
220
#define IMOD1_PIN6_IS_ANALOG
221
#ifdef PIN_32
222
#define PIN_IMOD1_P6 PIN_32
223
#define LAT_IMOD1_P6 LAT_32
224
#define DIR_IMOD1_P6 DIR_32
225
#define PULLUP_IMOD1_P6 PULLUP_32
226
#define PULLDOWN_IMOD1_P6 PULLDOWN_32
227
#define imod1_ConfDirPin6(dir) (DIR_IMOD1_P6 = dir)
228
#define imod1_WritePin6(val) (LAT_IMOD1_P6 = val)
229
#define imod1_ReadPin6() (PIN_IMOD1_P6)
230
#define imod1_ConfPullupPin6(val) (PULLUP_IMOD1_P6 = val)
231
#define imod1_ConfPulldownPin6(val) (PULLDOWN_IMOD1_P6 = val)
232
#endif
233
234
#define IMOD1_PIN7
235
#define IMOD1_PIN7_IS_PPS
236
#define IMOD1_PIN7_IS_DIG
237
#define IMOD1_PIN7_IS_ANALOG
238
#ifdef PIN_31
239
#define PIN_IMOD1_P7 PIN_31
240
#define LAT_IMOD1_P7 LAT_31
241
#define DIR_IMOD1_P7 DIR_31
242
#define PULLUP_IMOD1_P7 PULLUP_31
243
#define PULLDOWN_IMOD1_P7 PULLDOWN_31
244
#define PPS_LAT_IMOD1_P7 PPS_OUT_31
245
#define PPS_IN_IMOD1_P7 PPS_IN_31
246
#define imod1_ConfDirPin7(dir) (DIR_IMOD1_P7 = dir)
247
#define imod1_WritePin7(val) (LAT_IMOD1_P7 = val)
248
#define imod1_ReadPin7() (PIN_IMOD1_P7)
249
#define imod1_ConfPullupPin7(val) (PULLUP_IMOD1_P7 = val)
250
#define imod1_ConfPulldownPin7(val) (PULLDOWN_IMOD1_P7 = val)
251
#endif
252
253
254
// iMod 2 ///////////////////////////////////////
255
#define HAS_IMOD2
256
257
#define IMOD2_PIN2
258
#define IMOD2_PIN2_IS_DIG
259
#define IMOD2_PIN2_IS_PPS
260
#define PIN_IMOD2_P2 PIN_39
261
#define LAT_IMOD2_P2 LAT_39
262
#define DIR_IMOD2_P2 DIR_39
263
#define PULLUP_IMOD2_P2 PULLUP_39
264
#define PULLDOWN_IMOD2_P2 PULLDOWN_39
265
#define PPS_LAT_IMOD2_P2 PPS_OUT_39
266
#define PPS_IN_IMOD2_P2 PPS_IN_39
267
#define imod2_ConfDirPin2(dir) (DIR_IMOD2_P2 = dir)
268
#define imod2_WritePin2(val) (LAT_IMOD2_P2 = val)
269
#define imod2_ReadPin2() (PIN_IMOD2_P2)
270
#define imod2_ConfPullupPin2(val) (PULLUP_IMOD2_P2 = val)
271
#define imod2_ConfPulldownPin2(val) (PULLDOWN_IMOD2_P2 = val)
272
273
#define IMOD2_PIN3
274
#define IMOD2_PIN3_IS_DIG
275
#define IMOD2_PIN3_IS_PPS
276
#define PIN_IMOD2_P3 PIN_09
277
#define LAT_IMOD2_P3 LAT_09
278
#define DIR_IMOD2_P3 DIR_09
279
#define PULLUP_IMOD2_P3 PULLUP_09
280
#define PULLDOWN_IMOD2_P3 PULLDOWN_09
281
#define PPS_LAT_IMOD2_P3 PPS_OUT_09
282
#define PPS_IN_IMOD2_P3 PPS_IN_09
283
#define imod2_ConfDirPin3(dir) (DIR_IMOD2_P3 = dir)
284
#define imod2_WritePin3(val) (LAT_IMOD2_P3 = val)
285
#define imod2_ReadPin3() (PIN_IMOD2_P3)
286
#define imod2_ConfPullupPin3(val) (PULLUP_IMOD2_P3 = val)
287
#define imod2_ConfPulldownPin3(val) (PULLDOWN_IMOD2_P3 = val)
288
289
#define IMOD2_PIN4
290
#define IMOD2_PIN4_IS_DIG
291
#define IMOD2_PIN4_IS_PPS
292
#define PIN_IMOD2_P4 PIN_38
293
#define LAT_IMOD2_P4 LAT_38
294
#define DIR_IMOD2_P4 DIR_38
295
#define PULLUP_IMOD2_P4 PULLUP_38
296
#define PULLDOWN_IMOD2_P4 PULLDOWN_38
297
#define PPS_LAT_IMOD2_P4 PPS_OUT_38
298
#define PPS_IN_IMOD2_P4 PPS_IN_38
299
#define imod2_ConfDirPin4(dir) (DIR_IMOD2_P4 = dir)
300
#define imod2_WritePin4(val) (LAT_IMOD2_P4 = val)
301
#define imod2_ReadPin4() (PIN_IMOD2_P4)
302
#define imod2_ConfPullupPin4(val) (PULLUP_IMOD2_P4 = val)
303
#define imod2_ConfPulldownPin4(val) (PULLDOWN_IMOD2_P4 = val)
304
305
#define IMOD2_PIN5
306
#define IMOD2_PIN5_IS_DIG
307
#define IMOD2_PIN5_IS_ANALOG
308
#define IMOD2_PIN5_IS_PPS
309
#define PIN_IMOD2_P5 PIN_02
310
#define LAT_IMOD2_P5 LAT_02
311
#define DIR_IMOD2_P5 DIR_02
312
#define PULLUP_IMOD2_P5 PULLUP_02
313
#define PULLDOWN_IMOD2_P5 PULLDOWN_02
314
#define PPS_LAT_IMOD2_P5 PPS_OUT_02
315
#define PPS_IN_IMOD2_P5 PPS_IN_02
316
#define imod2_ConfDirPin5(dir) (DIR_IMOD2_P5 = dir)
317
#define imod2_WritePin5(val) (LAT_IMOD2_P5 = val)
318
#define imod2_ReadPin5() (PIN_IMOD2_P5)
319
#define imod2_ConfPullupPin5(val) (PULLUP_IMOD2_P5 = val)
320
#define imod2_ConfPulldownPin5(val) (PULLDOWN_IMOD2_P5 = val)
321
322
#define IMOD2_PIN6
323
#define IMOD2_PIN6_IS_DIG
324
#define IMOD2_PIN6_IS_ANALOG
325
#define PIN_IMOD2_P6 PIN_03
326
#define LAT_IMOD2_P6 LAT_03
327
#define DIR_IMOD2_P6 DIR_03
328
#define PULLUP_IMOD2_P6 PULLUP_03
329
#define PULLDOWN_IMOD2_P6 PULLDOWN_03
330
#define imod2_ConfDirPin6(dir) (DIR_IMOD2_P6 = dir)
331
#define imod2_WritePin6(val) (LAT_IMOD2_P6 = val)
332
#define imod2_ReadPin6() (PIN_IMOD2_P6)
333
#define imod2_ConfPullupPin6(val) (PULLUP_IMOD2_P6 = val)
334
#define imod2_ConfPulldownPin6(val) (PULLDOWN_IMOD2_P6 = val)
335
336
#define IMOD2_PIN7
337
#define IMOD2_PIN7_IS_DIG
338
#define IMOD2_PIN7_IS_ANALOG
339
#define IMOD2_PIN7_IS_PPS
340
#define PIN_IMOD2_P7 PIN_04
341
#define LAT_IMOD2_P7 LAT_04
342
#define DIR_IMOD2_P7 DIR_04
343
#define PULLUP_IMOD2_P7 PULLUP_04
344
#define PULLDOWN_IMOD2_P7 PULLDOWN_04
345
#define PPS_LAT_IMOD2_P7 PPS_OUT_04
346
#define PPS_IN_IMOD2_P7 PPS_IN_04
347
#define imod2_ConfDirPin7(dir) (DIR_IMOD2_P7 = dir)
348
#define imod2_WritePin7(val) (LAT_IMOD2_P7 = val)
349
#define imod2_ReadPin7() (PIN_IMOD2_P7)
350
#define imod2_ConfPullupPin7(val) (PULLUP_IMOD2_P7 = val)
351
#define imod2_ConfPulldownPin7(val) (PULLDOWN_IMOD2_P7 = val)
352
353
354
#endif //#if defined(XBRD_PT66EI10P) || defined(XBRD_PT66EI10P)
355
356
#endif //#ifndef PT66EI_10P_H
netcruzer
lib
nz_pt66ei10p.h
Generated on Tue Dec 9 2014 15:08:19 for Netcruzer Library API by
1.8.4