// // HW_drivers.h // // Description: Contains the general hardware handler routines' prototypes // // #include "definitions.h" extern ConfigData R_ParameterTable; extern ConfigData E_ParameterTable; // Function Name: InitADC() // // Description: Initialize ADC hardware. // // void InitADC(void); // Function: adc_read() // // Description: Start an ADC conversion on the specified channel and returns the result. // unsigned char adc_read(unsigned char channel); // Function: gpd_read() // // Description: Read the selected GP2D12 sensor and convert to centimeters. // unsigned char gpd_read(unsigned char sensor); // Function Name: SCM_Init() // // Description: Initialize The Smart Camera Module (SCM). // // void SCM_Init(void); // Function Name: SCM_calibrate() // // Description: Have the SCM calibrate to the current light conditions and candle. // Inputs: If save argument is TRUE, then save resulting exposure to EEPROM. // void SCM_calibrate(unsigned char save); // Function Name: Line_calibrate() // // Description: Sample the line sensors and calibrate. (Robot should be placed over a white line first) // Inputs: If save argument is TRUE, then save resulting exposure to EEPROM. // void Line_calibrate(unsigned char save); // Function Name: Line_Sample() // // Description: Sample the specified line sensor and return average reading. // Inputs: Line Sensor to read. // unsigned char Line_Read(unsigned char sensor);