Speeduino
Loading...
Searching...
No Matches
Functions | Variables
auxiliaries.cpp File Reference
#include "globals.h"
#include "auxiliaries.h"
#include "maths.h"
#include "src/PID_v1/PID_v1.h"
#include "decoders.h"
#include "timers.h"

Functions

static void checkAirConCoolantLockout (void)
 
static void checkAirConTPSLockout (void)
 
static void checkAirConRPMLockout (void)
 
void initialiseAirCon (void)
 
void airConControl (void)
 
bool READ_AIRCON_REQUEST (void)
 
void initialiseFan (void)
 
void fanControl (void)
 
void initialiseAuxPWM (void)
 
void boostByGear (void)
 
void boostControl (void)
 
void vvtControl (void)
 
void nitrousControl (void)
 
void wmiControl (void)
 
void boostDisable (void)
 
void boostInterrupt (void)
 
void vvtInterrupt (void)
 

Variables

static long vvt1_pwm_value
 
static long vvt2_pwm_value
 
volatile unsigned int vvt1_pwm_cur_value
 
volatile unsigned int vvt2_pwm_cur_value
 
static long vvt_pid_target_angle
 
static long vvt2_pid_target_angle
 
static long vvt_pid_current_angle
 
static long vvt2_pid_current_angle
 
volatile bool vvt1_pwm_state
 
volatile bool vvt2_pwm_state
 
volatile bool vvt1_max_pwm
 
volatile bool vvt2_max_pwm
 
volatile char nextVVT
 
byte boostCounter
 
byte vvtCounter
 
volatile PORT_TYPEboost_pin_port
 
volatile PINMASK_TYPE boost_pin_mask
 
volatile PORT_TYPEn2o_stage1_pin_port
 
volatile PINMASK_TYPE n2o_stage1_pin_mask
 
volatile PORT_TYPEn2o_stage2_pin_port
 
volatile PINMASK_TYPE n2o_stage2_pin_mask
 
volatile PORT_TYPEn2o_arming_pin_port
 
volatile PINMASK_TYPE n2o_arming_pin_mask
 
volatile PORT_TYPEaircon_comp_pin_port
 
volatile PINMASK_TYPE aircon_comp_pin_mask
 
volatile PORT_TYPEaircon_fan_pin_port
 
volatile PINMASK_TYPE aircon_fan_pin_mask
 
volatile PORT_TYPEaircon_req_pin_port
 
volatile PINMASK_TYPE aircon_req_pin_mask
 
volatile PORT_TYPEvvt1_pin_port
 
volatile PINMASK_TYPE vvt1_pin_mask
 
volatile PORT_TYPEvvt2_pin_port
 
volatile PINMASK_TYPE vvt2_pin_mask
 
volatile PORT_TYPEfan_pin_port
 
volatile PINMASK_TYPE fan_pin_mask
 
bool acIsEnabled
 
bool acStandAloneFanIsEnabled
 
uint8_t acStartDelay
 
uint8_t acTPSLockoutDelay
 
uint8_t acRPMLockoutDelay
 
uint8_t acAfterEngineStartDelay
 
bool waitedAfterCranking
 
long boost_pwm_target_value
 
volatile bool boost_pwm_state
 
volatile unsigned int boost_pwm_cur_value = 0
 
uint32_t vvtWarmTime
 
bool vvtIsHot
 
bool vvtTimeHold
 
uint16_t vvt_pwm_max_count
 
uint16_t boost_pwm_max_count
 
integerPID_ideal boostPIDcurrentStatus
 

Function Documentation

◆ airConControl()

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

◆ boostByGear()

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

◆ boostControl()

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

◆ boostDisable()

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

◆ boostInterrupt()

void boostInterrupt ( void  )

◆ checkAirConCoolantLockout()

static void checkAirConCoolantLockout ( void  )
inlinestatic
Here is the caller graph for this function:

◆ checkAirConRPMLockout()

static void checkAirConRPMLockout ( void  )
inlinestatic
Here is the caller graph for this function:

◆ checkAirConTPSLockout()

static void checkAirConTPSLockout ( void  )
inlinestatic
Here is the caller graph for this function:

◆ fanControl()

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

◆ initialiseAirCon()

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

◆ initialiseAuxPWM()

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

◆ initialiseFan()

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

◆ nitrousControl()

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

