59 #ifndef FOXBMS__PWM_H_
60 #define FOXBMS__PWM_H_
64 #include "HL_reg_ecap.h"
109 #ifdef UNITY_UNIT_TEST
114 #ifdef UNITY_UNIT_TEST
void PWM_SetDutyCycle(uint16_t dutyCycle_perm)
Set the duty cycle of the PWM (currently only channel 1A)
void PWM_Initialize(void)
Initializes the ETPWM and the ECAP module.
void PWM_StopPwm(void)
Stop the PWM (stops all configured ePWM channels)
void PWM_StartPwm(void)
Start the PWM (starts all configured ePWM channels)
PWM_SIGNAL_s PWM_GetPwmData(void)
Get dutycycle and frequency of input PWM signal.
bool PWM_IsEcapModuleInitialized(void)
Get initialization state of ecap module.
int16_t TEST_PWM_GetLinearOffset(void)