mFrame
載入中...
搜尋中...
無符合項目
hal::counter::PulseWidthChannel 結構 參考文件abstract

[Interface] 脈寬計數器通道介面定義 更多...

#include <PulseWidthChannel.h>

類別hal::counter::PulseWidthChannel的繼承圖:
mframe::lang::Interface core::CorePulseWidthChannel

公開方法(Public Methods)

virtual bool setPercent (float percent) override
 設定脈寬百分比
 
virtual bool getPeriod (float &result) override
 取得脈寬週期
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Interface
virtual ~Interface (void)=default
 Destroy the struct object.
 
virtual mframe::lang::ObjectgetObject (void) override
 取得類Object
 

詳細描述

[Interface] 脈寬計數器通道介面定義

定義用於設定通道脈寬以及取得週期的接口, 供硬體抽象層中相關模組調用。

函式成員說明文件

◆ getPeriod()

virtual bool hal::counter::PulseWidthChannel::getPeriod ( float & result)
pure virtual

取得脈寬週期

參數
result傳出參數,存放取得的週期數值
傳回值
bool true: 取得成功; false: 取得失敗。

實作於 core::CorePulseWidthChannel.

◆ setPercent()

virtual bool hal::counter::PulseWidthChannel::setPercent ( float percent)
pure virtual

設定脈寬百分比

參數
percent脈寬百分比 (0 ~ 1)
傳回值
bool true: 設定成功; false: 設定失敗。

實作於 core::CorePulseWidthChannel.


此結構(structure) 文件是由下列檔案中產生: