Speeduino
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
fanController.cpp File Reference
#include "../../pins/boardOutputPin.h"
#include "../../../units.h"
#include "../../../unit_testing.h"
#include "../../../globals.h"
#include "src/pins/invertableOutputPin.h"
#include "src/pins/outputPin.h"
#include "src/pwm/PwmOutputChannel.h"
#include "src/pwm/interruptHandlers.h"

Typedefs

using fanPwmChannel_t = PwmOutputChannel< invertableOutputPinAdaper_t< outputPin_t > >
 

Functions

static void applyDutyToPwm (const statuses &current)
 
void initialiseFan (statuses &current, config2 &page2, const config6 &page6, const pinNumbers_t &pins)
 
static bool airConTurnsFanOn (const statuses &current, const config15 &page15)
 
static bool isFanPermitted (const statuses &current, const config2 &page2)
 
static uint8_t calculateDutyOnOffMode (const statuses &current, const config2 &page2, const config6 &page6, const config15 &page15)
 
static uint8_t calculateDuty (const statuses &current, const config2 &page2, const config6 &page6, const config15 &page15)
 
TESTABLE_STATIC void fanControlCore (statuses &current, const config2 &page2, const config6 &page6, const config15 &page15)
 
void fanControl (statuses &current, const config2 &page2, const config6 &page6, const config15 &page15)
 
void fanInterrupt (void)
 

Variables

TESTABLE_CONSTEXPR table2D_u8_u8_4 fanPWMTable & configPage6
 
TESTABLE_STATIC fanPwmChannel_t _fanPwm
 

Typedef Documentation

◆ fanPwmChannel_t

Function Documentation

◆ airConTurnsFanOn()

static bool airConTurnsFanOn ( const statuses &  current,
const config15 &  page15 
)
static

◆ applyDutyToPwm()

static void applyDutyToPwm ( const statuses &  current)
static

◆ calculateDuty()

static uint8_t calculateDuty ( const statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config15 &  page15 
)
static

◆ calculateDutyOnOffMode()

static uint8_t calculateDutyOnOffMode ( const statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config15 &  page15 
)
static

◆ fanControl()

void fanControl ( statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config15 &  page15 
)

◆ fanControlCore()

TESTABLE_STATIC void fanControlCore ( statuses &  current,
const config2 &  page2,
const config6 &  page6,
const config15 &  page15 
)

◆ fanInterrupt()

void fanInterrupt ( void  )

◆ initialiseFan()

void initialiseFan ( statuses &  current,
config2 &  page2,
const config6 &  page6,
const pinNumbers_t &  pins 
)

◆ isFanPermitted()

static bool isFanPermitted ( const statuses &  current,
const config2 &  page2 
)
static

Variable Documentation

◆ _fanPwm

◆ configPage6

TESTABLE_CONSTEXPR table2D_u8_u8_4 fanPWMTable& configPage6
constexpr