TUB-MRT / btbee

Fork of btbee by Nikolas Goldin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers btbee.h Source File

btbee.h

00001 #include "mbed.h"
00002 #include "platform.h"
00003  
00004 #define FACTORY_BAUD 9600
00005 #define DEFAULT_BAUD 115200
00006 #define AT_BAUD 38400
00007  
00008 // this is a test comment
00009 class btbee: public Serial{
00010  public: 
00011   btbee(PinName respin, PinName tx, PinName rx);
00012   btbee(void);
00013   void reset(void);
00014   void at_baud(void);
00015   void factory_baud(void);
00016   void default_baud(void);
00017   int read_all(char*,const int, int*);
00018   int read_line(char*,const int, int*);
00019  
00020  protected:
00021   DigitalOut reset_out;
00022 };
00023