Speeduino
Loading...
Searching...
No Matches
tachoController_detail.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include "../../../board_definition.h"
5#include "../../pins/fastOutputPin.h"
6#include "../../pins/outputPin.h"
7
8namespace tachoController
9{
10
11namespace detail
12{
13 enum class TachoOutputStatus : uint8_t {
14 INACTIVE = 0, READY = 1, ACTIVE = 2 //The 3 statuses that the tacho output pulse can have.
15 };
16
18 {
20
22 uint8_t tachoEndTime = 0; //The time (in ms) that the tacho pulse needs to end at
23 uint8_t tachoDuration = 0;
24 uint16_t controlCounter = 0;
25 uint16_t tachoSweepIncr = 0;
26 uint16_t tachoSweepAccum = 0;
28 bool tachoAlt : 1;
29 bool tachoHalf : 1;
30 bool modeDwell : 1;
32 };
33}
34
35}
A class for output pin operations that is faster than standard Arduino digitalWrite()
Definition fastOutputPin.h:10
TachoOutputStatus
Definition tachoController_detail.h:13
Definition tachoController.cpp:7
Definition tachoController_detail.h:18
boardOutputPin_t tach_pin
Definition tachoController_detail.h:31
bool tachoAlt
Definition tachoController_detail.h:28
bool tachoSweepEnabled
Definition tachoController_detail.h:27
bool tachoHalf
Definition tachoController_detail.h:29
uint8_t tachoDuration
Definition tachoController_detail.h:23
uint16_t tachoSweepIncr
Definition tachoController_detail.h:25
tacho_control_state(void)
Definition tachoController.cpp:11
uint8_t tachoEndTime
Definition tachoController_detail.h:22
uint16_t tachoSweepAccum
Definition tachoController_detail.h:26
uint16_t controlCounter
Definition tachoController_detail.h:24
TachoOutputStatus tachoOutputFlag
Definition tachoController_detail.h:21
bool modeDwell
Definition tachoController_detail.h:30