问题描述
您好,
(Win CE 6.0 R3,VS 2005,Digi CC9M2443)
我写了一个驱动程序来创建一个PWM在一个portpin,工作正常。现在有更多的端口可以输出PWM并且我想用相同的驱动器控制它们并且具有固定的分配硬件PWM通道0< - >。 PWM1:,PWM通道1 - > PWM2:
等等。
要做到这一点,我想我需要知道驱动程序函数PWM_Open传递给CreateFile的端口名。 但是没有参数(??)
如何做?
感谢您的帮助
Martin
Hello,
(Win CE 6.0 R3, VS 2005, Digi CC9M2443)
I wrote a driver to create a PWM at a portpin, works fine. Now there are more portpins that can output a PWM and I want to control them with the same driver and have a fixed assignment hardware PWM channel 0 <-> PWM1:, PWM channel 1 <-> PWM2: and so on.
To do this I think I need to know in drivers function PWM_Open the portname that was passed to CreateFile. But there is no parameter for this (??)
How to do it?
Thank you for any help
Martin
这篇关于如何在驱动程序函数XXX_Open中获取端口号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!