Contains functions use to interface to Graphical User Interface or Power Board Visualizer. More...
Files | |
file | pwrctrl_comm_interface.c |
Contains power control interface with communication/gui. | |
file | pwrctrl_comm_interface.h |
Contains public functions relevant for power control communication interface. | |
Functions | |
uint16_t | PwrCtrl_GetPhase_P2SDegree (void) |
API function to set the power control State. | |
void | Dev_PwrCtrl_SetState (uint16_t reference) |
API function to set the power control State. | |
void | PwrCtrl_SetIReference (uint16_t reference) |
API function to set the current controller reference. | |
void | PwrCtrl_SetVSecReference (uint16_t reference) |
API function to set the secondary voltage controller reference. | |
void | PwrCtrl_SetPwrReference (uint16_t reference) |
API function to set the power controller reference. | |
void | PwrCtrl_SetPeriodTarget (uint16_t reference) |
API function to set the target period. | |
void | PwrCtrl_SetPhaseTarget (uint16_t reference) |
API function to set the target PWM phase. | |
void | PwrCtrl_SetP2SPhaseTarget (uint16_t reference) |
API function to set the target prim to sec phase which will steer other modulation. | |
void | PwrCtrl_SetEnable (bool enable) |
API function to set the power control enable bit. | |
uint16_t | PwrCtrl_GetAdc_Ipri_ct (void) |
API function to get the raw ADC value for primary current transformer current. | |
uint16_t | PwrCtrl_GetAdc_Isec_shunt (void) |
API function to get the raw ADC value for secondary current transformer current. | |
uint16_t | PwrCtrl_GetAdc_Isec_avg (void) |
API function to get the raw ADC value for secondary average current. | |
uint16_t | PwrCtrl_GetAdc_Temperature (void) |
API function to get the raw ADC value for temperature. | |
uint16_t | PwrCtrl_GetAdc_Vrail_5V (void) |
API function to get the raw ADC value for 5V rail. | |
uint16_t | Dev_PwrCtrl_Get_Period (void) |
API function to get the PWM period. | |
uint16_t | Dev_PwrCtrl_Get_DutyCycle (void) |
API function to get the PWM duty cycle. | |
uint16_t | Dev_PwrCtrl_Get_State (void) |
API function to get the current state of the state machine. | |
uint16_t | Dev_PwrCtrl_Get_Status (void) |
API function to get the power control status. | |
uint16_t | Dev_PwrCtrl_Get_EnableFlag (void) |
API function to get the state of the power control enable bit. | |
uint16_t | Dev_PwrCtrl_Get_PwmprdTarget (void) |
API function to get the PWM period target. | |
uint16_t | Dev_PwrCtrl_Get_SecPower (void) |
API function to get the secondary power. | |
uint16_t | Dev_PwrCtrl_GetAveraging_Vprim (void) |
API function to get the average value of the sampled ADC for primary voltage. | |
uint16_t | Dev_PwrCtrl_GetAveraging_Vsec (void) |
API function to get the average value of the sampled ADC for secondary voltage. | |
uint16_t | Dev_PwrCtrl_GetAveraging_Isec (void) |
API function to get the average value of the sampled ADC for secondary current. | |
uint16_t | Dev_PwrCtrl_GetVoltage_Vcap (void) |
API function to get the value of the sampled ADC for Capacitor Voltage. | |
uint16_t | Dev_PwrCtrl_GetAdc_Vpri (void) |
API function to get the value of the sampled ADC for input Voltage. | |
uint16_t | Dev_PwrCtrl_GetAdc_Vsec (void) |
API function to get the value of the sampled ADC for output Voltage. | |
uint16_t | Dev_PwrCtrl_GetControl_Phase (void) |
API function to get the value of the phase value. | |
uint16_t | Dev_PwrCtrl_GetIPri_Offset (void) |
API function to get the value of the primary sensor offset value. | |
uint16_t | Dev_PwrCtrl_GetIsec_Offset (void) |
API function to get the value of the secondary sensor offset value. | |
This document covers the functions that sets or gets the power control properties relevant to the Power Board Visualizer.
uint16_t Dev_PwrCtrl_Get_DutyCycle | ( | void | ) |
Definition at line 189 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_Get_EnableFlag | ( | void | ) |
Definition at line 220 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_Get_Period | ( | void | ) |
Definition at line 179 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_Get_PwmprdTarget | ( | void | ) |
Definition at line 230 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_Get_SecPower | ( | void | ) |
Definition at line 240 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_Get_State | ( | void | ) |
Definition at line 199 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_Get_Status | ( | void | ) |
Definition at line 209 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetAdc_Vpri | ( | void | ) |
Definition at line 292 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetAdc_Vsec | ( | void | ) |
Definition at line 302 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetAveraging_Isec | ( | void | ) |
Definition at line 270 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetAveraging_Vprim | ( | void | ) |
Definition at line 249 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetAveraging_Vsec | ( | void | ) |
Definition at line 259 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetControl_Phase | ( | void | ) |
Definition at line 312 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetIPri_Offset | ( | void | ) |
Definition at line 322 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetIsec_Offset | ( | void | ) |
Definition at line 332 of file pwrctrl_comm_interface.c.
uint16_t Dev_PwrCtrl_GetVoltage_Vcap | ( | void | ) |
Definition at line 282 of file pwrctrl_comm_interface.c.
void Dev_PwrCtrl_SetState | ( | uint16_t | reference | ) |
Definition at line 49 of file pwrctrl_comm_interface.c.
uint16_t PwrCtrl_GetAdc_Ipri_ct | ( | void | ) |
Definition at line 129 of file pwrctrl_comm_interface.c.
uint16_t PwrCtrl_GetAdc_Isec_avg | ( | void | ) |
Definition at line 149 of file pwrctrl_comm_interface.c.
uint16_t PwrCtrl_GetAdc_Isec_shunt | ( | void | ) |
Definition at line 139 of file pwrctrl_comm_interface.c.
uint16_t PwrCtrl_GetAdc_Temperature | ( | void | ) |
Definition at line 159 of file pwrctrl_comm_interface.c.
uint16_t PwrCtrl_GetAdc_Vrail_5V | ( | void | ) |
Definition at line 169 of file pwrctrl_comm_interface.c.
uint16_t PwrCtrl_GetPhase_P2SDegree | ( | void | ) |
Definition at line 39 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetEnable | ( | bool | enable | ) |
Definition at line 118 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetIReference | ( | uint16_t | reference | ) |
Definition at line 59 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetP2SPhaseTarget | ( | uint16_t | reference | ) |
Definition at line 108 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetPeriodTarget | ( | uint16_t | reference | ) |
Definition at line 89 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetPhaseTarget | ( | uint16_t | reference | ) |
Definition at line 99 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetPwrReference | ( | uint16_t | reference | ) |
Definition at line 79 of file pwrctrl_comm_interface.c.
void PwrCtrl_SetVSecReference | ( | uint16_t | reference | ) |
Definition at line 69 of file pwrctrl_comm_interface.c.