dd

Dependencies:   BufferedSerial FastAnalogIn FastPWM mbed SHT75

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers commandt.h Source File

commandt.h

00001 /*
00002  * commandt.h
00003  *
00004  *  Created on: 2016. 2. 19.
00005  *      Author: sbh9428
00006  */
00007 
00008 #ifndef COMMANDT_H_
00009 #define COMMANDT_H_
00010 
00011 #include "BufferedSerial.h"
00012 #include "controlt.h"
00013 
00014 class command_t {
00015 public:
00016     void clear_data();
00017     void parse();
00018     void get_data();
00019     void refreshPWM();
00020     double asci_to_bin(int *start);
00021 
00022     command_t();
00023     command_t(BufferedSerial* _pc, control_t* _control);
00024     virtual ~command_t();
00025 private:
00026     int count;
00027     int data[30];
00028     int time;
00029 
00030     BufferedSerial* pc;
00031     control_t *control;
00032 };
00033 
00034 
00035 #endif /* COMMANDT_H_ */
00036