EPC9143 300 W 16th Brick DC/DC Module Reference Design
app_power_control.h
1 
33 /*
34  * File: app_power_control.h
35  * Author: M91406
36  * Comments: Power control application layer
37  * Revision history:
38  */
39 
40 // This is a guard condition so that contents of this file are not included
41 // more than once.
42 #ifndef APPLICATION_LAYER_POWER_CONTROL_H
43 #define APPLICATION_LAYER_POWER_CONTROL_H
44 
45 #include <xc.h> // include processor files - each processor file is guarded.
46 #include <stdint.h> // include standard integer data types
47 #include <stdbool.h> // include standard boolean data types
48 #include <stddef.h> // include standard definition data types
49 
50 #include "devices/dev_buck_typedef.h" // include buck converter object declarations
51 
52 
62 extern volatile struct BUCK_CONVERTER_s buck;
63 
64 // PUBLIC FUNCTION PROTOTYPE DECLARATION
65 extern volatile uint16_t appPowerSupply_Initialize(void);
66 extern volatile uint16_t appPowerSupply_Execute(void);
67 extern volatile uint16_t appPowerSupply_Start(void);
68 extern volatile uint16_t appPowerSupply_Stop(void);
69 extern volatile uint16_t appPowerSupply_Suspend(void);
70 extern volatile uint16_t appPowerSupply_Resume(void);
71 
72 #else
73  #pragma message "app_power_control.h inclusion bypassed"
74 #endif /* APPLICATION_LAYER_POWER_CONTROL_H */
75 
BUCK_CONVERTER_s
BUCK control & monitoring data structure.
Definition: dev_buck_typedef.h:501
appPowerSupply_Start
volatile uint16_t appPowerSupply_Start(void)
This function calls the buck converter device driver function starting the power supply.
Definition: app_power_control.c:210
appPowerSupply_Stop
volatile uint16_t appPowerSupply_Stop(void)
This function calls the buck converter device driver function stopping the power supply.
Definition: app_power_control.c:238
buck
volatile struct BUCK_CONVERTER_s buck
Global data object for a BUCK CONVERTER.
Definition: app_power_control.c:63
appPowerSupply_Execute
volatile uint16_t appPowerSupply_Execute(void)
This is the top-level function call triggering the most recent state machine of all associated power ...
Definition: app_power_control.c:71
appPowerSupply_Suspend
volatile uint16_t appPowerSupply_Suspend(void)
This function stops the power supply operation.
Definition: app_power_control.c:259
appPowerSupply_Resume
volatile uint16_t appPowerSupply_Resume(void)
This function resumes the power supply operation.
Definition: app_power_control.c:280
appPowerSupply_Initialize
volatile uint16_t appPowerSupply_Initialize(void)
Calls the application layer power controller initialization.
Definition: app_power_control.c:176