Logic Analyzer RPi
Logic Analyzer for the Raspberry Pi
 All Classes Files Functions Variables Pages
activity.h
1 //#include <stdio.h>
2 //#include <string.h>
3 //#include <stdlib.h>
4 //#include <mgl/mgl_fltk.h>
5 #include <mgl/mgl_zb.h>
6 //#include <unistd.h>
7 
8 #ifndef DEBUG_H
9 #define DEBUG_H
10 #include "debug.h"
11 #endif
12 
13 #ifndef LOGIC_INPUT
14 #define LOGIC_INPUT
15 #include "logic_input.h"
16 #endif
17 
19 
21 class activity: public mglDraw
22 {
23 public:
25 
26  activity(logic_input *data=NULL,uint8_t pin=0, logic_state=HIGHV);
30  void init(logic_input *data,uint8_t pin=0, logic_state=HIGHV);
32  ~activity();
34 
36  int Draw(mglGraph *gr,uint8_t subplot);
37 //private:
39  uint32_t nactive;
41  float *t_start;
43  float *t_end;
45 
46  uint8_t npin;
47 };