• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

AP_ADC_ADS7844.h

Go to the documentation of this file.
00001 #ifndef AP_ADC_ADS7844_H
00002 #define AP_ADC_ADS7844_H
00003 
00004 #define bit_set(p,m)   ((p) |= ( 1<<m))
00005 #define bit_clear(p,m) ((p) &= ~(1<<m))
00006 
00007 // We use Serial Port 2 in SPI Mode
00008 #define ADC_DATAOUT     51    // MOSI
00009 #define ADC_DATAIN      50    // MISO
00010 #define ADC_SPICLOCK    52    // SCK
00011 #define ADC_CHIP_SELECT 33    // PC4   9 // PH6  Puerto:0x08 Bit mask : 0x40
00012 
00013 #include "AP_ADC.h"
00014 
00015 class AP_ADC_ADS7844 : public AP_ADC
00016 {
00017   public:
00018         AP_ADC_ADS7844();  // Constructor
00019         void Init();
00020         int Ch(unsigned char ch_num);     
00021   private:
00022 };
00023 
00024 #endif

Generated for ArduPilot Libraries by doxygen