INT32S DRV_CounterPWMEnable ( PTR_T DeviceHandle, INT16U Port );
On the device indicated by the DeviceHandle, it starts the pulse width modulation output operation, according to the configuration set by DRV_CounterPWMSetting.
This operation can be stopped by calling the DRV_CounterReset.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from DRV_DeviceOpen which specifies the target device. |
| Port | input | default |
To specify the target counter channel. From the minimum zero (the first channel) to the maximum channel number minus one. For example, the range is from 0 to (N-1) on a device with N counter channels. As for the target counter channel of PCI1760, each bit corresponds to a counter: 1-selected; 0-unselected. For example, 0x3 (00000011) indicates that channels 0 and 1 are selected. |
| 1. 0 | Successful. |
| 2. InvalidDeviceHandle | The Devicehandle is NULL. |
| 3. InvalidChannel | The target channel is out of range. |
| 4. Other value | Please reference ErrorCodes |