FM-test
Dependencies: MODSERIAL mbed-rtos mbed
Fork of Master by
bluetooth.h@0:4f07ba929908, 2014-09-11 (annotated)
- Committer:
- 9uS7
- Date:
- Thu Sep 11 10:15:34 2014 +0000
- Revision:
- 0:4f07ba929908
- Child:
- 1:e1cfb5850088
main_program
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
9uS7 | 0:4f07ba929908 | 1 | #ifndef _INC_MY_BLUETOOTH |
9uS7 | 0:4f07ba929908 | 2 | #define _INC_MY_BLUETOOTH |
9uS7 | 0:4f07ba929908 | 3 | |
9uS7 | 0:4f07ba929908 | 4 | #include "mbed.h" |
9uS7 | 0:4f07ba929908 | 5 | |
9uS7 | 0:4f07ba929908 | 6 | typedef union _cvt{ |
9uS7 | 0:4f07ba929908 | 7 | char byte[4]; |
9uS7 | 0:4f07ba929908 | 8 | int in; |
9uS7 | 0:4f07ba929908 | 9 | float fl; |
9uS7 | 0:4f07ba929908 | 10 | } Cvt; |
9uS7 | 0:4f07ba929908 | 11 | |
9uS7 | 0:4f07ba929908 | 12 | Serial btMaster(p13, p14); // tx, rx |
9uS7 | 0:4f07ba929908 | 13 | |
9uS7 | 0:4f07ba929908 | 14 | void btSetupMaster(void); |
9uS7 | 0:4f07ba929908 | 15 | void btSetupSlave(void); |
9uS7 | 0:4f07ba929908 | 16 | |
9uS7 | 0:4f07ba929908 | 17 | #endif |