22#include "mcc_generated_files/system/pins.h"
23#include "mcc_generated_files/system/interrupt.h"
28#include "sources/misc/MCC_add_on.h"
64#define VoutStartUpVary 150
65#define CurrentOffsetLowLimit 2020
66#define CurrentOffsetHighLimit 2070
73static uint16_t RelayTimeCounter = t2sec, RelayTimeCounterStart = t20ms;
74static uint16_t CalibrationTimeCounter = t2sec;
93 if ((SI1FIFOCSbits.SWFEN) && (SI1FIFOCSbits.SWFEMPTY))
220 if ((CalibrationTimeCounter--) == 0)
293 RelayTimeCounter = t1sec;
317 if ((RelayTimeCounter--) == 0)
319#ifdef VOUT_PRECHARGE_PCS_ENABLE
381 RelayTimeCounter = t20ms;
405 RelayTimeCounterStart = 1;
449#ifdef MODE_GRID_TIE_INVERTER
PHASE_VALUES_t Phase_Values_PH2
PWR_CTRL_STATE_e pwr_ctrl_state
VMC_VALUES_t Vout_Control
PHASE_VALUES_t Phase_Values_PH1
This is the typedef file for power controller.
@ PCS_WAIT_IF_FAULT_ACTIVE
@ PCS_DELAY_AFTER_RELAYON
void SendMSIFIFOMessage(void)
void ReceiveMSIAMessage(void)
This is the driver header file for MSI.
SMPS_2P2Z_T PHx_AVG_CM2p2z[3]
This is the driver header file for the power controller.
void Drv_PwrCtrl_TPBLPFC_Stop(void)
PWR_CTRL_STATE_e Softstart_reference(void)
This is the driver header file for the power controller misc app.
void SMPS_Controller2P2ZInitialize(SMPS_2P2Z_T *controllerData)
Allows the user to change the advanced operating parameters.
#define VOUT_PRECHARGE_VALUE
static void INTERRUPT_GlobalEnable(void)
Enables the global interrupt bit.
static void INTERRUPT_GlobalDisable(void)
Disables the global interrupt bit.
#define RELAY_SetLow()
Sets the RD14 GPIO Pin which has a custom name of RELAY to Low.
#define RELAY_SetHigh()
Sets the RD14 GPIO Pin which has a custom name of RELAY to High.
volatile uint16_t Filtered
volatile uint16_t Reference_Set
volatile uint16_t Reference_Internal
volatile uint16_t CCM_Counter
struct CONTROL_STATUS_FLAGS_s::@24::@26 bits
volatile unsigned Reference_Changed
volatile unsigned VAC_Polarity_last
volatile unsigned VAC_Polarity_Changed
volatile unsigned VAC_Polarity
struct ACCONTROL_PHASE_STATUS_FLAGS_s::@27::@29 bits
ACCONTROL_PHASE_STATUS_FLAGS_t ACcontrol_Status_Flags_perPhase
CONTROLLER_VALUES_t Controller_Values
ANALOG_VALUES_t Phase_Current
CONTROL_STATUS_FLAGS_t Control_Status_Flags
CONTROL_REFERENCE_VALUES_t Reference
struct PFC_FLAGS_s::@30::@32 bits
volatile unsigned OV_Vout