My Project
 All Classes Files Functions Typedefs Groups Pages
NexVariable.h
1 
17 #ifndef __NEXVARRIABLE_H__
18 #define __NEXVARRIABLE_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
35 class NexVariable: public NexTouch
36 {
37 public: /* methods */
38 
42  NexVariable(uint8_t pid, uint8_t cid, const char *name);
43 
51  uint32_t getText(char *buffer, uint32_t len);
52 
59  bool setText(const char *buffer);
60 
61  /*
62  * Get val attribute of component
63  *
64  * @param number - buffer storing data retur
65  * @return the length of the data
66  */
67 
68  uint32_t getValue(uint32_t *number);
69 
70  /*
71  * Set val attribute of component
72  *
73  * @param number - To set up the data
74  * @return true if success, false for failure
75  */
76 
77  bool setValue(uint32_t number);
78 
79 };
85 #endif /* #ifndef __NEXVARRIABLE_H__*/
Definition: NexVariable.h:35
bool setText(const char *buffer)
Definition: NexVariable.cpp:55
uint32_t getText(char *buffer, uint32_t len)
Definition: NexVariable.cpp:45
NexVariable(uint8_t pid, uint8_t cid, const char *name)
Definition: NexVariable.cpp:17
Definition: NexTouch.h:53