Contains functions that initialize, execute and handles the power supply fault. More...
Files | |
file | fault.c |
Contains fault functions including the fault handler, fault object initialization and fault execution. | |
file | fault.h |
Contains public fault functions. | |
file | fault_comm_interface.c |
Contains API functions for fault protection. | |
file | fault_comm_interface.h |
Contains API functions for fault protection. | |
Functions | |
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. | |
static void | Fault_PrimaryOverCurrent_EventHandler () |
callback for primary OC | |
void | Fault_Handler (void) |
Handles the fault trip by turning off the power control switching. | |
This document covers the fault initialization, the fault execute function, and the fault handler.
void Fault_Execute | ( | void | ) |
This function evaluates if any of the fault objects has been tripped. When fault detection occurs, the power converter will shutdown thus turn-off the power converter.
Definition at line 134 of file fault.c.
void Fault_Handler | ( | void | ) |
This function handles the occurence of fault when one of the fault condition trips. It shuts down the operation of the power control, set the FaultActive bit and clear the Running bit indicating that power converter has been turned-off. A fault pin is also set to low to blocked the PWM signal as a hardware protection.
Definition at line 324 of file fault.c.
void Fault_Initialize | ( | void | ) |
|
static |
This function evaluates if any of the fault objects has been tripped. When fault detection occurs, the power converter will shutdown thus turn-off the power converter.
Definition at line 294 of file fault.c.