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

/home/jgoppert/Projects/ap/libraries/APM_FastSerial/APM_FastSerial.h

Go to the documentation of this file.
00001 #ifndef APM_FastSerial_h
00002 #define APM_FastSerial_h
00003 
00004 #include <inttypes.h>
00005 
00006 #include "Print.h"
00007 
00008 class APM_FastSerial_Class : public Print   // Inherit from Print
00009 {
00010   private:    
00011     uint8_t SerialPortNumber;
00012 
00013   public:
00014     APM_FastSerial_Class(uint8_t SerialPort); // Constructor    
00015         // we overwrite the write methods
00016         void write(uint8_t b);                    // basic funtion : send a byte   
00017         void write(const uint8_t *buffer, int size);
00018 };
00019 
00020 extern APM_FastSerial_Class APM_FastSerial;
00021 #if defined(__AVR_ATmega1280__)
00022         extern APM_FastSerial_Class APM_FastSerial3;
00023 #endif
00024 #endif
00025 

Generated for ArduPilot Libraries by doxygen