PER Firmware
Loading...
Searching...
No Matches
faults_common.h File Reference

Event-based FIDR system. More...

#include <stdint.h>
#include "common/can_library/generated/can_types.h"

Go to the source code of this file.

Classes

struct  fault_t
 

Enumerations

enum  fault_priority_t : uint8_t { FAULT_PRIO_WARNING , FAULT_PRIO_ERROR , FAULT_PRIO_FATAL , NUM_FAULT_PRIOS }
 
enum  fault_state_t : uint8_t { FAULT_STATE_CLEAR = 0 , FAULT_STATE_PENDING = 1 , FAULT_STATE_LATCHED = 2 , FAULT_STATE_RECOVERING = 3 }
 

Functions

void update_fault (fault_id_t fault_id, uint16_t value)
 
bool is_latched (fault_id_t fault_id)
 
bool is_clear (fault_id_t fault_id)
 
void fault_library_periodic ()
 
bool is_warning_latched ()
 
bool is_error_latched ()
 
bool is_fatal_latched ()
 
bool is_curr_mcu_latched ()
 
bool is_other_mcus_latched ()
 
bool is_any_latched ()
 

Detailed Description

Event-based FIDR system.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)