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.
Android.h
- Committer:
- maskas
- Date:
- 2018-01-09
- Revision:
- 2:aeecb6277fc7
- Parent:
- 1:6d9353593c3c
- Child:
- 3:36ff03cb6bab
File content as of revision 2:aeecb6277fc7:
#ifndef ANDROID_H
#define ANDROID_H
/**
* Includes
*/
#include "mbed.h"
#include<string>
#include "Carousel.h"
#include "MODSERIAL.h"
class Android {
public:
Android (PinName txPin, PinName rxPin, Carousel& carousel);
private:
MODSERIAL serial;
void onData(void);
void hearthBeat(void);
Ticker ticker;
DigitalOut myled;
Carousel& carousel;
void sendToAndroid(string message);
void processMessageBuffer();
void executeCommands();
void onMessage(MODSERIAL_IRQ_INFO *q);
};
#endif /* ANDROID_H */