Bar Logo 4kW dsPIC33C PSFB DC-DC DA (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
pwrctrl_comm_interface.h
Go to the documentation of this file.
1
7#ifndef DRV_PWRCTRL_API_H
8#define DRV_PWRCTRL_API_H
9
10// "set" APIs
11void Dev_PwrCtrl_SetState(uint16_t reference);
12void PwrCtrl_SetPeriodTarget(uint16_t reference);
13void PwrCtrl_SetPhaseTarget(uint16_t reference);
14void PwrCtrl_SetP2SPhaseTarget(uint16_t reference);
15void PwrCtrl_SetEnable(bool enable);
16void PwrCtrl_SetVSecReference(uint16_t reference);
17void PwrCtrl_SetIReference(uint16_t reference);
18void PwrCtrl_SetPwrReference(uint16_t reference);
19
20// "get" APIs
21uint16_t PwrCtrl_GetPhase_P2SDegree(void);
22uint16_t Dev_PwrCtrl_GetAdc_Vpri(void);
23uint16_t Dev_PwrCtrl_GetAdc_Vsec(void);
24uint16_t PwrCtrl_GetAdc_Ipri_ct(void);
25uint16_t PwrCtrl_GetAdc_Isec_shunt(void);
26uint16_t PwrCtrl_GetAdc_Isec_avg(void);
27uint16_t PwrCtrl_GetAdc_Temperature(void);
28uint16_t PwrCtrl_GetAdc_Vrail_5V(void);
29uint16_t Dev_PwrCtrl_Get_Period(void);
30uint16_t Dev_PwrCtrl_Get_PwmprdTarget(void);
31uint16_t Dev_PwrCtrl_Get_State(void);
32uint16_t Dev_PwrCtrl_Get_Status(void);
33uint16_t Dev_PwrCtrl_Get_EnableFlag(void);
34uint16_t Dev_PwrCtrl_Get_DutyCycle(void);
35uint16_t Dev_PwrCtrl_Get_SecPower(void);
39uint16_t Dev_PwrCtrl_GetIsec_Offset(void);
40uint16_t Dev_PwrCtrl_GetIPri_Offset(void);
41
42
43uint16_t Dev_PwrCtrl_GetControl_Phase(void);
44
45#endif /* DRV_PWRCTRL_API_H */
46
void PwrCtrl_SetEnable(bool enable)
API function to set the power control enable bit.
uint16_t Dev_PwrCtrl_Get_State(void)
API function to get the current state of the state machine.
uint16_t Dev_PwrCtrl_GetIPri_Offset(void)
API function to get the value of the primary sensor offset value.
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_GetAveraging_Vsec(void)
API function to get the average value of the sampled ADC for secondary voltage.
void PwrCtrl_SetPwrReference(uint16_t reference)
API function to set the power controller reference.
uint16_t PwrCtrl_GetPhase_P2SDegree(void)
API function to set the power control State.
uint16_t PwrCtrl_GetAdc_Isec_avg(void)
API function to get the raw ADC value for secondary average current.
uint16_t PwrCtrl_GetAdc_Ipri_ct(void)
API function to get the raw ADC value for primary current transformer current.
uint16_t Dev_PwrCtrl_Get_Period(void)
API function to get the PWM period.
uint16_t Dev_PwrCtrl_GetAveraging_Vprim(void)
API function to get the average value of the sampled ADC for primary voltage.
void PwrCtrl_SetIReference(uint16_t reference)
API function to set the current controller reference.
uint16_t PwrCtrl_GetAdc_Isec_shunt(void)
API function to get the raw ADC value for secondary current transformer current.
uint16_t Dev_PwrCtrl_GetIsec_Offset(void)
API function to get the value of the secondary sensor offset value.
void PwrCtrl_SetPeriodTarget(uint16_t reference)
API function to set the target period.
uint16_t Dev_PwrCtrl_Get_EnableFlag(void)
API function to get the state of the power control enable bit.
void PwrCtrl_SetP2SPhaseTarget(uint16_t reference)
API function to set the target prim to sec phase which will steer other modulation.
uint16_t Dev_PwrCtrl_GetAdc_Vpri(void)
API function to get the value of the sampled ADC for input Voltage.
void PwrCtrl_SetVSecReference(uint16_t reference)
API function to set the secondary voltage controller reference.
uint16_t Dev_PwrCtrl_GetAdc_Vsec(void)
API function to get the value of the sampled ADC for output Voltage.
uint16_t Dev_PwrCtrl_Get_Status(void)
API function to get the power control status.
uint16_t PwrCtrl_GetAdc_Temperature(void)
API function to get the raw ADC value for temperature.
uint16_t Dev_PwrCtrl_Get_DutyCycle(void)
API function to get the PWM duty cycle.
uint16_t Dev_PwrCtrl_Get_PwmprdTarget(void)
API function to get the PWM period target.
void Dev_PwrCtrl_SetState(uint16_t reference)
API function to set the power control State.
void PwrCtrl_SetPhaseTarget(uint16_t reference)
API function to set the target PWM phase.
uint16_t PwrCtrl_GetAdc_Vrail_5V(void)
API function to get the raw ADC value for 5V rail.
uint16_t Dev_PwrCtrl_GetControl_Phase(void)
API function to get the value of the phase value.
uint16_t Dev_PwrCtrl_Get_SecPower(void)
API function to get the secondary power.