Mangirdas Skripka / Android

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 */