FM-test
Dependencies: MODSERIAL mbed-rtos mbed
Fork of Master by
Diff: bluetooth.h
- Revision:
- 1:e1cfb5850088
- Parent:
- 0:4f07ba929908
- Child:
- 2:c610e1a7fbcd
diff -r 4f07ba929908 -r e1cfb5850088 bluetooth.h --- a/bluetooth.h Thu Sep 11 10:15:34 2014 +0000 +++ b/bluetooth.h Thu Sep 11 14:42:49 2014 +0000 @@ -3,15 +3,16 @@ #include "mbed.h" +#define BT_MASTER 0 +#define BT_SLAVE -1 + + typedef union _cvt{ - char byte[4]; - int in; - float fl; + char byte[8]; + int in[2]; + float fl[2]; } Cvt; -Serial btMaster(p13, p14); // tx, rx - -void btSetupMaster(void); -void btSetupSlave(void); +void btSetup(int); //setup(role) role:BT_MASTER or BT_SLAVE #endif \ No newline at end of file