bluetooth

Dependents:   newlib

Fork of btbee by Nikolas Goldin

Committer:
jomkippur
Date:
Fri May 17 11:14:20 2013 +0000
Revision:
3:6d8cebc874fb
Parent:
2:12c38a710982
whatever

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ngoldin 0:e7cb710c8900 1 #include "mbed.h"
ngoldin 0:e7cb710c8900 2 #include "platform.h"
ngoldin 0:e7cb710c8900 3
ngoldin 2:12c38a710982 4 #define FACTORY_BAUD 9600
ngoldin 2:12c38a710982 5 #define DEFAULT_BAUD 115200
ngoldin 2:12c38a710982 6 #define AT_BAUD 38400
ngoldin 2:12c38a710982 7
ngoldin 0:e7cb710c8900 8 class btbee: public Serial{
ngoldin 0:e7cb710c8900 9 public:
ngoldin 0:e7cb710c8900 10 btbee(PinName respin, PinName tx, PinName rx);
ngoldin 0:e7cb710c8900 11 btbee(void);
jomkippur 3:6d8cebc874fb 12
jomkippur 3:6d8cebc874fb 13 // functions
ngoldin 0:e7cb710c8900 14 void reset(void);
ngoldin 2:12c38a710982 15 void at_baud(void);
ngoldin 2:12c38a710982 16 void factory_baud(void);
ngoldin 2:12c38a710982 17 void default_baud(void);
jomkippur 3:6d8cebc874fb 18 int read_all(char*,const int, int*);
ngoldin 0:e7cb710c8900 19
ngoldin 0:e7cb710c8900 20 protected:
ngoldin 0:e7cb710c8900 21 DigitalOut reset_out;
ngoldin 0:e7cb710c8900 22 };