jhuh
Bluetooth_HC05_LE_TRAME.h@4:f597583e8b55, 2017-03-19 (annotated)
- Committer:
- aure
- Date:
- Sun Mar 19 11:08:54 2017 +0000
- Revision:
- 4:f597583e8b55
- Parent:
- 2:7d02a128e1e3
vrapide
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aure | 0:092ac281a013 | 1 | #include "mbed.h" |
aure | 1:7cc085e87bb0 | 2 | |
aure | 0:092ac281a013 | 3 | |
aure | 2:7d02a128e1e3 | 4 | #define longueur_trame 4 |
aure | 2:7d02a128e1e3 | 5 | |
aure | 0:092ac281a013 | 6 | class Bluetooth_HC05_LE_TRAME |
aure | 0:092ac281a013 | 7 | { |
aure | 0:092ac281a013 | 8 | |
aure | 0:092ac281a013 | 9 | protected: |
aure | 0:092ac281a013 | 10 | char flush; |
aure | 2:7d02a128e1e3 | 11 | |
aure | 2:7d02a128e1e3 | 12 | char buf[longueur_trame]; |
aure | 2:7d02a128e1e3 | 13 | |
aure | 0:092ac281a013 | 14 | |
aure | 1:7cc085e87bb0 | 15 | |
aure | 1:7cc085e87bb0 | 16 | |
aure | 0:092ac281a013 | 17 | |
aure | 0:092ac281a013 | 18 | |
aure | 0:092ac281a013 | 19 | public: |
aure | 0:092ac281a013 | 20 | |
aure | 0:092ac281a013 | 21 | Bluetooth_HC05_LE_TRAME(); |
aure | 0:092ac281a013 | 22 | ~Bluetooth_HC05_LE_TRAME(); |
aure | 0:092ac281a013 | 23 | |
aure | 0:092ac281a013 | 24 | |
aure | 2:7d02a128e1e3 | 25 | |
aure | 0:092ac281a013 | 26 | void envoyer(char* envoi); |
aure | 2:7d02a128e1e3 | 27 | void recevoir(); |
aure | 2:7d02a128e1e3 | 28 | char * getBuf(); |
aure | 0:092ac281a013 | 29 | void resetBuffer(); |
aure | 1:7cc085e87bb0 | 30 | int donneesRecue(); |
aure | 4:f597583e8b55 | 31 | int getLongueurTrame(); |
aure | 0:092ac281a013 | 32 | |
aure | 0:092ac281a013 | 33 | |
aure | 0:092ac281a013 | 34 | |
aure | 0:092ac281a013 | 35 | }; |