|
phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
|
One view element. label and xmlAttribute are common to all; the union holds the rest.
More...
#include <ElementData.h>
Public Member Functions | |
| ElementData () | |
| void | init (ElementType t) |
Activate the union member for t with its defaults (the builders call this). | |
| InputCommon * | input () |
| The input-channel part, if this element has one; nullptr otherwise. | |
| const InputCommon * | input () const |
Public Attributes | ||
| ElementType | type = EL_NONE | |
| const char * | label = nullptr | |
| const char * | xmlAttribute = nullptr | |
| raw attribute text appended verbatim (escape hatch) | ||
| uint8_t | visibilityChannel = 0 | |
| input channel whose last value shows/hides the element | ||
| ErrorRecord | error | |
| union { | ||
| GraphData graph | ||
| ValueData value | ||
| EditData edit | ||
| SliderData slider | ||
| DropdownData dropdown | ||
| ToggleData toggle | ||
| ButtonData button | ||
| InfoData info | ||
| SeparatorData separator | ||
| }; | ||
One view element. label and xmlAttribute are common to all; the union holds the rest.
|
inline |
| void phyphox::ElementData::init | ( | ElementType | t | ) |
Activate the union member for t with its defaults (the builders call this).
| InputCommon * phyphox::ElementData::input | ( | ) |
The input-channel part, if this element has one; nullptr otherwise.
| const InputCommon * phyphox::ElementData::input | ( | ) | const |
| union { ... } phyphox::ElementData |
| ButtonData phyphox::ElementData::button |
| DropdownData phyphox::ElementData::dropdown |
| EditData phyphox::ElementData::edit |
| ErrorRecord phyphox::ElementData::error |
| GraphData phyphox::ElementData::graph |
| InfoData phyphox::ElementData::info |
| const char* phyphox::ElementData::label = nullptr |
| SeparatorData phyphox::ElementData::separator |
| SliderData phyphox::ElementData::slider |
| ToggleData phyphox::ElementData::toggle |
| ElementType phyphox::ElementData::type = EL_NONE |
| ValueData phyphox::ElementData::value |
| uint8_t phyphox::ElementData::visibilityChannel = 0 |
input channel whose last value shows/hides the element
| const char* phyphox::ElementData::xmlAttribute = nullptr |
raw attribute text appended verbatim (escape hatch)