I8088W_Getrealpwmduty_Deci - ICP DAS USA I-8088W Api Reference Manual

I/o module
Table of Contents

Advertisement

3.8. i8088W_GetRealPWMDuty_Deci

The function will get real frequency and duty that can be produced by 8088W.
Syntax
short i8088W_GetRealPWMDuty_Deci
(int slot,int ch,unsigned long* deci_hz,unsigned int* deci_duty);
Note:
The duty and frequency of 8088W PWM is discrete not continuous,when we
use i8088W_SetPWMDuty to configure the duty and frequency, we have to use
this function to check the real duty and frequency which can be produced by
8088W normally, at low frequency 10K, the configued frequency will be closer
to real frequcncy can be generated.
Parameter
1. slot 0 ~ 7
2. ch 0 ~ 7
3. deci_hz: the real frequency produced by 8088W unit (x10Hz)
4. deci_duty: the real duty produced by 8088W (x10 %)
Return Values
Please refer to Error Code Table.
I-8088W API Reference Manual, Version 1.0.0, Aug. 2010
--- 32

Advertisement

Table of Contents
loading

Table of Contents