-
Notifications
You must be signed in to change notification settings - Fork 2
/
IR.h
28 lines (24 loc) · 802 Bytes
/
IR.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*******************************************************************************
* File: IR.h
* Author: Will Flores [email protected]
* Usage:
* Description: This file contains the function prototypes for the car's
* IR detectors.
* Environment: Windows 7, x64 build
* Built in HEW with MC16 Series Compiler V.5.44 Release 00
* Notes: NONE
* Revisions: 0.0, Initial Release
*
* Created on March 22, 2012
*******************************************************************************/
#ifndef IR_H
#define IR_H
#define IR_EMIT_ON 1
#define IR_EMIT_OFF 0
#define ADC_BITMASK (0x03ff)
#define NUM_OF_SENSORS (2)
void IR_emitter_on(void);
void IR_emitter_off(void);
void calibrateIR(void);
void setIR_threshold(unsigned int reading);
#endif /* IR_H */