SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Faults.h File Reference

Checks for defined faults from canbus addresses or pins. More...

#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Namespaces

namespace  Fault
 Fault checking functionality.
 

Functions

bool Fault::hardFault (void)
 Checks if any serious fault has occurred.
 
bool Fault::softFault (void)
 Check if any non-serious fault has occurred.
 
bool Fault::anyFault (void)
 Checks both hardFault and softFault.
 
void Fault::logFault (void)
 Interprets and logs the last fault that was checked using the Log library.
 

Detailed Description

Checks for defined faults from canbus addresses or pins.

Author
IR
Version
0.1
Date
2021-01-27

Faults are messages that indicate that somthing may be wrong in the general system.

Faults can come from either GPIO pins or CanBus, CanPins are not supported.

See also
FaultConfig.def for defining faults to check for.

Definition in file Faults.h.