/***************************************************************************

IR.h

Team Firefox

ME 218A 11/20/09

This software module

  1) Reads the input signal from the IR phototransistor

 

Inputs:

M1 - input phototransistor signal

 

Outpus:

(none)

****************************************************************************/

 

/*---------------------------- Include Files ------------------------------*/

#ifndef IR_h

#define IR_h

 

#include <stdio.h>

#include <ME218_C32.h>

 

/*---------------------------- Module Defines ------------------------------*/

typedef enum {       IR_ACTIVE_STATUS,

                     IR_BROKEN_STATUS

       } IR_STATUS_t;

 

/*---------------------------- Public Prototypes -----------------------------*/

IR_STATUS_t checkIRStatus(void);         //Will check the IR Beam status

//Will return one of the following:

//     IR_BROKEN_STATUS – if the IR beam has been interrupted by something

//     IR_ACTIVE_STATUS - otherwise

 

#endif