class getting LTH (Low To High) and HTL (High To Low) transitions in logic_input
More...
#include <transition.h>
Detailed Description
class getting LTH (Low To High) and HTL (High To Low) transitions in logic_input
Constructor & Destructor Documentation
| transition::transition |
( |
logic_input * |
data = NULL, |
|
|
uint8_t |
pin_clock = 1, |
|
|
activity * |
cs = NULL |
|
) |
| |
Constructor.
Calls init() if data is not NULL.
- See Also
- init()
Member Function Documentation
| int transition::Draw |
( |
mglGraph * |
gr | ) |
|
Draw statistics on period transitions.
- Parameters
-
| gr | pointer to a mglData object |
| int transition::Draw |
( |
mglGraph * |
gr, |
|
|
char |
sign, |
|
|
uint8_t |
subplot |
|
) |
| |
Draw vertical arrows at same times as transitions.
- Parameters
-
| gr | pointer to a mglGraph object. |
| sign | sign of the transition:
- \'u\' for getting stats about LTH transitions.
- \'d\' for getting stats about HTL transitions.
|
| subplot | subplot index where to draw. |
| void transition::find_transition |
( |
logic_input * |
data, |
|
|
char |
sign = 'u' |
|
) |
| |
find the transitions from a logic_input object
- Parameters
-
| data | logic_input source. |
| sign | sign of the transition:
- \'u\' for getting stats about LTH transitions.
- \'d\' for getting stats about HTL transitions.
|
| float transition::GetStats |
( |
activity * |
cs, |
|
|
char |
sign = 'u' |
|
) |
| |
Get statistics on transition period (min, average and max)
- Parameters
-
| cs | pointer to an activity. Inactive periods are discarded. |
| sign | sign of the transition:
- \'u\' for getting stats about LTH transitions.
- \'d\' for getting stats about HTL transitions.
|
Member Data Documentation
| float transition::t_first_activity |
time in s where to center the statistic display
initialized at the middle of the first active period
The documentation for this class was generated from the following files: