rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
board_overrides.h File Reference

Typedefs

using setup_custom_board_overrides_type = void(*)()
 
using setup_custom_board_config_type = void(*)(engine_configuration_s *)
 
using setup_custom_board_output_type = int(*)()
 
using setup_custom_board_ts_command_override_type = void(*)(uint16_t, uint16_t)
 
using board_can_rx_type = void(*)(const size_t, const CANRxFrame &, efitick_t)
 
using board_can_update_dash_type = void(*)(CanCycle cycle)
 

Functions

template<typename FuncType , typename... Args>
static bool call_board_override (std::optional< FuncType > board_override, Args &&... args)
 

Variables

std::optional< setup_custom_board_ts_command_override_typecustom_board_ts_command
 
std::optional< board_can_rx_typecustom_board_can_rx
 
std::optional< board_can_update_dash_typecustom_board_update_dash
 
std::optional< setup_custom_board_overrides_typecustom_board_preHalInit
 Pre-HAL initialization override point Allows boards to perform custom initialization before HAL is initialized.
 
std::optional< setup_custom_board_overrides_typecustom_board_boardSayHello
 
std::optional< setup_custom_board_overrides_typecustom_board_InitHardwareEarly
 
std::optional< setup_custom_board_overrides_typecustom_board_InitHardware
 
std::optional< setup_custom_board_overrides_typecustom_board_InitHardwareExtra
 
std::optional< setup_custom_board_config_typecustom_board_OnConfigurationChange
 
std::optional< setup_custom_board_output_typecustom_board_getMetaOutputsCount
 
std::optional< setup_custom_board_output_typecustom_board_getMetaLowSideOutputs
 
std::optional< setup_custom_board_overrides_typecustom_board_LtftTrimToVeApply
 
std::optional< setup_custom_board_overrides_typecustom_board_DefaultConfiguration
 
std::optional< setup_custom_board_overrides_typecustom_board_ConfigOverrides
 

Typedef Documentation

◆ board_can_rx_type

using board_can_rx_type = void (*)(const size_t, const CANRxFrame &, efitick_t)

Definition at line 40 of file board_overrides.h.

◆ board_can_update_dash_type

using board_can_update_dash_type = void (*)(CanCycle cycle)

Definition at line 43 of file board_overrides.h.

◆ setup_custom_board_config_type

Definition at line 32 of file board_overrides.h.

◆ setup_custom_board_output_type

using setup_custom_board_output_type = int (*)()

Definition at line 33 of file board_overrides.h.

◆ setup_custom_board_overrides_type

Definition at line 31 of file board_overrides.h.

◆ setup_custom_board_ts_command_override_type

using setup_custom_board_ts_command_override_type = void (*)(uint16_t , uint16_t )

Definition at line 35 of file board_overrides.h.

Function Documentation

◆ call_board_override()

template<typename FuncType , typename... Args>
static bool call_board_override ( std::optional< FuncType >  board_override,
Args &&...  args 
)
inlinestatic

This function checks if an override is present and calls it if available. Return true if override is present and was called

Definition at line 77 of file board_overrides.h.

77 {
78 if (board_override.has_value()) {
79 std::invoke(board_override.value(), std::forward<Args>(args)...);
80 return true;
81 }
82 return false;
83}

Referenced by TunerStudio::handleWriteChunkCommand(), incrementGlobalConfigurationVersion(), initHardware(), initHardwareNoConfig(), LtftState::load(), loadConfiguration(), main(), resetConfigurationExt(), and sayHello().

Here is the caller graph for this function:

Variable Documentation

◆ custom_board_boardSayHello

std::optional<setup_custom_board_overrides_type> custom_board_boardSayHello
extern

Definition at line 32 of file eficonsole.cpp.

Referenced by sayHello().

◆ custom_board_can_rx

std::optional<board_can_rx_type> custom_board_can_rx
extern

Definition at line 201 of file can_rx.cpp.

Referenced by processCanRxMessage().

◆ custom_board_ConfigOverrides

std::optional<setup_custom_board_overrides_type> custom_board_ConfigOverrides
extern

◆ custom_board_DefaultConfiguration

std::optional<setup_custom_board_overrides_type> custom_board_DefaultConfiguration
extern

Definition at line 70 of file engine_configuration.cpp.

Referenced by resetConfigurationExt(), and setup_custom_board_overrides().

◆ custom_board_getMetaLowSideOutputs

std::optional<setup_custom_board_output_type> custom_board_getMetaLowSideOutputs
extern

◆ custom_board_getMetaOutputsCount

std::optional<setup_custom_board_output_type> custom_board_getMetaOutputsCount
extern

◆ custom_board_InitHardware

std::optional<setup_custom_board_overrides_type> custom_board_InitHardware
extern

Definition at line 77 of file hardware.cpp.

Referenced by initHardware(), and setup_custom_board_overrides().

◆ custom_board_InitHardwareEarly

std::optional<setup_custom_board_overrides_type> custom_board_InitHardwareEarly
extern

Definition at line 76 of file hardware.cpp.

Referenced by initHardwareNoConfig().

◆ custom_board_InitHardwareExtra

std::optional<setup_custom_board_overrides_type> custom_board_InitHardwareExtra
extern

Definition at line 78 of file hardware.cpp.

Referenced by initHardware().

◆ custom_board_LtftTrimToVeApply

std::optional<setup_custom_board_overrides_type> custom_board_LtftTrimToVeApply
extern

Definition at line 22 of file long_term_fuel_trim.cpp.

Referenced by LtftState::load().

◆ custom_board_OnConfigurationChange

std::optional<setup_custom_board_config_type> custom_board_OnConfigurationChange
extern

◆ custom_board_preHalInit

std::optional<setup_custom_board_overrides_type> custom_board_preHalInit
extern

Pre-HAL initialization override point Allows boards to perform custom initialization before HAL is initialized.

Definition at line 22 of file main.cpp.

Referenced by main(), and setup_custom_board_overrides().

◆ custom_board_ts_command

std::optional<setup_custom_board_ts_command_override_type> custom_board_ts_command
extern

Definition at line 677 of file bench_test.cpp.

Referenced by executeTSCommand().

◆ custom_board_update_dash

std::optional<board_can_update_dash_type> custom_board_update_dash
extern

Definition at line 612 of file can_dash.cpp.

Referenced by updateDash().

Go to the source code of this file.