Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
NexTimer.h
1 
17 #ifndef __NEXTIMER_H__
18 #define __NEXTIMER_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
34 class NexTimer: public NexTouch
35 {
36 public: /* methods */
37 
41  NexTimer(uint8_t pid, uint8_t cid, const char *name);
42 
52  void attachTimer(NexTouchEventCb timer, void *ptr = NULL);
53 
59  void detachTimer(void);
60 
69  bool getCycle(uint32_t *number);
70 
81  bool setCycle(uint32_t number);
82 
89  bool enable(void);
90 
97  bool disable(void);
98 
105  uint32_t Get_cycle_tim(uint32_t *number);
106 
113  bool Set_cycle_tim(uint32_t number);
114 };
120 #endif /* #ifndef __NEXTIMER_H__ */
Definition: NexTouch.h:53
void detachTimer(void)
bool setCycle(uint32_t number)
NexTimer(uint8_t pid, uint8_t cid, const char *name)
void attachTimer(NexTouchEventCb timer, void *ptr=NULL)
Definition: NexTimer.h:34
bool getCycle(uint32_t *number)
void(* NexTouchEventCb)(void *ptr)
Definition: NexTouch.h:45
bool disable(void)
uint32_t Get_cycle_tim(uint32_t *number)
bool enable(void)
bool Set_cycle_tim(uint32_t number)