Minimale Veränderungen in Btbee; Die Datenübertragung funktioniert nicht hunderprozentig, v.a. wenn mehrere Bytes übertragen werden.
Fork of btbee by
btbee.h@6:cf8611463f79, 2016-06-28 (annotated)
- Committer:
- friedrich_h
- Date:
- Tue Jun 28 09:23:51 2016 +0000
- Revision:
- 6:cf8611463f79
- Parent:
- 2:12c38a710982
C++-Code f?r die LNDW 2016;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ngoldin | 0:e7cb710c8900 | 1 | #include "mbed.h" |
ngoldin | 0:e7cb710c8900 | 2 | #include "platform.h" |
friedrich_h | 6:cf8611463f79 | 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 |
friedrich_h | 6:cf8611463f79 | 7 | |
friedrich_h | 6:cf8611463f79 | 8 | // this is a test comment |
ngoldin | 0:e7cb710c8900 | 9 | class btbee: public Serial{ |
ngoldin | 0:e7cb710c8900 | 10 | public: |
ngoldin | 0:e7cb710c8900 | 11 | btbee(PinName respin, PinName tx, PinName rx); |
ngoldin | 0:e7cb710c8900 | 12 | btbee(void); |
ngoldin | 0:e7cb710c8900 | 13 | void reset(void); |
ngoldin | 2:12c38a710982 | 14 | void at_baud(void); |
ngoldin | 2:12c38a710982 | 15 | void factory_baud(void); |
ngoldin | 2:12c38a710982 | 16 | void default_baud(void); |
ngoldin | 1:56f437e4d9e0 | 17 | int read_all(char*,const int, int*); |
friedrich_h | 6:cf8611463f79 | 18 | int read_line(char*,const int, int*); |
friedrich_h | 6:cf8611463f79 | 19 | |
ngoldin | 0:e7cb710c8900 | 20 | protected: |
ngoldin | 0:e7cb710c8900 | 21 | DigitalOut reset_out; |
friedrich_h | 6:cf8611463f79 | 22 | }; |
friedrich_h | 6:cf8611463f79 | 23 |