Functions | |
void | storePeriodLength (unsigned int value) |
Store length of the period. | |
void | determineFrequency (void) |
Calculate the average periodlength in seconds. | |
void | printToLCD (int frequency, int periods) |
Print frequency and number of periods to LCD. | |
void | inc_nrOfPeriods (void) |
Increase number of periods. | |
void | dec_nrOfPeriods (void) |
Decrease number of periods. | |
int | getNrOfPeriods (void) |
Get number of periods. | |
int | getFrequency (void) |
Returns frequency. |
void dec_nrOfPeriods | ( | void | ) |
Decrease number of periods.
void determineFrequency | ( | void | ) |
Calculate the average periodlength in seconds.
int getFrequency | ( | void | ) |
Returns frequency.
int getNrOfPeriods | ( | void | ) |
Get number of periods.
void inc_nrOfPeriods | ( | void | ) |
Increase number of periods.
void printToLCD | ( | int | frequency, | |
int | periods | |||
) |
Print frequency and number of periods to LCD.
frequency | Frequency in Hertz | |
periods | Number of periods |
void storePeriodLength | ( | unsigned int | value | ) |
Store length of the period.
value | time in microseconds |