phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
PhyphoxBleExperiment::Value Class Reference

#include <phyphoxBleExperiment.h>

Inheritance diagram for PhyphoxBleExperiment::Value:

Public Member Functions

 Value ()
 
 Value (const char *label, int channel=1)
 
void setPrecision (int)
 
void setUnit (const char *)
 
void setColor (const char *)
 
void setChannel (int)
 data channel 1…5 shown
 
void setSize (float)
 
void setFactor (float)
 
void setScientific (bool)
 
void addMap (float min, float max, const char *text)
 Show text instead of the number while min <= value <= max (D17); the first match wins.
 
void addMapBelow (float max, const char *text)
 
void addMapAbove (float min, const char *text)
 
void setMaps (int n, const float *mins, const float *maxs, const char *const texts[])
 
- Public Member Functions inherited from PhyphoxBleExperiment::Element
 Element (const Element &)=delete
 
Element & operator= (const Element &)=delete
 
virtual ~Element ()
 
virtual void setLabel (const char *)
 
void setXMLAttribute (const char *)
 Raw attribute text appended verbatim to the element's start tag, e.g.
 
void setVisibility (int inputChannel)
 Show the element only while the last value in that input channel is > 0 (a toggle's channel, typically).
 
phyphox::ElementData & data ()
 
const phyphox::ElementData & data () const
 
virtual bool isExportData () const
 

Public Attributes

phyphox::MapEntry inlineMaps [PHYPHOX_BLE_INLINE_OPTIONS]
 
const phyphox::MapEntry * mapsArray = nullptr
 reserved
 
const float * mapsMins = nullptr
 setMaps(): the caller's arrays, read at addExperiment
 
const float * mapsMaxs = nullptr
 
const char *const * mapsTexts = nullptr
 
uint8_t mapCount = 0
 
- Public Attributes inherited from PhyphoxBleExperiment::Element
Element * next = nullptr
 intrusive list link, set by View::addElement()
 
View * owner = nullptr
 the view whose list holds this object (set by addElement)
 
const Element * aliasOf = nullptr
 An element added to a second view is represented there by a small heap-allocated alias that points back at the original — the store reads the original's data.
 

Additional Inherited Members

- Protected Member Functions inherited from PhyphoxBleExperiment::Element
 Element (phyphox::ElementType t)
 
- Protected Attributes inherited from PhyphoxBleExperiment::Element
phyphox::ElementData data_
 

Constructor & Destructor Documentation

◆ Value() [1/2]

PhyphoxBleExperiment::Value::Value ( )
inline

◆ Value() [2/2]

PhyphoxBleExperiment::Value::Value ( const char *  label,
int  channel = 1 
)
inlineexplicit

Member Function Documentation

◆ addMap()

void PhyphoxBleExperiment::Value::addMap ( float  min,
float  max,
const char *  text 
)

Show text instead of the number while min <= value <= max (D17); the first match wins.

Up to PHYPHOX_BLE_INLINE_OPTIONS entries this way; setMaps() takes any number.

◆ addMapAbove()

void PhyphoxBleExperiment::Value::addMapAbove ( float  min,
const char *  text 
)

◆ addMapBelow()

void PhyphoxBleExperiment::Value::addMapBelow ( float  max,
const char *  text 
)

◆ setChannel()

void PhyphoxBleExperiment::Value::setChannel ( int  )

data channel 1…5 shown

◆ setColor()

void PhyphoxBleExperiment::Value::setColor ( const char *  )

◆ setFactor()

void PhyphoxBleExperiment::Value::setFactor ( float  )

◆ setMaps()

void PhyphoxBleExperiment::Value::setMaps ( int  n,
const float *  mins,
const float *  maxs,
const char *const  texts[] 
)

◆ setPrecision()

void PhyphoxBleExperiment::Value::setPrecision ( int  )

◆ setScientific()

void PhyphoxBleExperiment::Value::setScientific ( bool  )

◆ setSize()

void PhyphoxBleExperiment::Value::setSize ( float  )

◆ setUnit()

void PhyphoxBleExperiment::Value::setUnit ( const char *  )

Member Data Documentation

◆ inlineMaps

phyphox::MapEntry PhyphoxBleExperiment::Value::inlineMaps[PHYPHOX_BLE_INLINE_OPTIONS]

◆ mapCount

uint8_t PhyphoxBleExperiment::Value::mapCount = 0

◆ mapsArray

const phyphox::MapEntry* PhyphoxBleExperiment::Value::mapsArray = nullptr

reserved

◆ mapsMaxs

const float* PhyphoxBleExperiment::Value::mapsMaxs = nullptr

◆ mapsMins

const float* PhyphoxBleExperiment::Value::mapsMins = nullptr

setMaps(): the caller's arrays, read at addExperiment

◆ mapsTexts

const char* const* PhyphoxBleExperiment::Value::mapsTexts = nullptr

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