Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
nz_db66dev1.h
Go to the documentation of this file.
1 
73 #ifndef DB66DEV1_H
74 #define DB66DEV1_H
75 
76 #if defined(XBRD_DB66DEV1)
77 
79 // Buttons
80 #define PIN_BUTTON1 PIN_30 //Old port name = Y0
81 #define PIN_BUTTON2 PIN_31 //Old port name = Y1
82 #define PIN_BUTTON3 PIN_32 //Old port name = Y2
83 #define PIN_BUTTON4 PIN_33 //Old port name = Y3
84 
85 #define PULLUP_BUTTON1 PULLUP_30 //Old port name = Y0
86 #define PULLUP_BUTTON2 PULLUP_31 //Old port name = Y1
87 #define PULLUP_BUTTON3 PULLUP_32 //Old port name = Y2
88 #define PULLUP_BUTTON4 PULLUP_33 //Old port name = Y3
89 
90 #define DIR_BUTTON1 DIR_30 //Old port name = Y0
91 #define DIR_BUTTON2 DIR_31 //Old port name = Y1
92 #define DIR_BUTTON3 DIR_32 //Old port name = Y2
93 #define DIR_BUTTON4 DIR_33 //Old port name = Y3
94 
95 
97 // Buttons
98 #define DIR_BUZZER DIR_30 //Old port name = Y0
99 
100 
102 // LEDs
103 #define DIR_LED1 DIR_06 //Port 6 - old port name = X6
104 #define DIR_LED2 DIR_07 //Port 7 - old port name = X7
105 #define DIR_LED3 DIR_08 //Port 8 - old port name = X8
106 #define DIR_LED4 DIR_09 //Port 9 - old port name = X9
107 #define DIR_LED5 DIR_26 //Port 26 - old port name = T4
108 #define DIR_LED6 DIR_27 //Port 27 - old port name = T5
109 #define DIR_LED7 DIR_28 //Port 28 - old port name = T6
110 #define DIR_LED8 DIR_29 //Port 29 - old port name = T7
111 
112 #define LAT_LED1 LAT_06 //Port 6 - old port name = X6
113 #define LAT_LED2 LAT_07 //Port 7 - old port name = X7
114 #define LAT_LED3 LAT_08 //Port 8 - old port name = X8
115 #define LAT_LED4 LAT_09 //Port 9 - old port name = X9
116 #define LAT_LED5 LAT_26 //Port 26 - old port name = T4
117 #define LAT_LED6 LAT_27 //Port 27 - old port name = T5
118 #define LAT_LED7 LAT_28 //Port 28 - old port name = T6
119 #define LAT_LED8 LAT_29 //Port 29 - old port name = T7
120 
125 #define db66dev1_WriteLed1(val) (LAT_LED1 = (val))
126 
131 #define db66dev1_WriteLed2(val) (LAT_LED2 = (val))
132 
137 #define db66dev1_WriteLed3(val) (LAT_LED3 = (val))
138 
143 #define db66dev1_WriteLed4(val) (LAT_LED4 = (val))
144 
149 #define db66dev1_WriteLed5(val) (LAT_LED5 = (val))
150 
155 #define db66dev1_WriteLed6(val) (LAT_LED6 = (val))
156 
161 #define db66dev1_WriteLed7(val) (LAT_LED7 = (val))
162 
167 #define db66dev1_WriteLed8(val) (LAT_LED8 = (val))
168 
172 void db66dev1_Init();
173 
174 
178 void db66dev1_Buzz(BYTE t);
179 
180 
188 BOOL db66dev1_ReadButton(BYTE btn);
189 
190 
196 BYTE db66dev1_ReadLatchedButtons();
197 
198 
211 void db66dev1_WriteLeds(BYTE leds);
212 
213 
218 BYTE db66dev1_ReadLeds(void);
219 
220 
221 
225 void db66dev1_Service();
226 
227 #endif //#if defined(XBRD_DB66DEV1)
228 
229 #endif