SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Fault Namespace Reference

Fault checking functionality. More...

Functions

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

Detailed Description

Fault checking functionality.

See also
Faults.h for more info.

Function Documentation

◆ anyFault()

bool Fault::anyFault ( void  )

Checks both hardFault and softFault.

Returns
true A fault has been tripped
false No fault has been tripped

◆ hardFault()

bool Fault::hardFault ( void  )

Checks if any serious fault has occurred.

Returns
true A serious fault has been tripped
false No serious fault has been tripped

◆ logFault()

void Fault::logFault ( void  )

Interprets and logs the last fault that was checked using the Log library.

Note
Recommended not to run right after checking for hard faults, first attend to the hard fault

◆ softFault()

bool Fault::softFault ( void  )

Check if any non-serious fault has occurred.

Returns
true A non-serious fault has been tripped
false No non-serious fault has been tripped