메소드 | 설명 | |
---|---|---|
Dispose ( ) : void | ||
LogicPwmDataGenerator ( ) : System |
Constructor
|
|
applyChannelSettings ( ) : void |
Applies the PWM channel settings for a single channel. Calling this method in any other mode than asynchronous mode, will raise an exception. In asynchronous mode this method will update all channels |
|
applyChannelSettings ( int channel ) : void |
Applies te PWM channel settings for a single channel. Calling this method in any other mode than asynchronous mode, will raise an exception.
|
|
calculateRealDutyCycle ( double desiredDutyCycle ) : double |
Calculates the real duty cycle when using the current sample rate
|
|
calculateRealFrequency ( int desiredFrequency ) : double |
Calculates the real frequency when using the current sample rate
|
|
fillBufferWithPwmStream ( byte buffer ) : void |
Fills the provided byte array with pwm stream data
|
|
resetChannelSettings ( ) : void |
Resets all channel settings to their default values
|
|
resetState ( ) : void |
Resets the internal PWM control values
|
메소드 | 설명 | |
---|---|---|
applySynchronousChannelSettings ( ) : void |
Applies the channel settings for synchronous mode
|
|
calculateSampleTickTime ( ) : double |
Returns the time (in seconds) for a single sample tick
|
|
calculateSinglePeriodSampleCount ( int frequency ) : int |
Calculates the number of samples needed for a single period of the given frequency
|
|
fillBufferAsyncMode ( byte buffer ) : void |
Fills the provided byte array with pwm stream data in asynchronous mode
|
|
fillBufferSyncMode ( byte buffer ) : void |
Fills the provided byte array with pwm stream data in synchronous mode
|
public applyChannelSettings ( int channel ) : void | ||
channel | int | The channel number |
리턴 | void |
public calculateRealDutyCycle ( double desiredDutyCycle ) : double | ||
desiredDutyCycle | double | |
리턴 | double |
public calculateRealFrequency ( int desiredFrequency ) : double | ||
desiredFrequency | int | The desired frequency in Hz |
리턴 | double |
public fillBufferWithPwmStream ( byte buffer ) : void | ||
buffer | byte | the byte array that should be filled |
리턴 | void |