Logic Analyzer RPi
Logic Analyzer for the Raspberry Pi
 All Classes Files Functions Variables Pages
message.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 BINARY
9 #define BINARY
10 #include "binary.h"
11 #endif
12 
13 #ifndef DEBUG_H
14 #define DEBUG_H
15 #include "debug.h"
16 #endif
17 
19 class message: public mglDraw
20 {
21 public:
23 
25  message(const binary *data=NULL,const char label[30]="",float t0=0,float tmessage=0,char color='w');
27 
34  void init(const binary *data,const char label[30]="",float t0=0,float tmessage=0,char color='w');
36 
38  int Draw(mglGraph *gr);
39 //private:
43  uint8_t pin;
45  uint8_t npin;
47  char label[30];
49  float t0;
51  float tmessage;
53  char color;
54 };