root / forklift / code / analog.h @ 048ed7e1
History | View | Annotate | Download (370 Bytes)
1 |
#ifndef _ANALOG_H_
|
---|---|
2 |
#define _ANALOG_H_
|
3 |
|
4 |
#define LWHITE 0 |
5 |
#define LGREY 1 |
6 |
#define LBLACK 2 |
7 |
#define CENTER 3 |
8 |
#define NOLINE -42 |
9 |
#define LINELOST -1 |
10 |
|
11 |
#define NOBARCODE -2 |
12 |
#define INTERSECTION -25 |
13 |
#define FULL_LINE -26 |
14 |
|
15 |
#define ADC_HEIGHT 0 |
16 |
#define ADC_LINE 1 |
17 |
|
18 |
void analog_init(void); |
19 |
int analog_read(int which); |
20 |
int line_read_pos(void); |
21 |
|
22 |
#endif
|