/QMK-Groundstation/branches/libMK/libMK/Communication.h |
---|
0,0 → 1,22 |
#ifndef COMMUNICATION_H |
#define COMMUNICATION_H |
/** |
* communication interface for Mikrokopter (MK) USART connection |
*/ |
class Communication{ |
protected: |
bool connected; |
public: |
//connect to MK |
virtual void connect_MK(char *) {}; |
//send command to MK |
virtual void send_cmd(char, int, char[150],unsigned int, bool) {}; |
virtual void stop_resend() {}; |
virtual void received_data(char *) {}; |
void connection_established(); |
void connection_lost(); |
bool is_connected(); |
}; |
#endif |