22 #define PHASOR_MAX_VALUE_UL 4294967295UL
31 template <
unsigned int UPDATE_RATE>
35 uint32_t current_value;
36 volatile uint32_t step_size;
52 current_value += step_size;
60 void set(uint32_t value)
110 step_size = stepsize;
void set(uint32_t value)
Set the current value of the phasor.
void setFreq(int frequency)
Set the Phasor frequency with an unsigned int.
void setFreq(float frequency)
Set the Phasor frequency with a float.
#define PHASOR_MAX_VALUE_UL
uint32_t phaseIncFromFreq(int frequency)
phaseIncFromFreq() and setPhaseInc() are for saving processor time when sliding between frequencies...
uint32_t next()
Increments one step along the phase.
Phasor repeatedly generates a high resolution ramp at a variable frequency.
void setPhaseInc(uint32_t stepsize)
Set a specific phase increment.