◆ READ_AIRCON_REQUEST()

bool READ_AIRCON_REQUEST ( void  )
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  )

◆ wmiControl()

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

Variable Documentation

◆ acAfterEngineStartDelay

uint8_t acAfterEngineStartDelay

◆ acIsEnabled

bool acIsEnabled

◆ acRPMLockoutDelay

uint8_t acRPMLockoutDelay

◆ acStandAloneFanIsEnabled

bool acStandAloneFanIsEnabled

◆ acStartDelay

uint8_t acStartDelay

◆ acTPSLockoutDelay

uint8_t acTPSLockoutDelay

◆ aircon_comp_pin_mask

volatile PINMASK_TYPE aircon_comp_pin_mask

◆ aircon_comp_pin_port

volatile PORT_TYPE* aircon_comp_pin_port

◆ aircon_fan_pin_mask

volatile PINMASK_TYPE aircon_fan_pin_mask

◆ aircon_fan_pin_port

volatile PORT_TYPE* aircon_fan_pin_port

◆ aircon_req_pin_mask

volatile PINMASK_TYPE aircon_req_pin_mask

◆ aircon_req_pin_port

volatile PORT_TYPE* aircon_req_pin_port

◆ boost_pin_mask

volatile PINMASK_TYPE boost_pin_mask

◆ boost_pin_port

volatile PORT_TYPE* boost_pin_port

◆ boost_pwm_cur_value

volatile unsigned int boost_pwm_cur_value = 0

◆ boost_pwm_max_count

uint16_t boost_pwm_max_count

◆ boost_pwm_state

volatile bool boost_pwm_state

◆ boost_pwm_target_value

long boost_pwm_target_value

◆ boostCounter

byte boostCounter

◆ currentStatus

integerPID_ideal boostPID& currentStatus

◆ fan_pin_mask

volatile PINMASK_TYPE fan_pin_mask

◆ fan_pin_port

volatile PORT_TYPE* fan_pin_port

◆ n2o_arming_pin_mask

volatile PINMASK_TYPE n2o_arming_pin_mask

◆ n2o_arming_pin_port

volatile PORT_TYPE* n2o_arming_pin_port

◆ n2o_stage1_pin_mask

volatile PINMASK_TYPE n2o_stage1_pin_mask

◆ n2o_stage1_pin_port

volatile PORT_TYPE* n2o_stage1_pin_port

◆ n2o_stage2_pin_mask

volatile PINMASK_TYPE n2o_stage2_pin_mask

◆ n2o_stage2_pin_port

volatile PORT_TYPE* n2o_stage2_pin_port

◆ nextVVT

volatile char nextVVT

◆ vvt1_max_pwm

volatile bool vvt1_max_pwm

◆ vvt1_pin_mask

volatile PINMASK_TYPE vvt1_pin_mask

◆ vvt1_pin_port

volatile PORT_TYPE* vvt1_pin_port

◆ vvt1_pwm_cur_value

volatile unsigned int vvt1_pwm_cur_value

◆ vvt1_pwm_state

volatile bool vvt1_pwm_state

◆ vvt1_pwm_value

long vvt1_pwm_value
static

◆ vvt2_max_pwm

volatile bool vvt2_max_pwm

◆ vvt2_pid_current_angle

integerPID vvt2PID & vvt2_pid_current_angle
static

◆ vvt2_pid_target_angle

long vvt2_pid_target_angle
static

◆ vvt2_pin_mask

volatile PINMASK_TYPE vvt2_pin_mask

◆ vvt2_pin_port

volatile PORT_TYPE* vvt2_pin_port

◆ vvt2_pwm_cur_value

volatile unsigned int vvt2_pwm_cur_value

◆ vvt2_pwm_state

volatile bool vvt2_pwm_state

◆ vvt2_pwm_value

long vvt2_pwm_value
static

◆ vvt_pid_current_angle

integerPID vvtPID & vvt_pid_current_angle
static

◆ vvt_pid_target_angle

long vvt_pid_target_angle
static

◆ vvt_pwm_max_count

uint16_t vvt_pwm_max_count

◆ vvtCounter

byte vvtCounter

◆ vvtIsHot

bool vvtIsHot

◆ vvtTimeHold

bool vvtTimeHold

◆ vvtWarmTime

uint32_t vvtWarmTime

◆ waitedAfterCranking

bool waitedAfterCranking