Contains functions related to PWM properties. More...
Files | |
file | pwrctrl_pwm.c |
Contains DAB control phase calculation between primary and secondary, and the PWM distribution. | |
file | pwrctrl_pwm.h |
Contains public functions for PWM. | |
Functions | |
void | PwrCtrl_PWM_Update (POWER_CONTROL_t *pcInstance) |
PWM distribution for DAB converter. | |
void | PwrCtrl_PWM_Enable (void) |
Enable the PWM output. | |
void | PwrCtrl_PWM_Disable (void) |
Disable the PWM output. | |
void | PwrCtrl_PWM_DAB_DirectionSpecificSwapCfg (PWR_CTRL_CHARGE_STATE_t direction) |
Forward/Reverse Direction related swap pattern on PWM output. | |
This document includes the power control PWM distribution and other PWM functionalities relevant to the application.
void PwrCtrl_PWM_DAB_DirectionSpecificSwapCfg | ( | PWR_CTRL_CHARGE_STATE_t | direction | ) |
pcInstance | Pointer to a power control data object of type POWER_CONTROL_t |
This function swaps H and L of the physical PWM output by setting the swap bits of the PWM module.
Definition at line 177 of file pwrctrl_pwm.c.
void PwrCtrl_PWM_Disable | ( | void | ) |
pcInstance | Pointer to a power control data object of type POWER_CONTROL_t |
This function disable the physical PWM output by setting the override bits of the PWM module.
Definition at line 147 of file pwrctrl_pwm.c.
void PwrCtrl_PWM_Enable | ( | void | ) |
pcInstance | Pointer to a power control data object of type POWER_CONTROL_t |
This function turn on the physical PWM outputs by clearing the output override of the PWM module.
Definition at line 117 of file pwrctrl_pwm.c.
void PwrCtrl_PWM_Update | ( | POWER_CONTROL_t * | pcInstance | ) |
pcInstance | Pointer to a power control data object of type POWER_CONTROL_t |
This function distributes the calculated control phase for the half bridges of the DAB converter. PWM1 and PWM3 drives the primary half bridges and PWM2 and PWM4 drives the secondary half bridges.
Definition at line 25 of file pwrctrl_pwm.c.