scoutece / forklift / code / analog.h @ 0bd4bb32
History | View | Annotate | Download (471 Bytes)
1 | 048ed7e1 | Tom Mullins | #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 | 0bd4bb32 | Tom Mullins | int line_read_pos(void); |
21 | void line_set_threshold_high(uint8_t threshhold);
|
||
22 | void line_set_threshold_low(uint8_t threshhold);
|
||
23 | 048ed7e1 | Tom Mullins | |
24 | #endif |