Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Iot
提交
0af3a67f
I
Iot
项目概览
jobily
/
Iot
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0af3a67f
编写于
11月 28, 2018
作者:
J
Jose Perez Rodriguez
提交者:
John Tasler
11月 28, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adding Api Feedback to PWM classes (#48)
上级
293ce364
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
37 addition
and
34 deletion
+37
-34
src/System.Device.Gpio/System/Device/Pwm/IPwmDriver.cs
src/System.Device.Gpio/System/Device/Pwm/IPwmDriver.cs
+0
-14
src/System.Device.Gpio/System/Device/Pwm/PwmController.cs
src/System.Device.Gpio/System/Device/Pwm/PwmController.cs
+9
-10
src/System.Device.Gpio/System/Device/Pwm/PwmDriver.cs
src/System.Device.Gpio/System/Device/Pwm/PwmDriver.cs
+23
-0
src/System.Device.Gpio/System/Device/Pwm/UnixPwmDriver.cs
src/System.Device.Gpio/System/Device/Pwm/UnixPwmDriver.cs
+5
-10
未找到文件。
src/System.Device.Gpio/System/Device/Pwm/IPwmDriver.cs
已删除
100644 → 0
浏览文件 @
293ce364
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace
System.Device.Pwm
{
public
interface
IPwmDriver
:
IDisposable
{
void
OpenChannel
(
int
pwmChannel
);
void
CloseChannel
(
int
pwmChannel
);
void
Start
(
int
pwmChannel
,
double
frequency
,
double
dutyCycle
);
void
Stop
(
int
pwmChannel
);
}
}
src/System.Device.Gpio/System/Device/Pwm/PwmController.cs
浏览文件 @
0af3a67f
...
...
@@ -6,14 +6,12 @@ namespace System.Device.Pwm
{
public
sealed
class
PwmController
:
IDisposable
{
private
PwmController
()
{
}
public
static
PwmController
GetController
()
public
PwmController
()
{
throw
new
NotImplementedException
();
}
public
static
PwmController
GetController
(
I
PwmDriver
driver
)
public
PwmController
(
PwmDriver
driver
)
{
throw
new
NotImplementedException
();
}
...
...
@@ -33,23 +31,24 @@ namespace System.Device.Pwm
throw
new
NotImplementedException
();
}
public
void
Start
(
int
pwmChannel
,
double
frequency
,
double
dutyCycle
)
public
void
Start
Writing
(
int
pwmChannel
,
double
frequency
,
double
dutyCycle
)
{
throw
new
NotImplementedException
();
}
public
void
Stop
(
int
pwmChannel
)
public
void
Stop
Writing
(
int
pwmChannel
)
{
throw
new
NotImplementedException
();
}
public
static
bool
IsPwmEnabled
()
public
void
Dispose
()
{
throw
new
NotImplementedException
();
}
~
PwmController
()
{
}
private
void
Dispose
(
bool
disposing
)
{
public
void
Dispose
()
{
}
}
}
}
src/System.Device.Gpio/System/Device/Pwm/PwmDriver.cs
0 → 100644
浏览文件 @
0af3a67f
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace
System.Device.Pwm
{
public
abstract
class
PwmDriver
:
IDisposable
{
protected
internal
abstract
void
OpenChannel
(
int
pwmChannel
);
protected
internal
abstract
void
CloseChannel
(
int
pwmChannel
);
protected
internal
abstract
void
StartWriting
(
int
pwmChannel
,
double
frequency
,
double
dutyCycle
);
protected
internal
abstract
void
StopWriting
(
int
pwmChannel
);
public
void
Dispose
()
{
Dispose
(
true
);
GC
.
SuppressFinalize
(
this
);
}
protected
virtual
void
Dispose
(
bool
disposing
)
{
// Nothing to do in the base class
}
}
}
src/System.Device.Gpio/System/Device/Pwm/UnixPwmDriver.cs
浏览文件 @
0af3a67f
...
...
@@ -4,29 +4,24 @@
namespace
System.Device.Pwm
{
internal
class
UnixPwmDriver
:
I
PwmDriver
internal
class
UnixPwmDriver
:
PwmDriver
{
p
ublic
void
CloseChannel
(
int
pwmChannel
)
p
rotected
internal
override
void
CloseChannel
(
int
pwmChannel
)
{
throw
new
NotImplementedException
();
}
p
ublic
void
Dispose
(
)
p
rotected
internal
override
void
OpenChannel
(
int
pwmChannel
)
{
throw
new
NotImplementedException
();
}
p
ublic
void
OpenChannel
(
int
pwmChannel
)
p
rotected
internal
override
void
StartWriting
(
int
pwmChannel
,
double
frequency
,
double
dutyCycle
)
{
throw
new
NotImplementedException
();
}
public
void
Start
(
int
pwmChannel
,
double
frequency
,
double
dutyCycle
)
{
throw
new
NotImplementedException
();
}
public
void
Stop
(
int
pwmChannel
)
protected
internal
override
void
StopWriting
(
int
pwmChannel
)
{
throw
new
NotImplementedException
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录