Rev 14 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 6 | mjames | 1 | /* |
| 2 | * timer2.h |
||
| 3 | * |
||
| 4 | * Created on: 2 Apr 2018 |
||
| 5 | * Author: Mike |
||
| 6 | */ |
||
| 7 | |||
| 8 | #ifndef INC_TIMER2_H_ |
||
| 9 | #define INC_TIMER2_H_ |
||
| 10 | |||
| 13 | mjames | 11 | |
| 12 | extern uint16_t displayVal; |
||
| 13 | |||
| 6 | mjames | 14 | extern void initTimer2(void); |
| 15 | |||
| 16 | extern uint16_t setRPM(uint16_t RPM); |
||
| 17 | |||
| 18 | extern uint16_t getRPM(void); |
||
| 19 | |||
| 17 | mjames | 20 | extern signed getCount(void); |
| 13 | mjames | 21 | |
| 17 | mjames | 22 | extern signed getDelta(void); |
| 13 | mjames | 23 | |
| 14 | mjames | 24 | extern uint8_t slowPulse(); |
| 13 | mjames | 25 | |
| 17 | mjames | 26 | |
| 27 | extern void setGain(int gain); |
||
| 28 | |||
| 6 | mjames | 29 | extern void setAdvance(int16_t advance); |
| 30 | |||
| 31 | |||
| 13 | mjames | 32 | extern uint16_t getNextRefPulseIndex(void); |
| 6 | mjames | 33 | |
| 13 | mjames | 34 | extern void processPulse(uint16_t pulseIndex); |
| 6 | mjames | 35 | |
| 11 | mjames | 36 | |
| 6 | mjames | 37 | #endif /* INC_TIMER2_H_ */ |