Speeduino
Loading...
Searching...
No Matches
decoder_builder.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "decoder_t.h"
8
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175
static void reset(Schedule &schedule)
Definition scheduler.cpp:68
static bool isRunning(const Schedule &schedule)
Is the schedule action currently running?
Definition scheduler.h:139
A builder for decoder_t - will make sure all required fields are set.
Definition decoder_builder.h:10
decoder_t build(void) const
Definition decoder_builder.h:33
decoder_builder_t & setGetCrankAngle(decoder_t::getCrankAngle_t getCrankAngle)
Definition decoder_builder.cpp:88
decoder_builder_t & setIsEngineRunning(decoder_t::engine_running_t isRunning)
Definition decoder_builder.cpp:106
decoder_builder_t(void)
Definition decoder_builder.cpp:13
decoder_builder_t & setTertiaryTrigger(interrupt_t trigger)
Definition decoder_builder.cpp:68
decoder_builder_t & setSecondaryTrigger(interrupt_t trigger)
Definition decoder_builder.cpp:54
decoder_builder_t & setGetRPM(decoder_t::getRPM_t getRPM)
Definition decoder_builder.cpp:82
decoder_t _decoder
Definition decoder_builder.h:11
decoder_builder_t & setGetStatus(decoder_t::status_fun_t getStatus)
Definition decoder_builder.cpp:112
decoder_builder_t & setGetFeatures(decoder_t::feature_fun_t getFeatures)
Definition decoder_builder.cpp:119
decoder_builder_t & setReset(decoder_t::reset_t reset)
Definition decoder_builder.cpp:100
decoder_builder_t & setPrimaryTrigger(interrupt_t trigger)
Definition decoder_builder.cpp:40
decoder_builder_t & setSetEndTeeth(decoder_t::setEndTeeth_t setEndTeeth)
Definition decoder_builder.cpp:94
This structure represents a decoder configuration.
Definition decoder_t.h:89
void(*)(void) setEndTeeth_t
The function to set the end teeth for ignition calculations.
Definition decoder_t.h:111
bool(*)(uint32_t) engine_running_t
The function to test if the engine is running.
Definition decoder_t.h:131
uint16_t(*)(void) getRPM_t
The function to get the RPM.
Definition decoder_t.h:99
void(*)(void) reset_t
The function to reset the decoder. Called when the engine is stopped, or when the engine is started.
Definition decoder_t.h:117
decoder_status_t(*)(void) status_fun_t
The function to get the current decoder status.
Definition decoder_t.h:137
int16_t(*)(void) getCrankAngle_t
The function to get the crank angle.
Definition decoder_t.h:105
decoder_features_t(*)(void) feature_fun_t
The function to get the current decoder feature set.
Definition decoder_t.h:143
This structure represents a trigger interrupt.
Definition decoder_t.h:17
void(*)(void) callback_t
Definition decoder_t.h:18