Speeduino
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
statuses.h File Reference

The statuses struct and related defines. More...

#include <stdint.h>
#include "bit_manip.h"
#include "atomic.h"
#include "maths.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  statuses
 The status struct with current values for all 'live' variables. More...
 

Typedefs

using byte = uint8_t
 

Functions

static bool isEngineProtectActive (const statuses &status)
 
static void resetEngineProtect (statuses &status)
 
static void setRpm (statuses &status, uint16_t rpm)
 Set the RPM field, keeping RPMDiv100 in sync.
 

Detailed Description

The statuses struct and related defines.

Typedef Documentation

◆ byte

Function Documentation

◆ isEngineProtectActive()

static bool isEngineProtectActive ( const statuses status)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetEngineProtect()

static void resetEngineProtect ( statuses status)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRpm()

static void setRpm ( statuses status,
uint16_t  rpm 
)
inlinestatic

Set the RPM field, keeping RPMDiv100 in sync.

Parameters
status
smallRpm
Here is the call graph for this function:
Here is the caller graph for this function: