FM-test
Dependencies: MODSERIAL mbed-rtos mbed
Fork of Master by
Diff: bluetooth.h
- Revision:
- 3:12e1f116ea42
- Parent:
- 2:c610e1a7fbcd
- Child:
- 4:aaaadb45cbd9
--- a/bluetooth.h Thu Sep 11 15:09:05 2014 +0000 +++ b/bluetooth.h Fri Sep 12 05:11:39 2014 +0000 @@ -6,14 +6,28 @@ #define BT_MASTER 0 #define BT_SLAVE -1 +#define SYNC_SENSOR 0x10 +#define SYNC_MIC 0x11 +#define SYNC_MOTOR 0x20 +#define SYNC_FM 0x21 + + + +#define PACK_SIZE 20 + typedef union _cvt{ - char byte[8]; - int in[2]; - float fl[2]; + char byte[4]; + int in; + float fl; } Cvt; void btSetup(int); //setup(role) role:BT_MASTER or BT_SLAVE +void sync(char, char*, float*); //SYN(option,char_data,float_data); only for MASTER + +void slaveRecieve( void ); +void receiveSensor(float*, float*); + //void btLoop(int); //btLoop(role) role:BT_MASTER or BT_SLAVE #endif \ No newline at end of file