Netcruzer Library API
V2.03
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Groups
Pages
nz_pt66eci.h
Go to the documentation of this file.
1
103
#ifndef PT66ECI_R1_H
104
#define PT66ECI_R1_H
105
106
#if defined(XBRD_PT66ECI)
107
108
// *********************************************************************
109
// ------------------------- iMod Port 1 Defines -----------------------
110
// *********************************************************************
111
#define HAS_IMOD1
112
113
#define IMOD1_PIN2
114
#define IMOD1_PIN2_IS_DIG //Digital I/O port of CPU
115
#define IMOD1_PIN2_IS_PPS
116
#ifdef PIN_08
117
#define PIN_IMOD1_P2 PIN_08
118
#define LAT_IMOD1_P2 LAT_08
119
#define DIR_IMOD1_P2 DIR_08
120
#define PULLUP_IMOD1_P2 PULLUP_08
121
#define PULLDOWN_IMOD1_P2 PULLDOWN_08
122
#define PPS_LAT_IMOD1_P2 PPS_OUT_08
123
#define PPS_IN_IMOD1_P2 PPS_IN_08
124
#define imod1_ConfDirPin2(dir) (DIR_IMOD1_P2 = dir)
125
#define imod1_WritePin2(val) (LAT_IMOD1_P2 = val)
126
#define imod1_ReadPin2() (PIN_IMOD1_P2)
127
#define imod1_ConfPullupPin2(val) (PULLUP_IMOD1_P2 = val)
128
#define imod1_ConfPulldownPin2(val) (PULLDOWN_IMOD1_P2 = val)
129
#endif
130
131
#define IMOD1_PIN3
132
#define IMOD1_PIN3_IS_DIG
133
#define IMOD1_PIN3_IS_PPS
134
#ifdef PIN_07
135
#define PIN_IMOD1_P3 PIN_07
136
#define LAT_IMOD1_P3 LAT_07
137
#define DIR_IMOD1_P3 DIR_07
138
#define PULLUP_IMOD1_P3 PULLUP_07
139
#define PULLDOWN_IMOD1_P3 PULLDOWN_07
140
#define PPS_LAT_IMOD1_P3 PPS_OUT_07
141
#define PPS_IN_IMOD1_P3 PPS_IN_07
142
#define imod1_ConfDirPin3(dir) (DIR_IMOD1_P3 = dir)
143
#define imod1_WritePin3(val) (LAT_IMOD1_P3 = val)
144
#define imod1_ReadPin3() (PIN_IMOD1_P3)
145
#define imod1_ConfPullupPin3(val) (PULLUP_IMOD1_P3 = val)
146
#define imod1_ConfPulldownPin3(val) (PULLDOWN_IMOD1_P3 = val)
147
#endif
148
149
#define IMOD1_PIN4
150
#define IMOD1_PIN4_IS_DIG
151
#define IMOD1_PIN4_IS_PPS
152
#ifdef PIN_06
153
#define PIN_IMOD1_P4 PIN_06
154
#define LAT_IMOD1_P4 LAT_06
155
#define DIR_IMOD1_P4 DIR_06
156
#define PULLUP_IMOD1_P4 PULLUP_06
157
#define PULLDOWN_IMOD1_P4 PULLDOWN_06
158
#define PPS_LAT_IMOD1_P4 PPS_OUT_06
159
#define PPS_IN_IMOD1_P4 PPS_IN_06
160
#define imod1_ConfDirPin4(dir) (DIR_IMOD1_P4 = dir)
161
#define imod1_WritePin4(val) (LAT_IMOD1_P4 = val)
162
#define imod1_ReadPin4() (PIN_IMOD1_P4)
163
#define imod1_ConfPullupPin4(val) (PULLUP_IMOD1_P4 = val)
164
#define imod1_ConfPulldownPin4(val) (PULLDOWN_IMOD1_P4 = val)
165
#endif
166
167
#define IMOD1_PIN5
168
#define IMOD1_PIN5_IS_PPS
169
#define IMOD1_PIN5_IS_DIG
170
#define IMOD1_PIN5_IS_ANALOG
171
#ifdef PIN_01
172
#define PIN_IMOD1_P5 PIN_01
173
#define LAT_IMOD1_P5 LAT_01
174
#define DIR_IMOD1_P5 DIR_01
175
#define PULLUP_IMOD1_P5 PULLUP_01
176
#define PULLDOWN_IMOD1_P5 PULLDOWN_01
177
#define PPS_LAT_IMOD1_P5 PPS_OUT_01
178
#define PPS_IN_IMOD1_P5 PPS_IN_01
179
#define imod1_ConfDirPin5(dir) (DIR_IMOD1_P5 = dir)
180
#define imod1_WritePin5(val) (LAT_IMOD1_P5 = val)
181
#define imod1_ReadPin5() (PIN_IMOD1_P5)
182
#define imod1_ConfPullupPin5(val) (PULLUP_IMOD1_P5 = val)
183
#define imod1_ConfPulldownPin5(val) (PULLDOWN_IMOD1_P5 = val)
184
#endif
185
186
#define IMOD1_PIN6
187
#define IMOD1_PIN6_IS_DIG
188
#define IMOD1_PIN6_IS_ANALOG
189
#ifdef PIN_32
190
#define PIN_IMOD1_P6 PIN_32
191
#define LAT_IMOD1_P6 LAT_32
192
#define DIR_IMOD1_P6 DIR_32
193
#define PULLUP_IMOD1_P6 PULLUP_32
194
#define PULLDOWN_IMOD1_P6 PULLDOWN_32
195
#define imod1_ConfDirPin6(dir) (DIR_IMOD1_P6 = dir)
196
#define imod1_WritePin6(val) (LAT_IMOD1_P6 = val)
197
#define imod1_ReadPin6() (PIN_IMOD1_P6)
198
#define imod1_ConfPullupPin6(val) (PULLUP_IMOD1_P6 = val)
199
#define imod1_ConfPulldownPin6(val) (PULLDOWN_IMOD1_P6 = val)
200
#endif
201
202
#define IMOD1_PIN7
203
#define IMOD1_PIN7_IS_PPS
204
#define IMOD1_PIN7_IS_DIG
205
#define IMOD1_PIN7_IS_ANALOG
206
#ifdef PIN_31
207
#define PIN_IMOD1_P7 PIN_31
208
#define LAT_IMOD1_P7 LAT_31
209
#define DIR_IMOD1_P7 DIR_31
210
#define PULLUP_IMOD1_P7 PULLUP_31
211
#define PULLDOWN_IMOD1_P7 PULLDOWN_31
212
#define PPS_LAT_IMOD1_P7 PPS_OUT_31
213
#define PPS_IN_IMOD1_P7 PPS_IN_31
214
#define imod1_ConfDirPin7(dir) (DIR_IMOD1_P7 = dir)
215
#define imod1_WritePin7(val) (LAT_IMOD1_P7 = val)
216
#define imod1_ReadPin7() (PIN_IMOD1_P7)
217
#define imod1_ConfPullupPin7(val) (PULLUP_IMOD1_P7 = val)
218
#define imod1_ConfPulldownPin7(val) (PULLDOWN_IMOD1_P7 = val)
219
#endif
220
221
#endif //#if defined(XBRD_PT66ECI)
222
223
#endif
netcruzer
lib
nz_pt66eci.h
Generated on Tue Dec 9 2014 15:08:19 for Netcruzer Library API by
1.8.4