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

Typedefs

typedef void(* PWMResetCallback) (void)
 Defines the PWM reset callback, The drivers will call this function whenever the timer for the PWM is reset if enabled in configuration.
 
typedef float timer_frequency_t
 Defines the type for PWM frequency Specification.
 

Enumerations

enum  tim_slave_edge_t { TIM_SLAVE_RISING = TIM_TRIGGERPOLARITY_RISING , TIM_SLAVE_FALLING = TIM_TRIGGERPOLARITY_FALLING }
 Defines the available trigger edge types for external timer events. More...
 
enum  hrtim_comp_t { HRTIM_COMP1 = 0 , HRTIM_COMP2 = 2 , HRTIM_COMP3 = 3 , HRTIM_COMP4 = 4 }
 Defines the available comparators used by the master timer of HRTIM. More...
 
enum  timer_trigger_src_t {
  TIM_TRG_SRC_NONE , TIM_TRG_SRC_TIM1 , TIM_TRG_SRC_TIM2 , TIM_TRG_SRC_TIM3 ,
  TIM_TRG_SRC_TIM4 , TIM_TRG_SRC_TIM5 , TIM_TRG_SRC_TIM8 , TIM_TRG_SRC_TIM15 ,
  TIM_TRG_SRC_HRTIM_MASTER_PERIOD , TIM_TRG_SRC_HRTIM_MASTER_CMP1 , TIM_TRG_SRC_HRTIM_MASTER_CMP2 , TIM_TRG_SRC_HRTIM_MASTER_CMP3 ,
  TIM_TRG_SRC_HRTIM_MASTER_CMP4 , TIM_TRG_SRC_PIN
}
 Defines the synchronization sources available for the timers. More...
 
enum  tim_trg_in_type_t { TIM_TRGI_TYPE_NONE = TIM_SLAVEMODE_DISABLE , TIM_TRGI_TYPE_RST = TIM_SLAVEMODE_RESET , TIM_TRGI_TYPE_START = TIM_SLAVEMODE_TRIGGER , TIM_TRGI_TYPE_RESET_AND_START = TIM_SLAVEMODE_COMBINED_RESETTRIGGER }
 Defines the input synchronization of a timer. More...
 
enum  tim_trg_out_type_t { TIM_TRGO_OUT_RST = TIM_TRGO_RESET , TIM_TRGO_OUT_EN = TIM_TRGO_ENABLE , TIM_TRGO_OUT_UPDATE = TIM_TRGO_UPDATE , TIM_TRGO_OUT_OC1 = TIM_TRGO_OC1 }
 Defines types of event generated by the timers. More...
 

Detailed Description

Enumeration Type Documentation

◆ hrtim_comp_t

Enumerator
HRTIM_COMP1 

Defines the 1st comparator for master HRTIM.

HRTIM_COMP2 

Defines the 2nd comparator for master HRTIM.

HRTIM_COMP3 

Defines the 3rd comparator for master HRTIM.

HRTIM_COMP4 

Defines the 4th comparator for master HRTIM.

◆ tim_slave_edge_t

Enumerator
TIM_SLAVE_RISING 

Event at rising edge.

TIM_SLAVE_FALLING 

Event at falling edge.

◆ tim_trg_in_type_t

Enumerator
TIM_TRGI_TYPE_NONE 

The timer is not slave to any other timer

TIM_TRGI_TYPE_RST 

Reset the timer at timer_trigger_src_t

TIM_TRGI_TYPE_START 

Start the timer at timer_trigger_src_t

TIM_TRGI_TYPE_RESET_AND_START 

Resets and starts the timer at timer_trigger_src_t

◆ tim_trg_out_type_t

Enumerator
TIM_TRGO_OUT_RST 

Generate trigger on timer reset event.

TIM_TRGO_OUT_EN 

Generate trigger on timer enable event.

TIM_TRGO_OUT_UPDATE 

Generate trigger on timer update event.

TIM_TRGO_OUT_OC1 

Generate trigger on timer channel 1 match event.

◆ timer_trigger_src_t

Note
All sources are not available for all timers. See details for relevant information.
Enumerator
TIM_TRG_SRC_NONE 

No synchronization

TIM_TRG_SRC_TIM1 

Synchronizes with TIM1 trigger. This event can be configured using BSP_Timer_SetOutputTrigger(). This event is available for all PWM channels.

TIM_TRG_SRC_TIM2 

Synchronizes with TIM2 trigger. This event can be configured using BSP_Timer_SetOutputTrigger(). This event can be configured using BSP_TIM2_ConfigFiberRx(). This event can start and reset PWM11-16, while it can only reset PWM1-10

TIM_TRG_SRC_TIM3 

Synchronizes with TIM3 trigger. This event can be configured using BSP_Timer_SetOutputTrigger(). This event can be configured using BSP_TIM3_ConfigFiberTx(). This event can start and reset PWM11-16, while it can only reset PWM1-10

TIM_TRG_SRC_TIM4 

Synchronizes with TIM4 trigger. This event can be configured using BSP_Timer_SetOutputTrigger().

TIM_TRG_SRC_TIM5 

Synchronizes with TIM5 trigger. This event can be configured using BSP_Timer_SetOutputTrigger().

TIM_TRG_SRC_TIM8 

Synchronizes with TIM8 trigger. This event can be configured using BSP_Timer_SetOutputTrigger().

TIM_TRG_SRC_TIM15 

Synchronizes with TIM15 trigger. This event can be configured using BSP_Timer_SetOutputTrigger().

TIM_TRG_SRC_HRTIM_MASTER_PERIOD 

Synchronizes with HRTim Master Period Completion. This event can be configured using BSP_MasterHRTIM_Config(). This event can only reset PWM1-10. Not avaiable for PWM11-16

TIM_TRG_SRC_HRTIM_MASTER_CMP1 

Synchronizes with HRTim Master Compare 1 vaue matching. This event can be configured using BSP_MasterHRTIM_Config(). This event can only reset PWM1-10. Not avaiable for PWM11-16

TIM_TRG_SRC_HRTIM_MASTER_CMP2 

Synchronizes with HRTim Master Compare 2 vaue matching. This event can be configured using BSP_MasterHRTIM_Config(). This event can only reset PWM1-10. Not avaiable for PWM11-16

TIM_TRG_SRC_HRTIM_MASTER_CMP3 

Synchronizes with HRTim Master Compare 3 vaue matching. This event can be configured using BSP_MasterHRTIM_Config(). This event can only reset PWM1-10. Not avaiable for PWM11-16

TIM_TRG_SRC_HRTIM_MASTER_CMP4 

Synchronizes with HRTim Master Compare 4 vaue matching. This event can be configured using BSP_MasterHRTIM_Config(). This event can only reset PWM1-10. Not avaiable for PWM11-16