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

The statuses struct and related defines. More...

#include <stdint.h>
#include "bit_manip.h"
#include "maths.h"
#include "decoder_builder.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...
 
struct  statuses::engine_protect_flags_t
 Engine protection status fields. More...
 
struct  statuses::scheduler_cut_t
 Fuel and ignition scheduler cut state. More...
 

Typedefs

using byte = uint8_t
 

Enumerations

enum class  SchedulerCutStatus : uint8_t { None , Rolling , Full }
 The current status of scheduler channel cuts. More...
 

Functions

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

Enumeration Type Documentation

◆ SchedulerCutStatus

The current status of scheduler channel cuts.

Enumerator
None 

No cuts are in effect

Rolling 

Rolling cut is in effect.

Full 

Full cut is applied.

Function Documentation

◆ setRpm()

void setRpm ( statuses status,
uint16_t  rpm 
)

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: