I-8088W API Reference Manual, Version 1.0.0, Aug. 2010 --- 58
4.7. pac_i8088W_SetPWMDuty_float
The function is used to set the PWM parameters precisely.
Syntax
short pac_i8088W_SetPWMDuty_Float(int slot,int ch,float f_Hz,float f_Duty);
Note:
pac_i8088W_SetPWMDuty_
Deci
is the same as
pac_i8088W_SetPWMDuty_
float
in usage, but the
pac_i8088W_SetPWMDuty_Deci will
run faster
than
pac_i8088W_SetPWMDuty_floa for the floating calculation reason
Parameter
1. slot 0 ~ 7
2. ch 0 ~ 7
3. f_Hz 100 means f_Hz = 10 Hz
4. f_Duty 0.0~99.9, for example: 50.3 means 50.3% High Part
5. Low Part =100.0- f_Duty = 49.7 means = 49.7%
Return Values
Please refer to Error Code Table.