dd

Dependencies:   BufferedSerial FastAnalogIn FastPWM mbed SHT75

Committer:
sbh9428
Date:
Mon Jul 11 01:05:52 2016 +0000
Revision:
10:c751a0e8b7f9
Parent:
1:5c42ec7f1aeb
fff;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sbh9428 0:9bfc4aea91e2 1 /*
sbh9428 0:9bfc4aea91e2 2 * commandt.h
sbh9428 0:9bfc4aea91e2 3 *
sbh9428 0:9bfc4aea91e2 4 * Created on: 2016. 2. 19.
sbh9428 0:9bfc4aea91e2 5 * Author: sbh9428
sbh9428 0:9bfc4aea91e2 6 */
sbh9428 0:9bfc4aea91e2 7
sbh9428 0:9bfc4aea91e2 8 #ifndef COMMANDT_H_
sbh9428 0:9bfc4aea91e2 9 #define COMMANDT_H_
sbh9428 0:9bfc4aea91e2 10
sbh9428 0:9bfc4aea91e2 11 #include "BufferedSerial.h"
sbh9428 0:9bfc4aea91e2 12 #include "controlt.h"
sbh9428 0:9bfc4aea91e2 13
sbh9428 0:9bfc4aea91e2 14 class command_t {
sbh9428 0:9bfc4aea91e2 15 public:
sbh9428 0:9bfc4aea91e2 16 void clear_data();
sbh9428 0:9bfc4aea91e2 17 void parse();
sbh9428 0:9bfc4aea91e2 18 void get_data();
sbh9428 0:9bfc4aea91e2 19 void refreshPWM();
sbh9428 0:9bfc4aea91e2 20 double asci_to_bin(int *start);
sbh9428 0:9bfc4aea91e2 21
sbh9428 0:9bfc4aea91e2 22 command_t();
sbh9428 0:9bfc4aea91e2 23 command_t(BufferedSerial* _pc, control_t* _control);
sbh9428 0:9bfc4aea91e2 24 virtual ~command_t();
sbh9428 0:9bfc4aea91e2 25 private:
sbh9428 0:9bfc4aea91e2 26 int count;
sbh9428 1:5c42ec7f1aeb 27 int data[30];
sbh9428 1:5c42ec7f1aeb 28 int time;
sbh9428 0:9bfc4aea91e2 29
sbh9428 0:9bfc4aea91e2 30 BufferedSerial* pc;
sbh9428 0:9bfc4aea91e2 31 control_t *control;
sbh9428 0:9bfc4aea91e2 32 };
sbh9428 0:9bfc4aea91e2 33
sbh9428 0:9bfc4aea91e2 34
sbh9428 0:9bfc4aea91e2 35 #endif /* COMMANDT_H_ */
sbh9428 0:9bfc4aea91e2 36