#include <NexRadio.h>
|
static void | iterate (NexTouch **list, uint8_t pid, uint8_t cid, int32_t event) |
|
|
uint8_t | getObjPid (void) |
|
uint8_t | getObjCid (void) |
|
const char * | getObjName (void) |
|
NexRadio component.
Commonly, you want to do something after push and pop it. It is recommanded that only call NexTouch::attachPop to satisfy your purpose.
- Warning
- Please do not call NexTouch::attachPush on this component, even though you can.
NexRadio::NexRadio |
( |
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. |
Attach an callback function of pop touch event.
- Parameters
-
pop | - callback called with ptr when a pop touch event occurs. |
ptr | - parameter passed into pop[default:NULL]. |
- Returns
- none.
- Note
- If calling this method multiply, the last call is valid.
Attach an callback function of push touch event.
- Parameters
-
push | - callback called with ptr when a push touch event occurs. |
ptr | - parameter passed into push[default:NULL]. |
- Returns
- none.
- Note
- If calling this method multiply, the last call is valid.
void NexTouch::detachPop |
( |
void |
| ) |
|
|
inherited |
Detach an callback function.
- Returns
- none.
void NexTouch::detachPush |
( |
void |
| ) |
|
|
inherited |
Detach an callback function.
- Returns
- none.
uint32_t NexRadio::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 NexRadio::Get_font_color_pco |
( |
uint32_t * |
number | ) |
|
Get pco attribute of component
- Parameters
-
number | - buffer storing data retur |
- Returns
- the length of the data
uint32_t NexRadio::getValue |
( |
uint32_t * |
number | ) |
|
Get val 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 NexRadio::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 NexRadio::Set_font_color_pco |
( |
uint32_t |
number | ) |
|
Set pco attribute of component
- Parameters
-
number | - To set up the data |
- Returns
- true if success, false for failure
bool NexRadio::setValue |
( |
uint32_t |
number | ) |
|
Set val attribute of component
- Parameters
-
number | - To set up the data |
- Returns
- true if success, false for failure