Speeduino
Loading...
Searching...
No Matches
Macros | Enumerations | Functions | Variables
timers.h File Reference
#include <stdint.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TACHO_SWEEP_TIME_MS   1500
 
#define TACHO_SWEEP_RAMP_MS   (TACHO_SWEEP_TIME_MS * 2 / 3)
 
#define MS_PER_SEC   1000
 

Enumerations

enum  TachoOutputStatus { TACHO_INACTIVE , READY , ACTIVE }
 

Functions

void initTacho (uint8_t tachoPin)
 
void tachoPulseHigh (void)
 
void tachoPulseLow (void)
 
void oneMSInterval (void)
 
void initialiseTimers (void)
 

Variables

volatile TachoOutputStatus tachoOutputFlag
 
volatile uint16_t tachoSweepIncr
 
volatile unsigned int dwellLimit_uS
 

Macro Definition Documentation

◆ MS_PER_SEC

#define MS_PER_SEC   1000

◆ TACHO_SWEEP_RAMP_MS

#define TACHO_SWEEP_RAMP_MS   (TACHO_SWEEP_TIME_MS * 2 / 3)

◆ TACHO_SWEEP_TIME_MS

#define TACHO_SWEEP_TIME_MS   1500

Enumeration Type Documentation

◆ TachoOutputStatus

Enumerator
TACHO_INACTIVE 
READY 
ACTIVE 

Function Documentation

◆ initialiseTimers()

void initialiseTimers ( void  )
Here is the caller graph for this function:

◆ initTacho()

void initTacho ( uint8_t  tachoPin)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ oneMSInterval()

void oneMSInterval ( void  )
Here is the call graph for this function:

◆ tachoPulseHigh()

void tachoPulseHigh ( void  )
Here is the caller graph for this function:

◆ tachoPulseLow()

void tachoPulseLow ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ dwellLimit_uS

volatile unsigned int dwellLimit_uS
extern

◆ tachoOutputFlag

volatile TachoOutputStatus tachoOutputFlag
extern

◆ tachoSweepIncr

volatile uint16_t tachoSweepIncr
extern