Project

General

Profile

Statistics
| Branch: | Revision:

root / forklift / code / analog.h @ 902fa82f

History | View | Annotate | Download (562 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 beea48aa Tom Mullins
int analog_read(int which);
20
21
void line_update(char* values);
22
int line_locate(char* values);
23
int line_read(int which);
24 0bd4bb32 Tom Mullins
int line_read_pos(void);
25
void line_set_threshold_high(uint8_t threshhold);
26
void line_set_threshold_low(uint8_t threshhold);
27 048ed7e1 Tom Mullins
28
#endif