35 String cmd = String(
"get ");
38 sendCommand(cmd.c_str());
39 return recvRetNumber(number);
50 utoa(number, buf, 10);
55 sendCommand(cmd.c_str());
56 return recvRetCommandFinished();
69 sendCommand(cmd.c_str());
70 return recvRetCommandFinished();
82 sendCommand(cmd.c_str());
83 return recvRetCommandFinished();
88 String cmd = String(
"get ");
91 sendCommand(cmd.c_str());
92 return recvRetNumber(number);
103 utoa(number, buf, 10);
107 sendCommand(cmd.c_str());
112 sendCommand(cmd.c_str());
113 return recvRetCommandFinished();
uint32_t Get_cycle_tim(uint32_t *number)
Get tim attribute of component.
void detachPop(void)
Detach an callback function.
bool enable(void)
contorl timer enable.
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Attach an callback function of pop touch event.
void(* NexTouchEventCb)(void *ptr)
Type of callback funciton when an touch event occurs.
void detachTimer(void)
Detach an callback function.
NexTimer(uint8_t pid, uint8_t cid, const char *name)
Constructor.
bool getCycle(uint32_t *number)
Get the value of timer cycle val.
bool Set_cycle_tim(uint32_t number)
Set tim attribute of component.
The definition of class NexTimer.
bool setCycle(uint32_t number)
Set the value of timer cycle val.
void attachTimer(NexTouchEventCb timer, void *ptr=NULL)
Attach an callback function of timer respond event.
Father class of the components with touch events.
bool disable(void)
contorl timer disable.