You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
431 B
18 lines
431 B
#pragma once
|
|
|
|
#define FAULT_STATUS_NONE 0U
|
|
#define FAULT_STATUS_TEMPORARY 1U
|
|
#define FAULT_STATUS_PERMANENT 2U
|
|
|
|
// Fault types, excerpt from cereal.log.PandaState.FaultType for safety tests
|
|
#define FAULT_RELAY_MALFUNCTION (1UL << 0)
|
|
// ...
|
|
|
|
// Permanent faults
|
|
#define PERMANENT_FAULTS 0U
|
|
|
|
extern uint8_t fault_status;
|
|
extern uint32_t faults;
|
|
|
|
void fault_occurred(uint32_t fault);
|
|
void fault_recovered(uint32_t fault);
|
|
|