Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
#include <NexWaveform.h>
Public Member Functions | |
NexWaveform (uint8_t pid, uint8_t cid, const char *name) | |
bool | addValue (uint8_t ch, uint8_t number) |
uint32_t | Get_background_color_bco (uint32_t *number) |
bool | Set_background_color_bco (uint32_t number) |
uint32_t | Get_grid_color_gdc (uint32_t *number) |
bool | Set_grid_color_gdc (uint32_t number) |
uint32_t | Get_grid_width_gdw (uint32_t *number) |
bool | Set_grid_width_gdw (uint32_t number) |
uint32_t | Get_grid_height_gdh (uint32_t *number) |
bool | Set_grid_height_gdh (uint32_t number) |
uint32_t | Get_channel_0_color_pco0 (uint32_t *number) |
bool | Set_channel_0_color_pco0 (uint32_t number) |
void | printObjInfo (void) |
Protected Member Functions | |
uint8_t | getObjPid (void) |
uint8_t | getObjCid (void) |
const char * | getObjName (void) |
NexWaveform component.
NexWaveform::NexWaveform | ( | uint8_t | pid, |
uint8_t | cid, | ||
const char * | name | ||
) |
Constructor.
pid | - page id. |
cid | - component id. |
name | - pointer to an unique name in range of all components. |
bool NexWaveform::addValue | ( | uint8_t | ch, |
uint8_t | number | ||
) |
Add value to show.
ch | - channel of waveform(0-3). |
number | - the value of waveform. |
true | - success. |
false | - failed. |
uint32_t NexWaveform::Get_background_color_bco | ( | uint32_t * | number | ) |
Get bco attribute of component
number | - buffer storing data retur |
uint32_t NexWaveform::Get_channel_0_color_pco0 | ( | uint32_t * | number | ) |
Get pco0 attribute of component
number | - buffer storing data retur |
uint32_t NexWaveform::Get_grid_color_gdc | ( | uint32_t * | number | ) |
Get gdc attribute of component
number | - buffer storing data retur |
uint32_t NexWaveform::Get_grid_height_gdh | ( | uint32_t * | number | ) |
Get gdh attribute of component
number | - buffer storing data retur |
uint32_t NexWaveform::Get_grid_width_gdw | ( | uint32_t * | number | ) |
Get gdw attribute of component
number | - buffer storing data retur |
|
inherited |
Print current object'address, page id, component id and name.
bool NexWaveform::Set_background_color_bco | ( | uint32_t | number | ) |
Set bco attribute of component
number | - To set up the data |
bool NexWaveform::Set_channel_0_color_pco0 | ( | uint32_t | number | ) |
Set pco0 attribute of component
number | - To set up the data |
bool NexWaveform::Set_grid_color_gdc | ( | uint32_t | number | ) |
Set gdc attribute of component
number | - To set up the data |
bool NexWaveform::Set_grid_height_gdh | ( | uint32_t | number | ) |
Set gdh attribute of component
number | - To set up the data |
bool NexWaveform::Set_grid_width_gdw | ( | uint32_t | number | ) |
Set gdw attribute of component
number | - To set up the data |