ardupilot/libraries/APM_FastSerial/APM_FastSerial.h
jjulio1234 4d1cbc1cca New version of APM_FastSerial library
git-svn-id: https://arducopter.googlecode.com/svn/trunk@89 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-13 16:17:08 +00:00

26 lines
604 B
C++

#ifndef APM_FastSerial_h
#define APM_FastSerial_h
#include <inttypes.h>
#include "Print.h"
class APM_FastSerial_Class : public Print // Inherit from Print
{
private:
uint8_t SerialPortNumber;
public:
APM_FastSerial_Class(uint8_t SerialPort); // Constructor
// we overwrite the write methods
void write(uint8_t b); // basic funtion : send a byte
void write(const uint8_t *buffer, int size);
};
extern APM_FastSerial_Class APM_FastSerial;
#if defined(__AVR_ATmega1280__)
extern APM_FastSerial_Class APM_FastSerial3;
#endif
#endif