Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

Public functions of the first application layer task. More...

+ Collaboration diagram for Public Functions:

Functions

volatile uint16_t appFaultMonitor_Execute (void)
 Application wide fault object monitoring routine. More...
 
volatile uint16_t appFaultMonitor_Initialize (void)
 Initialization of user-defined fault objects. More...
 
volatile uint16_t appFaultMonitor_Dispose (void)
 Function clearing all fault object settings. More...
 

Detailed Description

Public functions of the first application layer task.

This is the detailed description of public functions of the fault monitor application layer.

Function Documentation

◆ appFaultMonitor_Dispose()

volatile uint16_t appFaultMonitor_Dispose ( void  )

Function clearing all fault object settings.

Returns
0=failure
1=success

This function is used to clear all fault objects settings. Once cleared, the fault objects are detached from memory addresses and cannot be used for fault monitoring anymore until they have been re-initialized.

Definition at line 165 of file app_fault_monitor.c.

◆ appFaultMonitor_Execute()

volatile uint16_t __attribute__volatile uint16_t appFaultMonitor_Execute ( void  )

Application wide fault object monitoring routine.


Returns
0=failure
1=success

In this function all user-defined fault objects are monitored for threshold violations. While fault responses are triggered by each fault object individually, system recovery from a fault condition is only allowed when all fault conditions have been cleared. Hence, individual fault status bits are combined into a common fault bit, which needs to be cleared to allow the power supply to start-up again.

Definition at line 65 of file app_fault_monitor.c.

+ Here is the caller graph for this function:

◆ appFaultMonitor_Initialize()

volatile uint16_t appFaultMonitor_Initialize ( void  )

Initialization of user-defined fault objects.

Returns
0=failure
1=success

This function initializes the user-defined fault objects like the setpoints, fault conditions and ADC sources for Under-voltage Lockout, Over-voltage lockout, Output current protection and Regulation error.

Definition at line 138 of file app_fault_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: