I-8088W API Reference Manual, Version 1.0.0, Aug. 2010 --- 29
3.5. i8088W_SetPWMDuty
The function is used to set the related PWM parameters.
Syntax
short i8088W_SetPWMDuty(int slot,int ch,unsigned long hz,unsigned int
duty) ;
Parameter
1. slot 0 ~ 7
2. ch 0 ~ 7
3. hz 0 ~ 450K
4. duty High part 0 ~ 99
5. Low part 100 - High part
Return Values
Please refer to Error Code Table.
Examples
[C]
int slot,ch;
slot = 0;
for(ch=0;ch<8;ch++)
{
i8088W_ SetPWMDuty (slot,ch,50);
}