PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches
Type Definitions

Typedefs

typedef float(* DutyCycleUpdateFnc) (uint32_t pwmNo, float duty, pwm_config_t *config)
 Function prototype for the functions to update the duty cycle of specified PWMs.
 

Enumerations

enum  pwm_alignment_t { CENTER_ALIGNED , EDGE_ALIGNED }
 PWM alignment definitions. More...
 
enum  duty_mode_t { OUTPUT_DUTY_AT_PWMH , OUTPUT_DUTY_MINUS_DEADTIME_AT_PWMH }
 Output duty cycle computation definitions in case of PWM pairs. This decides the signal from which the dead time should be removed. More...
 

Detailed Description

Typedef Documentation

◆ DutyCycleUpdateFnc

typedef float(* DutyCycleUpdateFnc) (uint32_t pwmNo, float duty, pwm_config_t *config)
Parameters
pwmNoChannel no of the first PWM in sequence
dutyDuty cycle to be applied (Range 0-1)
*configPointer to the PWM configuration
Returns
float Duty cycle applied in this cycle. May differ from the duty variable if outside permitted limits

Enumeration Type Documentation

◆ duty_mode_t

Enumerator
OUTPUT_DUTY_AT_PWMH 

The output duty cycle at high side switch is the same as the supplied duty cycle. Dead time will be deducted on both edges from the low side switch

OUTPUT_DUTY_MINUS_DEADTIME_AT_PWMH 

The output duty cycle at high side switch is D-dead time. On one edge duty cycle will be removed from high side whereas on the other edge duty cycle will be removed from the lower side switch

◆ pwm_alignment_t

Enumerator
CENTER_ALIGNED 

Aligns the PWM to center. Preferred in most control systems

EDGE_ALIGNED 

Aligns the PWM to the left edge