mFrame
載入中...
搜尋中...
無符合項目
CorePulseWidthChannel.h
1
7#ifndef CORE_153A4830_9F0E_43C3_B7CB_86B4AA2233F1
8#define CORE_153A4830_9F0E_43C3_B7CB_86B4AA2233F1
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "hal.h"
16#include "mframe.h"
17
18//----------------------------------------------------------------------------------------
19#include "./CorePulseWidth.h"
20
21/* ***************************************************************************************
22 * Namespace
23 */
24namespace core {
25 class CorePulseWidthChannel;
26} // namespace core
27
28/* ***************************************************************************************
29 * Class/Interface/Struct/Enum
30 */
33 /* *************************************************************************************
34 * Variable
35 */
36 public:
38 const CorePulseWidth::Channel vChannel;
39
40 /* *************************************************************************************
41 * Abstract Method
42 */
43
44 /* *************************************************************************************
45 * Construct Method
46 */
47 public:
52 CorePulseWidthChannel(core::CorePulseWidth& port, CorePulseWidth::Channel channel);
53
58 virtual ~CorePulseWidthChannel(void) override;
59
60 /* *************************************************************************************
61 * Operator Method
62 */
63
64 /* *************************************************************************************
65 * Public Method <Override> - hal::counter::PulseWidthChannel
66 */
67 public:
68 virtual bool setPercent(float percent) override;
69
70 virtual bool getPeriod(float& result) override;
71
72 /* *************************************************************************************
73 * Public Method
74 */
75
76 /* *************************************************************************************
77 * Protected Method
78 */
79
80 /* *************************************************************************************
81 * Private Method
82 */
83
84 /* *************************************************************************************
85 * Static Variable
86 */
87
88 /* *************************************************************************************
89 * Static Method
90 */
91};
92
93/* ***************************************************************************************
94 * End of file
95 */
96
97#endif /* CORE_153A4830_9F0E_43C3_B7CB_86B4AA2233F1 */
Definition CorePulseWidthChannel.h:32
virtual bool getPeriod(float &result) override
取得脈寬週期
virtual ~CorePulseWidthChannel(void) override
Destroy the object.
virtual bool setPercent(float percent) override
設定脈寬百分比
CorePulseWidthChannel(core::CorePulseWidth &port, CorePulseWidth::Channel channel)
Construct a new object.
Definition CorePulseWidth.h:31
Definition Object.h:34
Definition glikey/Mask.h:22
[Interface] 脈寬計數器通道介面定義
Definition PulseWidthChannel.h:32