Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
drv_custom_config_pwm.h
Go to the documentation of this file.
1
8#ifndef DRV_CONFIG_CUSTOM_PWM_H
9#define DRV_CONFIG_CUSTOM_PWM_H
10
11#include "pwrctrl/pwrctrl_typedef.h"
13#include "config/macros.h"
14#include "pwm_hs/pwm.h"
15
16
25static __inline__ void DRV_Config_Custom_PWM(void)
26{
27 //PWMs needs to be re-triggerable for cascaded PWM scheme
32
33 // PWM Swap output based on the hardware
34 //PWM_Swap_PWMxL_and_PWMxH(PWM_PRI_2, true);
35 //PWM_Swap_PWMxL_and_PWMxH(PWM_SEC_2, true);
36
37 // Fault mode is Latched mode
42
43 // Stop PWMs straight away upon detection of a fault
48
53
54}
55
56#endif /* DRV_MCC_CONFIG_PWM_H */
57
This is the generated driver header file for the PWM driver.
@ PWM_SEC_1
@ PWM_PRI_1
@ PWM_SEC_2
@ PWM_PRI_2
Contains public functions and defines for the MCC code extension for PWM.
static void PWM_PCI_Fault_AcceptanceCriteria(uint16_t pwmIndex, PWM_PCI_ACCEPTANCE_CRITERIA_t acpSetting)
Set PCI fault acceptance criteria.
static void PWM_PCI_Fault_TimetoTerminateAfterEvent(uint16_t pwmIndex, PWM_PCI_TERMTIME_AFTER_EVENT_t faultTerm)
Set TSYNCDIS bit to determine when PWM should stop after a fault occurs.
static void PWM_Trigger_Mode(uint16_t pwmIndex, PWM_TRIG_MODE_t trigMode)
Set source of fault PCI acceptance qualifier.
static void PWM_Fault_DataMode(uint16_t pwmIndex, PWM_FAULT_DATA_t faultDataMode)
Set the data mode of fault PCI.
static __inline__ void DRV_Config_Custom_PWM(void)
Contains PWM initialization that was not supported by MCC generated code.
@ PWM_PCI_TERMTIME_AFTER_EVENT_IMMEDIATE
@ PWM_FAULT_EVENT_PWML
@ PWM_PCI_ACCEPT_LATCHED
@ PWM_TRIG_MODE_RETRIGGERABLE