|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
pwrctrl_comm_interface.h
Go to the documentation of this file.
1
8#ifndef DRV_PWRCTRL_API_H
9#define DRV_PWRCTRL_API_H
10
11// "set" APIs
12void Dev_PwrCtrl_SetState(uint16_t reference);
13void PwrCtrl_SetPeriodTarget(uint16_t reference);
14void PwrCtrl_SetPhaseTarget(uint16_t reference);
15void PwrCtrl_SetP2SPhaseTarget(uint16_t reference);
16void PwrCtrl_SetEnable(bool enable);
17void PwrCtrl_SetVSecReference(uint16_t reference);
18void PwrCtrl_SetIReference(uint16_t reference);
19void PwrCtrl_SetPwrReference(uint16_t reference);
20
21// "get" APIs
22uint16_t PwrCtrl_GetPhase_P2SDegree(void);
23uint16_t Dev_PwrCtrl_GetAdc_Vpri(void);
24uint16_t Dev_PwrCtrl_GetAdc_Vsec(void);
25uint16_t PwrCtrl_GetAdc_Ipri_ct(void);
26uint16_t PwrCtrl_GetAdc_Isec_ct(void);
27uint16_t PwrCtrl_GetAdc_Isec_avg(void);
28uint16_t PwrCtrl_GetAdc_Temperature(void);
29uint16_t PwrCtrl_GetAdc_Vrail_5V(void);
30uint16_t Dev_PwrCtrl_Get_Period(void);
31uint16_t Dev_PwrCtrl_Get_PwmprdTarget(void);
32uint16_t Dev_PwrCtrl_Get_State(void);
33uint16_t Dev_PwrCtrl_Get_Status(void);
34uint16_t Dev_PwrCtrl_Get_EnableFlag(void);
35uint16_t Dev_PwrCtrl_Get_DutyCycle(void);
36uint16_t Dev_PwrCtrl_Get_SecPower(void);
37uint16_t Dev_PwrCtrl_GetAveraging_Vprim(void);
38uint16_t Dev_PwrCtrl_GetAveraging_Vsec(void);
39uint16_t Dev_PwrCtrl_GetAveraging_Isec(void);
40
41#endif /* DRV_PWRCTRL_API_H */
42
Dev_PwrCtrl_GetAdc_Vpri
uint16_t Dev_PwrCtrl_GetAdc_Vpri(void)
Dev_PwrCtrl_GetAdc_Vsec
uint16_t Dev_PwrCtrl_GetAdc_Vsec(void)
PwrCtrl_SetEnable
void PwrCtrl_SetEnable(bool enable)
API function to set the power control enable bit.
Definition pwrctrl_comm_interface.c:97
Dev_PwrCtrl_Get_State
uint16_t Dev_PwrCtrl_Get_State(void)
API function to get the current state of the state machine.
Definition pwrctrl_comm_interface.c:178
Dev_PwrCtrl_GetAveraging_Isec
uint16_t Dev_PwrCtrl_GetAveraging_Isec(void)
API function to get the average value of the sampled ADC for secondary current.
Definition pwrctrl_comm_interface.c:247
Dev_PwrCtrl_GetAveraging_Vsec
uint16_t Dev_PwrCtrl_GetAveraging_Vsec(void)
API function to get the average value of the sampled ADC for secondary voltage.
Definition pwrctrl_comm_interface.c:237
PwrCtrl_SetPwrReference
void PwrCtrl_SetPwrReference(uint16_t reference)
API function to set the power controller reference.
Definition pwrctrl_comm_interface.c:58
PwrCtrl_GetPhase_P2SDegree
uint16_t PwrCtrl_GetPhase_P2SDegree(void)
API function to set the power control State.
Definition pwrctrl_comm_interface.c:18
PwrCtrl_GetAdc_Isec_avg
uint16_t PwrCtrl_GetAdc_Isec_avg(void)
API function to get the raw ADC value for secondary average current.
Definition pwrctrl_comm_interface.c:128
PwrCtrl_GetAdc_Ipri_ct
uint16_t PwrCtrl_GetAdc_Ipri_ct(void)
API function to get the raw ADC value for primary current transformer current.
Definition pwrctrl_comm_interface.c:108
Dev_PwrCtrl_Get_Period
uint16_t Dev_PwrCtrl_Get_Period(void)
API function to get the PWM period.
Definition pwrctrl_comm_interface.c:158
Dev_PwrCtrl_GetAveraging_Vprim
uint16_t Dev_PwrCtrl_GetAveraging_Vprim(void)
API function to get the average value of the sampled ADC for primary voltage.
Definition pwrctrl_comm_interface.c:228
PwrCtrl_SetIReference
void PwrCtrl_SetIReference(uint16_t reference)
API function to set the current controller reference.
Definition pwrctrl_comm_interface.c:38
PwrCtrl_SetPeriodTarget
void PwrCtrl_SetPeriodTarget(uint16_t reference)
API function to set the target period.
Definition pwrctrl_comm_interface.c:68
Dev_PwrCtrl_Get_EnableFlag
uint16_t Dev_PwrCtrl_Get_EnableFlag(void)
API function to get the state of the power control enable bit.
Definition pwrctrl_comm_interface.c:199
PwrCtrl_SetP2SPhaseTarget
void PwrCtrl_SetP2SPhaseTarget(uint16_t reference)
API function to set the target prim to sec phase which will steer other modulation.
Definition pwrctrl_comm_interface.c:87
PwrCtrl_SetVSecReference
void PwrCtrl_SetVSecReference(uint16_t reference)
API function to set the secondary voltage controller reference.
Definition pwrctrl_comm_interface.c:48
Dev_PwrCtrl_Get_Status
uint16_t Dev_PwrCtrl_Get_Status(void)
API function to get the power control status.
Definition pwrctrl_comm_interface.c:188
PwrCtrl_GetAdc_Isec_ct
uint16_t PwrCtrl_GetAdc_Isec_ct(void)
API function to get the raw ADC value for secondary current transformer current.
Definition pwrctrl_comm_interface.c:118
PwrCtrl_GetAdc_Temperature
uint16_t PwrCtrl_GetAdc_Temperature(void)
API function to get the raw ADC value for temperature.
Definition pwrctrl_comm_interface.c:138
Dev_PwrCtrl_Get_DutyCycle
uint16_t Dev_PwrCtrl_Get_DutyCycle(void)
API function to get the PWM duty cycle.
Definition pwrctrl_comm_interface.c:168
Dev_PwrCtrl_Get_PwmprdTarget
uint16_t Dev_PwrCtrl_Get_PwmprdTarget(void)
API function to get the PWM period target.
Definition pwrctrl_comm_interface.c:209
Dev_PwrCtrl_SetState
void Dev_PwrCtrl_SetState(uint16_t reference)
API function to set the power control State.
Definition pwrctrl_comm_interface.c:28
PwrCtrl_SetPhaseTarget
void PwrCtrl_SetPhaseTarget(uint16_t reference)
API function to set the target PWM phase.
Definition pwrctrl_comm_interface.c:78
PwrCtrl_GetAdc_Vrail_5V
uint16_t PwrCtrl_GetAdc_Vrail_5V(void)
API function to get the raw ADC value for 5V rail.
Definition pwrctrl_comm_interface.c:148
Dev_PwrCtrl_Get_SecPower
uint16_t Dev_PwrCtrl_Get_SecPower(void)
API function to get the secondary power.
Definition pwrctrl_comm_interface.c:219