35#include <p33CH512MP506S1.h>
40#include "../../../revision.h"
41#include "../mcc_generated_files/system/pins.h"
67 uint8_t command_id = (uint8_t) ((
pMSIAdata[0] & 0xFF00) >> 8);
68 uint8_t control_byte = (uint8_t) (
pMSIAdata[0] & 0x00FF);
70 if (command_id == 0x55)
72 if (control_byte == 0x00)
80 else if (control_byte == 0x01)
88 else if (control_byte == 0xA0)
92 else if (control_byte == 0xA1)
96 else if (control_byte == 0x60)
102 else if (command_id == 0xEF)
111 else if (command_id == 0xDC)
115 else if (command_id == 0xCD)
136 static uint16_t TickCounter_ = 0;
138 if (++TickCounter_ > 50)
173 SWMRFDATA = (uint16_t)((MAJOR << 8) + MINOR);
175 SWMRFDATA = (uint16_t)((PATCH << 8));
197 for(i_= 12; i_< 32; i_++)
This is the generated driver header file for the MAIN_CORE driver.
uint16_t OpenLoopStartupDuration
PWR_CTRL_STATE_e pwr_ctrl_state
uint16_t Adaptive_Gain_Factor
VMC_VALUES_t Vout_Control
PHASE_VALUES_t Phase_Values_PH1
This is the typedef file for power controller.
void SendMSIFIFOMessage(void)
void ReceiveMSIAMessage(void)
void FIFOData_SendToPrim(void)
This is the driver header file for MSI.
#define MAXIMUM_REFERENCE_SET_VALUE
#define RELAY_SetHigh()
Sets the RD14 GPIO Pin which has a custom name of RELAY to High.
bool MAIN_CORE_ProtocolRead(enum MAIN_CORE_PROTOCOLS protocolName, uint16_t *pData)
This routine reads data from mailbox.
volatile uint16_t Filtered
volatile int16_t Vin_div_Averaged2
volatile uint16_t Voltage_Loop_Output
volatile uint16_t Reference_Set
volatile uint16_t Reference_Internal
volatile uint16_t IAC_Reference
volatile uint16_t Duty_Cycle_Set_Value
ANALOG_VALUES_t Phase_Voltage
CONTROLLER_VALUES_t Controller_Values
ANALOG_VALUES_t Phase_Current
CONTROL_REFERENCE_VALUES_t Reference
struct PFC_FLAGS_s::@30::@32 bits