Oscilloscope items class: these are the oscilloscopes added by the user.
More...
#include <oscilloscope.h>
|
enum | DataTypes {
dataTypeInvalid = 0
, dataTypeI8 = 1
, dataTypeU8 = 2
, dataTypeI16 = 3
,
dataTypeU16 = 4
, dataTypeI32 = 5
, dataTypeU32 = 6
, dataTypeI64 = 7
,
dataTypeU64 = 8
, dataTypeDouble = 9
, dataTypeFloat = 10
, dataTypeStringZ = 11
,
dataTypeBool = 12
, dataTypeBit = 13
} |
| Data types list. More...
|
|
typedef UserOscilloscopeItem * | pUserOscilloscopeItem |
|
Oscilloscope items class: these are the oscilloscopes added by the user.
◆ pUserOscilloscopeItem
◆ DataTypes
Data types list.
Enumerator |
---|
dataTypeInvalid | Not valid.
|
dataTypeI8 | 8 bit signed integer
|
dataTypeU8 | 8 bit unsigned integer
|
dataTypeI16 | 16 bit signed integer
|
dataTypeU16 | 16 bit unsigned integer
|
dataTypeI32 | 32 bit signed integer
|
dataTypeU32 | 32 bit unsigned integer
|
dataTypeI64 | 64 bit signed integer
|
dataTypeU64 | 64 bit unsigned integer
|
dataTypeDouble | Double precision floating point.
|
dataTypeFloat | Single precision floating point.
|
dataTypeStringZ | Null terminated string.
|
dataTypeBool | Boolean.
|
dataTypeBit | Bit.
|
◆ UserOscilloscopeItem()
Default class constructor.
◆ ~UserOscilloscopeItem()
◆ aIndex()
uint32_t aIndex |
( |
| ) |
const |
Get the axis index.
- Returns
- The parameter value
◆ bit()
Get the bit index.
- Returns
- The parameter value
◆ dataType()
Get the data type (DataTypes)
- Returns
- The parameter value
◆ fromVariable()
◆ getDataTypeFromBase()
static DataTypes getDataTypeFromBase |
( |
int | baseType | ) |
|
|
static |
◆ index()
Get the item index.
- Returns
- The parameter value
◆ name()
◆ repeat()
uint32_t repeat |
( |
| ) |
const |
Get the repetitions number.
- Returns
- The parameter value
◆ setAIndex()
void setAIndex |
( |
uint32_t | value | ) |
|
Set the axis index.
- Parameters
-
◆ setBit()
void setBit |
( |
uint32_t | value | ) |
|
Set the bit index.
- Parameters
-
◆ setDataType()
◆ setIndex()
void setIndex |
( |
uint32_t | value | ) |
|
Set the item index.
- Parameters
-
◆ setName()
void setName |
( |
const String & | value | ) |
|
◆ setRepeat()
void setRepeat |
( |
uint32_t | value | ) |
|
Set the repetitions number.
- Parameters
-
◆ setSize()
void setSize |
( |
uint32_t | value | ) |
|
Set the size of single item (bytes)
- Parameters
-
◆ setType()
◆ size()
Get the size of single item (bytes)
- Returns
- The parameter value
◆ type()