Counts calls to process(), returning true every division
calls.
More...
#include <digital.hpp>
Counts calls to process(), returning true every division
calls.
Example:
if (divider.process()) {
Runs every division
calls }
◆ reset()
void rack::dsp::ClockDivider::reset |
( |
| ) |
|
|
inline |
◆ setDivision()
void rack::dsp::ClockDivider::setDivision |
( |
uint32_t | division | ) |
|
|
inline |
◆ getDivision()
uint32_t rack::dsp::ClockDivider::getDivision |
( |
| ) |
|
|
inline |
◆ getClock()
uint32_t rack::dsp::ClockDivider::getClock |
( |
| ) |
|
|
inline |
◆ process()
bool rack::dsp::ClockDivider::process |
( |
| ) |
|
|
inline |
Returns true when the clock reaches division
and resets.
◆ clock
uint32_t rack::dsp::ClockDivider::clock = 0 |
◆ division
uint32_t rack::dsp::ClockDivider::division = 1 |
The documentation for this struct was generated from the following file: