Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / diagnostic_station / station / hardware_ibom.h @ 1280

History | View | Annotate | Download (537 Bytes)

1
#ifndef _hardware_ibom_h
2
#define _hardware_ibom_h
3

    
4
#include <dragonfly_lib.h>
5
#include "global.h"
6

    
7
/* 
8
 * Inverse BOM sensor macros for left, right, and top positions.
9
 */
10
// FIXME do it right
11
#define IBOM_SENSOR_LEFT AN3
12
#define IBOM_SENSOR_RIGHT AN4
13
#define IBOM_SENSOR_TOP AN5
14
//#define IBOM_SENSOR_ AN6
15

    
16
#define IBOM_EMITTER_PIN PIN_A5
17

    
18
void ibom_init (void);
19

    
20
void ibom_set (bool on);
21
void ibom_read (uint16_t *top, uint16_t *left, uint16_t *right);
22
void ibom_update (void);
23
void ibom_debug (void);
24

    
25
#endif