mFrame
載入中...
搜尋中...
無符合項目
VirtualAnalogInputPin.h
1
7#ifndef HAL_5D254320_94DB_4B27_879F_9BDACF1C3A0E
8#define HAL_5D254320_94DB_4B27_879F_9BDACF1C3A0E
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "./mframe.h"
16
17//----------------------------------------------------------------------------------------
18#include "./../analog/AnalogInputPin.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace hal::analog {
24 class VirtualAnalogInputPin;
25}
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
30
37 /* *************************************************************************************
38 * Variable
39 */
40
41 private:
42 int mLevel;
43 int mValue;
44
45 /* *************************************************************************************
46 * Abstract Method
47 */
48
49 /* *************************************************************************************
50 * Construct Method
51 */
52 public:
58
63 virtual ~VirtualAnalogInputPin(void) override;
64
65 /* *************************************************************************************
66 * Operator Method
67 */
68
69 /* *************************************************************************************
70 * Public Method <Override> - mframe::hal::AnalogInputPin
71 */
72 public:
73 virtual int read(void) override;
74
75 virtual int getConvertLevel(void) override;
76
77 /* *************************************************************************************
78 * Public Method
79 */
80 public:
86 virtual void setValue(int value);
87
93 virtual void setConvertLevel(int level);
94
95 /* *************************************************************************************
96 * Protected Method
97 */
98
99 /* *************************************************************************************
100 * Private Method
101 */
102
103 /* *************************************************************************************
104 * Static Variable
105 */
106
107 /* *************************************************************************************
108 * Static Method
109 */
110};
111
112/* ***************************************************************************************
113 * End of file
114 */
115
116#endif /* HAL_5D254320_94DB_4B27_879F_9BDACF1C3A0E */
類比輸入引腳模擬。
Definition VirtualAnalogInputPin.h:36
virtual int read(void) override
讀取類比訊號
virtual void setValue(int value)
Set the Value object.
VirtualAnalogInputPin(void)
Construct a new Virtual Analog Input Pin object.
virtual int getConvertLevel(void) override
取得 ADC 解析度
virtual void setConvertLevel(int level)
Set the Convert Level object.
virtual ~VirtualAnalogInputPin(void) override
Destroy the Virtual Analog Input Pin object.
Definition Object.h:34
Definition Ammeter.h:23
[Interface] 硬體抽象層,類比輸入訊號引腳
Definition AnalogInputPin.h:32