change a little(NexButton->NexTimer)

Signed-off-by: xianminghuang <xianming.huang@itead.cc>
This commit is contained in:
xianminghuang
2015-08-26 17:06:13 +08:00
parent 18860052b5
commit bbcf8cb894
2 changed files with 22 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
/**
* @file NexButton.cpp
* @file NexTimer.cpp
*
* The implementation of class NexTimer.
*
@@ -30,7 +30,6 @@ void NexTimer::detachTimer(void)
NexTouch::detachPop();
}
bool NexTimer::getCycle(uint32_t *number)
{
String cmd = String("get ");
@@ -59,7 +58,6 @@ bool NexTimer::enable(void)
{
char buf[10] = {0};
String cmd;
utoa(1, buf, 10);
cmd += getObjName();
cmd += ".en=";
@@ -73,7 +71,6 @@ bool NexTimer::disable(void)
{
char buf[10] = {0};
String cmd;
utoa(0, buf, 10);
cmd += getObjName();
cmd += ".en=";

View File

@@ -1,7 +1,7 @@
/**
* @file NexButton.h
* @file NexTimer.h
*
* The definition of class NexButton.
* The definition of class NexTimer.
*
* @author huang xianming (email:<xianming.huang@itead.cc>)
* @date 2015/8/26
@@ -40,7 +40,7 @@ public: /* methods */
*/
NexTimer(uint8_t pid, uint8_t cid, const char *name);
/**
/**
* Attach an callback function of timer respond event.
*
* @param push - callback called with ptr when a timer respond event occurs.
@@ -67,23 +67,27 @@ public: /* methods */
* @retval false - failed.
*/
bool getCycle(uint32_t *number);
/**
* Set the value of timer cycle val.
*
* @param number - the value of timer cycle.
*
* @retval true - success.
* @retval false - failed.
*/
/**
* Set the value of timer cycle val.
*
* @param number - the value of timer cycle.
*
* @retval true - success.
* @retval false - failed.
*/
bool setCycle(uint32_t number);
/**
*contorl timer enable.
*/
/**
* contorl timer enable.
* @retval true - success.
* @retval false - failed.
*/
bool enable(void);
/**
*contorl timer disable.
*/
/**
* contorl timer disable.
* @retval true - success.
* @retval false - failed.
*/
bool disable(void);