Contains power control state machine functions that is executed every 100us. More...
#include <xc.h>#include <stdint.h>#include <stdbool.h>#include <stddef.h>#include <stdlib.h>#include "pwrctrl.h"#include "device/device.h"#include "fault/fault.h"#include "pwrctrl_pwm.h"#include "system/pins.h"
Include dependency graph for pwrctrl_sm.c:Go to the source code of this file.
Functions | |
| static void | PCS_INIT_handler (POWER_CONTROL_t *pcInstance) |
| Executes function for initialze state machine. | |
| static void | PCS_WAIT_IF_FAULT_ACTIVE_handler (POWER_CONTROL_t *pcInstance) |
| Executes the fault handler state machine. | |
| static void | PCS_STANDBY_handler (POWER_CONTROL_t *pcInstance) |
| Executes Standby State machine. | |
| static void | PCS_SOFT_START_handler (POWER_CONTROL_t *pcInstance) |
| Executes the power control soft start state machine. | |
| static void | PCS_UP_AND_RUNNING_handler (POWER_CONTROL_t *pcInstance) |
| Executes the Online state. | |
| static void | PCS_PRECHARGE_handler (POWER_CONTROL_t *pcInstance) |
| Executes Standby State machine. | |
| void | PwrCtrl_StateMachine (POWER_CONTROL_t *pcInstance) |
| Manages the power control state machine. | |
Variables | |
| float | temp |
| uint16_t | ref_diff |
| uint16_t | delay_count = 2 |
Definition in file pwrctrl_sm.c.
| uint16_t delay_count = 2 |
Definition at line 29 of file pwrctrl_sm.c.
| uint16_t ref_diff |
Definition at line 28 of file pwrctrl_sm.c.
| float temp |
Definition at line 27 of file pwrctrl_sm.c.