Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of IEEE_14_Freescale by
droidBT.h
- Committer:
- soonerbot
- Date:
- 2014-03-11
- Revision:
- 16:6d900f687c18
File content as of revision 16:6d900f687c18:
/*
* File: droidBT.h
* Author: Shawn Swatek
* Originated: Spring 2013
* Revised: 3/29/13
*/
#ifndef __DROIDBT__
#define __DROIDBT__
#include "mbed.h"
#define BTBUFSIZE 1000
#define DCHUNKSIZE 100
class droidBT{
private:
volatile int BTBuffer[BTBUFSIZE];
volatile int BTStart;
volatile int BTEnd;
volatile int DataChunk[DCHUNKSIZE][17];
volatile int DCStart;
volatile int DCEnd;
Serial droid;
void BTEnqueue();
public:
int clearData();
int getData(int cmd, int* dest);
int sendCmd(int cmd, int* info, int len);
int procBuf(int cmd);
droidBT(PinName tx, PinName rx);
int bufSize();
int setState(char state);
int getAck(int hashetc);
};
#endif
