![]() |
Speeduino
|
This structure represents a decoder configuration. More...
#include <decoder_t.h>
Public Member Functions | |
| int16_t | getCrankAngle (void) const |
| The function to get the crank angle. | |
Public Attributes | |
| interrupt_t | primary |
| The primary interrupt configuration - usually the crank trigger. | |
| interrupt_t | secondary |
| The secondary interrupt configuration - usually the cam trigger. | |
| interrupt_t | tertiary |
| The tertiary interrupt configuration - for decoders that use a 3rd input. E.g. VVT. | |
| using | getRevolutionTime_t = uint32_t(*)(void) |
| The function to get the current crank revolution time. | |
| getRevolutionTime_t | getRevolutionTime |
| The function to get the current crank revolution time. | |
| using | getCrankAngle_t = int16_t(*)(uint32_t) |
| The function to get the crank angle. | |
| getCrankAngle_t | pGetCrankAngle |
| The function to get the crank angle. | |
| using | setEndTeeth_t = void(*)(void) |
| The function to set the end teeth for ignition calculations. | |
| setEndTeeth_t | setEndTeeth |
| The function to set the end teeth for ignition calculations. | |
| using | reset_t = void(*)(void) |
| The function to reset the decoder. Called when the engine is stopped, or when the engine is started. | |
| reset_t | reset |
| The function to reset the decoder. Called when the engine is stopped, or when the engine is started. | |
| using | engine_running_t = bool(*)(uint32_t) |
| The function to test if the engine is running. | |
| engine_running_t | isEngineRunning |
| The function to test if the engine is running. | |
| using | status_fun_t = decoder_status_t(*)(void) noexcept |
| The function to get the current decoder status. | |
| status_fun_t | getStatus |
| The function to get the current decoder status. | |
| using | feature_fun_t = decoder_features_t(*)(void) |
| The function to get the current decoder feature set. | |
| feature_fun_t | getFeatures |
| The function to get the current decoder feature set. | |
This structure represents a decoder configuration.
Create using decoder_builder_t
| using decoder_t::engine_running_t = bool(*)(uint32_t) |
The function to test if the engine is running.
This is based on whether or not the decoder has detected a tooth recently
| curTime | The time in µS to use for the liveness check. Typically the result of a recent call to micros() |
| using decoder_t::feature_fun_t = decoder_features_t(*)(void) |
The function to get the current decoder feature set.
| using decoder_t::getCrankAngle_t = int16_t(*)(uint32_t) |
The function to get the crank angle.
| using decoder_t::getRevolutionTime_t = uint32_t(*)(void) |
The function to get the current crank revolution time.
This is the time in µS that one crank revolution would take at the current speed, as measured by the decoder. RPM is derived from this (see statuses::setRevolutionTime()).
| using decoder_t::reset_t = void(*)(void) |
The function to reset the decoder. Called when the engine is stopped, or when the engine is started.
| using decoder_t::setEndTeeth_t = void(*)(void) |
The function to set the end teeth for ignition calculations.
| using decoder_t::status_fun_t = decoder_status_t(*)(void)noexcept |
The function to get the current decoder status.
|
inline |
The function to get the crank angle.
| feature_fun_t decoder_t::getFeatures |
The function to get the current decoder feature set.
| getRevolutionTime_t decoder_t::getRevolutionTime |
The function to get the current crank revolution time.
This is the time in µS that one crank revolution would take at the current speed, as measured by the decoder. RPM is derived from this (see statuses::setRevolutionTime()).
| status_fun_t decoder_t::getStatus |
The function to get the current decoder status.
| engine_running_t decoder_t::isEngineRunning |
The function to test if the engine is running.
This is based on whether or not the decoder has detected a tooth recently
| curTime | The time in µS to use for the liveness check. Typically the result of a recent call to micros() |
| getCrankAngle_t decoder_t::pGetCrankAngle |
The function to get the crank angle.
| interrupt_t decoder_t::primary |
The primary interrupt configuration - usually the crank trigger.
| reset_t decoder_t::reset |
The function to reset the decoder. Called when the engine is stopped, or when the engine is started.
| interrupt_t decoder_t::secondary |
The secondary interrupt configuration - usually the cam trigger.
| setEndTeeth_t decoder_t::setEndTeeth |
The function to set the end teeth for ignition calculations.
| interrupt_t decoder_t::tertiary |
The tertiary interrupt configuration - for decoders that use a 3rd input. E.g. VVT.