Contains fault functions including the fault handler, fault object initialization and fault execution. More...
#include "xc.h"#include <stdbool.h>#include <stddef.h>#include "cmp/cmp3.h"#include "pwm_hs/pwm.h"#include "system/pins.h"#include "device/device.h"#include "pwrctrl/pwrctrl.h"#include "fault_common.h"#include "fault.h"#include "fault_comm_interface.h"#include "pwrctrl/pwrctrl_pwm.h"
Include dependency graph for fault.c:Go to the source code of this file.
Functions | |
| static void | Fault_PrimaryOverCurrent_EventHandler () |
| callback for primary OC | |
| void | Fault_Initialize (void) |
| Initialize the fault objects. | |
| void | Fault_Execute (void) |
| Executes the fault handlers. | |
| void | Fault_Reset (void) |
| Clears the fault object flag bits. | |
| void | Fault_Handler (void) |
| Handles the fault trip by turning off the power control switching. | |
Variables | |
| bool | loadDisconnect = false |
Definition in file fault.c.