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 board_can_rx_type = void(*)(const size_t, const CANRxFrame &, efitick_t)
 
using board_can_update_dash_type = void(*)(CanCycle cycle)
 

Functions

static bool call_board_override (std::optional< setup_custom_board_overrides_type > board_override)
 

Variables

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_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 34 of file board_overrides.h.

◆ board_can_update_dash_type

using board_can_update_dash_type = void (*)(CanCycle cycle)

Definition at line 37 of file board_overrides.h.

◆ setup_custom_board_overrides_type

Definition at line 30 of file board_overrides.h.

Function Documentation

◆ call_board_override()

static bool call_board_override ( std::optional< setup_custom_board_overrides_type board_override)
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 65 of file board_overrides.h.

65 {
66 if (board_override.has_value()) {
67 std::invoke(board_override.value());
68 return true;
69 }
70 return false;
71}

Referenced by TunerStudio::handleWriteChunkCommand(), 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_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_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_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.