DSCPWM

Universal Driver Documentation
Structure containing pulse width modulation parameters for dscPWMFunction().

Structure Definition

typedef struct {

    DFLOAT output_freq;
    FLOAT duty_cycle;    
    BYTE polarity;       
    BYTE pwm_circuit;    
    BOOL output_enab;    

} DSCCR;

Structure Members

NameDescription
output_freqOutput frequency of the PWM signal (i.e. frequency of subsequent duty cycles.)
duty_cyclePercentage of time that the signal will be in the active state. Valid duty cycles range from 0.0 to 100.0.
polarityDetermines the active state of the PWM signal (for boards that support this.) 0 = high, 1 = low
pwm_circuitWhich PWM circuit this function should configure. Depending on the board this will represent either physical or logical counters.
output_enabEnable signal output. 1 = enable, 0 = disable


This page was last modified 01:06, 30 Jan 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.