
IRU151-I Programmer Guidel
Function Description
45
2.36 EnDOPWM
Description
Enable PWM mode on the channel 0 and set all parameters.
Definition
int EnDOPWM (
int
channel ,
int
dutycycle,
short
freq
);
Parameters
channel
Selected channel (Must be 0)
dutycycle
The range of the duty cycle is from 1(%) to 99(%).
freq
The range of the value is from 1 to 500(Hz).
Return value
AXIO_OK if success, or other value represents the error. (See Error Code)
Example
short
freq = 100;
int
duty = 50;
short
channel = 1;
int
ret;
ret = EnDOPWM(channel, duty, freq);
if(ret != AXIO_OK){
printf(
“Enable DO PWM failure\n”);
Summary of Contents for IRU151-I
Page 1: ...IRU151 I Software Development Kit Reference Manual...
Page 2: ...ii Revision History Version Revised Date Author Description 1 0 2018 12 05 Hank 1st release...
Page 6: ...vi This page is intentionally left blank...
Page 10: ...IRU151 I Programmer Guidel 4 Introduction if stop 2 break Close_Device...
Page 11: ...IRU151 I Programmer Guidel Introduction 5 1 3 The Calibration Flow Chart...
Page 12: ...IRU151 I Programmer Guidel 6 Introduction This page is intentionally left blank...