59 #ifndef FOXBMS__PWM_H_
60 #define FOXBMS__PWM_H_
65 #include "HL_reg_ecap.h"
107 #ifdef UNITY_UNIT_TEST
108 extern int16_t TEST_PWM_GetLinearOffset(
void);
General macros and definitions for the whole platform.
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 ECAP_GetPwmData(void)
Get dutycycle and frequency of input PWM signal.
bool PWM_IsEcapModuleInitialized(void)
Get initialization state of ecap module.