brickOS C++ v0.9.0
|
Interface: direct control of Dual IR Proximity Detector. More...
Go to the source code of this file.
Macros | |
#define | DIRPD_LEFT_S 0xd000 |
#define | DIRPD_LEFT_E 0xe000 |
#define | DIRPD_RIGHT_S 0xb000 |
#define | DIRPD_RIGHT_E 0xbfff |
#define | DIRPD_CENTER_S 0xf000 |
#define | DIRPD_CENTER_E 0xffff |
#define | DIRPD_NONE_S 0x8000 |
#define | DIRPD_NONE_E 0x8fff |
#define | DIRPD_LEFT(araw) (araw >= DIRPD_LEFT_S && araw <= DIRPD_LEFT_E) |
#define | DIRPD_RIGHT(araw) (araw >= DIRPD_RIGHT_S && araw <= DIRPD_RIGHT_E) |
#define | DIRPD_CENTER(araw) (araw >= DIRPD_CENTER_S && araw <= DIRPD_CENTER_E) |
#define | DIRPD_NONE(araw) (araw >= DIRPD_NONE_S && araw <= DIRPD_NONE_E) |
Interface: direct control of Dual IR Proximity Detector.
This code applies to the Dual IR Proximity Detector that can be ordered from http://www.techno-stuff.com. You may need to modify the ranges
Definition in file dirpd.h.
#define DIRPD_CENTER | ( | araw | ) | (araw >= DIRPD_CENTER_S && araw <= DIRPD_CENTER_E) |
#define DIRPD_LEFT | ( | araw | ) | (araw >= DIRPD_LEFT_S && araw <= DIRPD_LEFT_E) |
#define DIRPD_NONE | ( | araw | ) | (araw >= DIRPD_NONE_S && araw <= DIRPD_NONE_E) |
#define DIRPD_RIGHT | ( | araw | ) | (araw >= DIRPD_RIGHT_S && araw <= DIRPD_RIGHT_E) |