Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
NexWaveform Class Reference

#include <NexWaveform.h>

Inheritance diagram for NexWaveform:
NexObject

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)
 

Detailed Description

NexWaveform component.

Constructor & Destructor Documentation

NexWaveform::NexWaveform ( uint8_t  pid,
uint8_t  cid,
const char *  name 
)

Constructor.

Parameters
pid- page id.
cid- component id.
name- pointer to an unique name in range of all components.

Member Function Documentation

bool NexWaveform::addValue ( uint8_t  ch,
uint8_t  number 
)

Add value to show.

Parameters
ch- channel of waveform(0-3).
number- the value of waveform.
Return values
true- success.
false- failed.
uint32_t NexWaveform::Get_background_color_bco ( uint32_t *  number)

Get bco attribute of component

Parameters
number- buffer storing data retur
Returns
the length of the data
uint32_t NexWaveform::Get_channel_0_color_pco0 ( uint32_t *  number)

Get pco0 attribute of component

Parameters
number- buffer storing data retur
Returns
the length of the data
uint32_t NexWaveform::Get_grid_color_gdc ( uint32_t *  number)

Get gdc attribute of component

Parameters
number- buffer storing data retur
Returns
the length of the data
uint32_t NexWaveform::Get_grid_height_gdh ( uint32_t *  number)

Get gdh attribute of component

Parameters
number- buffer storing data retur
Returns
the length of the data
uint32_t NexWaveform::Get_grid_width_gdw ( uint32_t *  number)

Get gdw attribute of component

Parameters
number- buffer storing data retur
Returns
the length of the data
void NexObject::printObjInfo ( void  )
inherited

Print current object'address, page id, component id and name.

Warning
this method does nothing, unless debug message enabled.
bool NexWaveform::Set_background_color_bco ( uint32_t  number)

Set bco attribute of component

Parameters
number- To set up the data
Returns
true if success, false for failure
bool NexWaveform::Set_channel_0_color_pco0 ( uint32_t  number)

Set pco0 attribute of component

Parameters
number- To set up the data
Returns
true if success, false for failure
bool NexWaveform::Set_grid_color_gdc ( uint32_t  number)

Set gdc attribute of component

Parameters
number- To set up the data
Returns
true if success, false for failure
bool NexWaveform::Set_grid_height_gdh ( uint32_t  number)

Set gdh attribute of component

Parameters
number- To set up the data
Returns
true if success, false for failure
bool NexWaveform::Set_grid_width_gdw ( uint32_t  number)

Set gdw attribute of component

Parameters
number- To set up the data
Returns
true if success, false for failure