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

I/o module
Table of Contents

Advertisement

4.19. pac_i8088W_GetPWMActiveState

The function is used to get PWM status.
Syntax
short pac_i8088W_ GetPWMActiveState
(int slot,unsigned int *State,int ActiveArr[]);
Parameter
1. slot 0 ~ 7
2. *State: the PWM output status of i-8088 value 0~0xff
3. ActiveArr[]: the *State value will be parse into Bit Array
Return Values
Please refer to Error Code Table.
Examples
[C]
int slot=0,ch,activatedBit[8];
unsigned int activatedState=0;
pac_i8088W_GetPWMActiveState (slot,& activatedState, activatedBit);
for(ch=0;ch<8;ch++)
{
if(activatedBit[ch])
printf("PWM CH[%d] is activated\n",ch);
}
I-8088W API Reference Manual, Version 1.0.0, Aug. 2010
--- 80

Advertisement

Table of Contents
loading

Table of Contents