求问怎么读取一个脉冲的时间,是使用
| void |
pwmGetSignal (hetRAMBASE_t *hetRAM, uint32 pwm, hetSIGNAL_t *signal) |
这个函数吗?
如果是的话,那么脉冲时间是哪个变量呢?谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Yilin,
你可以看下Het.c里面对这个函数的定义,它确实可以用来得到相应的PWM波的周期和占空比。占空比是百分比的形式,周期是以us为单位。
周期和占空比的变量都是在hetSIGNAL_t这个结构体里面定义的。
谢谢