Speeduino
Loading...
Searching...
No Matches
Functions | Variables
auxiliaries.cpp File Reference
#include "auxiliaries.h"
#include "globals.h"
#include "elapsed_time.h"
#include "maths.h"
#include "src/PID/integerPID.h"
#include "src/PID/integerPID_ideal.h"
#include "decoders.h"
#include "timers.h"
#include "preprocessor.h"
#include "units.h"
#include "atomic.h"
#include "src/pins/fastInputPin.h"
#include "src/pins/boardOutputPin.h"
#include "scheduler_fuel_controller.h"

Functions

static bool isWmiTankEmpty (void)
 
static void initialiseVvtPins (uint8_t pin1, uint8_t pin2)
 
static void setVvtPidTunings (integerPID &pid, const config10 &page10, bool isReverse)
 
static void initialiseVvtPid (integerPID &pid, const config10 &page10, bool isReverse, int16_t currentAngle)
 
void initialiseAuxPWM (void)
 
void vvt1On (void)
 
void vvt1Off (void)
 
void vvt2On (void)
 
void vvt2Off (void)
 
void vvtControl (void)
 
void wmiControl (void)
 
void vvtInterrupt (void)
 

Variables

TESTABLE_STATIC long vvt1_pwm_value
 
TESTABLE_STATIC long vvt2_pwm_value
 
TESTABLE_STATIC volatile unsigned int vvt1_pwm_cur_value
 
TESTABLE_STATIC volatile unsigned int vvt2_pwm_cur_value
 
TESTABLE_STATIC volatile bool vvt1_pwm_state
 
TESTABLE_STATIC volatile bool vvt2_pwm_state
 
TESTABLE_STATIC volatile bool vvt1_max_pwm
 
TESTABLE_STATIC volatile bool vvt2_max_pwm
 
TESTABLE_STATIC volatile char nextVVT
 
TESTABLE_STATIC byte vvtCounter
 
static uint32_t vvtWarmTime
 
TESTABLE_STATIC bool vvtIsHot
 
TESTABLE_STATIC bool vvtTimeHold
 
TESTABLE_STATIC uint16_t vvt_pwm_max_count
 
static integerPID vvtPID
 
static integerPID vvt2PID
 
TESTABLE_STATIC boardOutputPin_t vvt1_pin
 
TESTABLE_STATIC boardOutputPin_t vvt2_pin
 

Function Documentation

◆ initialiseAuxPWM()

void initialiseAuxPWM ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialiseVvtPid()

static void initialiseVvtPid ( integerPID pid,
const config10 page10,
bool  isReverse,
int16_t  currentAngle 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialiseVvtPins()

static void initialiseVvtPins ( uint8_t  pin1,
uint8_t  pin2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isWmiTankEmpty()

static bool isWmiTankEmpty ( void  )
static
Here is the caller graph for this function:

◆ setVvtPidTunings()

static void setVvtPidTunings ( integerPID pid,
const config10 page10,
bool  isReverse 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vvt1Off()

void vvt1Off ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vvt1On()

void vvt1On ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vvt2Off()

void vvt2Off ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vvt2On()

void vvt2On ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vvtControl()

void vvtControl ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vvtInterrupt()

void vvtInterrupt ( void  )
Here is the call graph for this function:

◆ wmiControl()

void wmiControl ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nextVVT

◆ vvt1_max_pwm

◆ vvt1_pin

◆ vvt1_pwm_cur_value

TESTABLE_STATIC volatile unsigned int vvt1_pwm_cur_value

◆ vvt1_pwm_state

TESTABLE_STATIC volatile bool vvt1_pwm_state

◆ vvt1_pwm_value

TESTABLE_STATIC long vvt1_pwm_value

◆ vvt2_max_pwm

◆ vvt2_pin

◆ vvt2_pwm_cur_value

TESTABLE_STATIC volatile unsigned int vvt2_pwm_cur_value

◆ vvt2_pwm_state

TESTABLE_STATIC volatile bool vvt2_pwm_state

◆ vvt2_pwm_value

TESTABLE_STATIC long vvt2_pwm_value

◆ vvt2PID

integerPID vvt2PID
static

◆ vvt_pwm_max_count

TESTABLE_STATIC uint16_t vvt_pwm_max_count

◆ vvtCounter

TESTABLE_STATIC byte vvtCounter

◆ vvtIsHot

◆ vvtPID

integerPID vvtPID
static

◆ vvtTimeHold

TESTABLE_STATIC bool vvtTimeHold

◆ vvtWarmTime

uint32_t vvtWarmTime
static