Logic Analyzer RPi
Logic Analyzer for the Raspberry Pi
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
message Class Reference

Class to handle decoded information. More...

#include <message.h>

Public Member Functions

 message (const binary *data=NULL, const char label[30]="", float t0=0, float tmessage=0, char color='w')
 Constructor.
void init (const binary *data, const char label[30]="", float t0=0, float tmessage=0, char color='w')
 Initialize the message from parameters:
int Draw (mglGraph *gr)
 Draw the message.

Public Attributes

binary data
 object representing the message (subset of acquired binary data).
uint8_t pin
 subplot of the message
uint8_t npin
 total number of subplot
char label [30]
 string representing the message (Drawn string).
float t0
 acquisition time when message started.
float tmessage
 duration of the message.
char color
 color of the message.

Detailed Description

Class to handle decoded information.

Constructor & Destructor Documentation

message::message ( const binary data = NULL,
const char  label[30] = "",
float  t0 = 0,
float  tmessage = 0,
char  color = 'w' 
)

Constructor.

call init() if data is not NULL

See Also
init()

Member Function Documentation

int message::Draw ( mglGraph *  gr)

Draw the message.

Parameters
grpointer to a mglGraph object The subplot on which the message belongs to is taken from this->pin
void message::init ( const binary data,
const char  label[30] = "",
float  t0 = 0,
float  tmessage = 0,
char  color = 'w' 
)

Initialize the message from parameters:

Parameters
dataobject representing the message (subset of acquired binary data).
labelstring representing the message (Drawn string).
t0acquisition time in seconds of the beginning of the message.
tmessageduration of the message in seconds.
colorchar giving the color of the message. this->pin and this->npin are taken from data
See Also
binary

The documentation for this class was generated from the following files: