SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Faults.h
Go to the documentation of this file.
1
17#ifndef __ECU_FAULTS_H__
18// @cond
19#define __ECU_FAULTS_H__
20// @endcond
21
22#include <stdint.h>
23#include <stdlib.h>
24
29namespace Fault {
30
37bool hardFault(void);
38
45bool softFault(void);
46
53bool anyFault(void);
54
59void logFault(void);
60
61} // namespace Fault
62#endif // __ECU_FAULTS_H__
Fault checking functionality.
Definition Faults.h:29
bool softFault(void)
Check if any non-serious fault has occurred.
bool hardFault(void)
Checks if any 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.