Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

Peripheral Control methods

Peripheral Control methods
[HRTIM_Private_Functions]

management functions More...

Functions

void HRTIM_SimpleOCChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OCChannel, HRTIM_BasicOCChannelCfgTypeDef *pBasicOCChannelCfg)
 Configures an output in basic output compare mode.
void HRTIM_SimplePWMChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t PWMChannel, HRTIM_BasicPWMChannelCfgTypeDef *pBasicPWMChannelCfg)
 Configures an output in basic PWM mode.
void HRTIM_SimpleCaptureChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureChannel, HRTIM_BasicCaptureChannelCfgTypeDef *pBasicCaptureChannelCfg)
 Configures a basic capture.
void HRTIM_SimpleOnePulseChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OnePulseChannel, HRTIM_BasicOnePulseChannelCfgTypeDef *pBasicOnePulseChannelCfg)
 Configures an output basic one pulse mode.
void HRTIM_WaveformTimerConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_TimerCfgTypeDef *pTimerCfg)
 Configures the general behavior of a timer operating in waveform mode.
void HRTIM_WaveformCompareConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CompareUnit, HRTIM_CompareCfgTypeDef *pCompareCfg)
 Configures the compare unit of a timer operating in waveform mode.
void HRTIM_MasterSetCompare (HRTIM_TypeDef *HRTIMx, uint32_t CompareUnit, uint32_t Compare)
 Sets the HRTIMx Master Comparex Register value.
void HRTIM_SlaveSetCompare (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CompareUnit, uint32_t Compare)
 Sets the HRTIMx Slave Comparex Register value.
void HRTIM_WaveformCaptureConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureUnit, HRTIM_CaptureCfgTypeDef *pCaptureCfg)
 Configures the capture unit of a timer operating in waveform mode.
void HRTIM_WaveformOutputConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Output, HRTIM_OutputCfgTypeDef *pOutputCfg)
 Configures the output of a timer operating in waveform mode.
void HRTIM_TimerEventFilteringConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Event, HRTIM_TimerEventFilteringCfgTypeDef *pTimerEventFilteringCfg)
 Configures the event filtering capabilities of a timer (blanking, windowing)
void HRTIM_DeadTimeConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_DeadTimeCfgTypeDef *pDeadTimeCfg)
 Configures the dead time insertion feature for a timer.
void HRTIM_ChopperModeConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_ChopperModeCfgTypeDef *pChopperModeCfg)
 Configures the chopper mode feature for a timer.
void HRTIM_BurstDMAConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t RegistersToUpdate)
 Configures the burst DMA controller for a timer.
void HRTIM_SynchronizationConfig (HRTIM_TypeDef *HRTIMx, HRTIM_SynchroCfgTypeDef *pSynchroCfg)
 Configures the external input/output synchronization of the HRTIMx.
void HRTIM_BurstModeConfig (HRTIM_TypeDef *HRTIMx, HRTIM_BurstModeCfgTypeDef *pBurstModeCfg)
 Configures the burst mode feature of the HRTIMx.
void HRTIM_EventConfig (HRTIM_TypeDef *HRTIMx, uint32_t Event, HRTIM_EventCfgTypeDef *pEventCfg)
 Configures the conditioning of an external event.
void HRTIM_EventPrescalerConfig (HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
 Configures the external event conditioning block prescaler.
void HRTIM_FaultConfig (HRTIM_TypeDef *HRTIMx, HRTIM_FaultCfgTypeDef *pFaultCfg, uint32_t Fault)
 Configures the conditioning of fault input.
void HRTIM_FaultPrescalerConfig (HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
 Configures the fault conditioning block prescaler.
void HRTIM_FaultModeCtl (HRTIM_TypeDef *HRTIMx, uint32_t Fault, uint32_t Enable)
 Enables or disables the HRTIMx Fault mode.
void HRTIM_ADCTriggerConfig (HRTIM_TypeDef *HRTIMx, uint32_t ADCTrigger, HRTIM_ADCTriggerCfgTypeDef *pADCTriggerCfg)
 Configures both the ADC trigger register update source and the ADC trigger source.
void HRTIM_BurstModeCtl (HRTIM_TypeDef *HRTIMx, uint32_t Enable)
 Enables or disables the HRTIMx burst mode controller.
void HRTIM_SoftwareCapture (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureUnit)
 Triggers a software capture on the designed capture unit.
void HRTIM_SoftwareUpdate (HRTIM_TypeDef *HRTIMx, uint32_t TimersToUpdate)
 Triggers the update of the registers of one or several timers.
void HRTIM_SoftwareReset (HRTIM_TypeDef *HRTIMx, uint32_t TimersToReset)
 Triggers the reset of one or several timers.
void HRTIM_WaveformSetOutputLevel (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Output, uint32_t OutputLevel)
 Forces the timer output to its active or inactive state.

Detailed Description

management functions

 ===============================================================================
                      ##### Peripheral Control methods #####
 ===============================================================================  
    [..]
    This subsection provides a set of functions allowing to control the HRTIMx data 
    transfers.


Function Documentation

void HRTIM_ADCTriggerConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  ADCTrigger,
HRTIM_ADCTriggerCfgTypeDef *  pADCTriggerCfg 
)

Configures both the ADC trigger register update source and the ADC trigger source.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
ADCtrigger: ADC trigger to configure This parameter can be one of the following values:

  • HRTIM_ADCTRIGGER_1: ADC trigger 1
  • HRTIM_ADCTRIGGER_2: ADC trigger 2
  • HRTIM_ADCTRIGGER_3: ADC trigger 3
  • HRTIM_ADCTRIGGER_4: ADC trigger 4
pADCTriggerCfg,:pointer to the ADC trigger configuration structure
Return values:
None

Definition at line 2800 of file stm32f30x_hrtim.c.

void HRTIM_BurstDMAConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  RegistersToUpdate 
)

Configures the burst DMA controller for a timer.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x5 for master timer
  • 0x0 to 0x4 for timers A to E
RegistersToUpdate,:registers to be written by DMA This parameter can be any combination of the following values:

  • HRTIM_BURSTDMA_CR: HRTIM_MCR or HRTIM_TIMxCR
  • HRTIM_BURSTDMA_ICR: HRTIM_MICR or HRTIM_TIMxICR
  • HRTIM_BURSTDMA_DIER: HRTIM_MDIER or HRTIM_TIMxDIER
  • HRTIM_BURSTDMA_CNT: HRTIM_MCNT or HRTIM_TIMxCNT
  • HRTIM_BURSTDMA_PER: HRTIM_MPER or HRTIM_TIMxPER
  • HRTIM_BURSTDMA_REP: HRTIM_MREP or HRTIM_TIMxREP
  • HRTIM_BURSTDMA_CMP1: HRTIM_MCMP1 or HRTIM_TIMxCMP1
  • HRTIM_BURSTDMA_CMP2: HRTIM_MCMP2 or HRTIM_TIMxCMP2
  • HRTIM_BURSTDMA_CMP3: HRTIM_MCMP3 or HRTIM_TIMxCMP3
  • HRTIM_BURSTDMA_CMP4: HRTIM_MCMP4 or HRTIM_TIMxCMP4
  • HRTIM_BURSTDMA_DTR: HRTIM_TIMxDTR
  • HRTIM_BURSTDMA_SET1R: HRTIM_TIMxSET1R
  • HRTIM_BURSTDMA_RST1R: HRTIM_TIMxRST1R
  • HRTIM_BURSTDMA_SET2R: HRTIM_TIMxSET2R
  • HRTIM_BURSTDMA_RST2R: HRTIM_TIMxRST2R
  • HRTIM_BURSTDMA_EEFR1: HRTIM_TIMxEEFR1
  • HRTIM_BURSTDMA_EEFR2: HRTIM_TIMxEEFR2
  • HRTIM_BURSTDMA_RSTR: HRTIM_TIMxRSTR
  • HRTIM_BURSTDMA_CHPR: HRTIM_TIMxCHPR
  • HRTIM_BURSTDMA_OUTR: HRTIM_TIMxOUTR
  • HRTIM_BURSTDMA_FLTR: HRTIM_TIMxFLTR
Return values:
None

Definition at line 2414 of file stm32f30x_hrtim.c.

void HRTIM_BurstModeConfig ( HRTIM_TypeDef *  HRTIMx,
HRTIM_BurstModeCfgTypeDef *  pBurstModeCfg 
)

Configures the burst mode feature of the HRTIMx.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
pBurstModeCfg,:pointer to the burst mode configuration structure
Return values:
None

Definition at line 2498 of file stm32f30x_hrtim.c.

void HRTIM_BurstModeCtl ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Enable 
)

Enables or disables the HRTIMx burst mode controller.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
Enable,:Burst mode controller enabling This parameter can be one of the following values:

  • HRTIM_BURSTMODECTL_ENABLED: Burst mode enabled
  • HRTIM_BURSTMODECTL_DISABLED: Burst mode disabled
Return values:
None

Definition at line 2868 of file stm32f30x_hrtim.c.

void HRTIM_ChopperModeConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
HRTIM_ChopperModeCfgTypeDef *  pChopperModeCfg 
)

Configures the chopper mode feature for a timer.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
pChopperModeCfg,:pointer to the chopper mode configuration structure
Return values:
None

Definition at line 2359 of file stm32f30x_hrtim.c.

void HRTIM_DeadTimeConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
HRTIM_DeadTimeCfgTypeDef *  pDeadTimeCfg 
)

Configures the dead time insertion feature for a timer.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
pDeadTimeCfg,:pointer to the dead time insertion configuration structure
Return values:
None

Definition at line 2313 of file stm32f30x_hrtim.c.

void HRTIM_EventConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Event,
HRTIM_EventCfgTypeDef *  pEventCfg 
)

Configures the conditioning of an external event.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
Event,:external event to configure This parameter can be one of the following values:

  • HRTIM_EVENT_1: External event 1
  • HRTIM_EVENT_2: External event 2
  • HRTIM_EVENT_3: External event 3
  • HRTIM_EVENT_4: External event 4
  • HRTIM_EVENT_5: External event 5
  • HRTIM_EVENT_6: External event 6
  • HRTIM_EVENT_7: External event 7
  • HRTIM_EVENT_8: External event 8
  • HRTIM_EVENT_9: External event 9
  • HRTIM_EVENT_10: External event 10
pEventCfg,:pointer to the event conditioning configuration structure
Return values:
None

Definition at line 2558 of file stm32f30x_hrtim.c.

void HRTIM_EventPrescalerConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Prescaler 
)

Configures the external event conditioning block prescaler.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
Prescaler,:Prescaler value This parameter can be one of the following values:

  • HRTIM_EVENTPRESCALER_DIV1: fEEVS=fHRTIMx
  • HRTIM_EVENTPRESCALER_DIV2: fEEVS=fHRTIMx / 2
  • HRTIM_EVENTPRESCALER_DIV4: fEEVS=fHRTIMx / 4
  • HRTIM_EVENTPRESCALER_DIV8: fEEVS=fHRTIMx / 8
Return values:
None

Definition at line 2585 of file stm32f30x_hrtim.c.

void HRTIM_FaultConfig ( HRTIM_TypeDef *  HRTIMx,
HRTIM_FaultCfgTypeDef *  pFaultCfg,
uint32_t  Fault 
)

Configures the conditioning of fault input.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
Fault,:fault input to configure This parameter can be one of the following values:

  • HRTIM_FAULT_1: Fault input 1
  • HRTIM_FAULT_2: Fault input 2
  • HRTIM_FAULT_3: Fault input 3
  • HRTIM_FAULT_4: Fault input 4
  • HRTIM_FAULT_5: Fault input 5
pFaultCfg,:pointer to the fault conditioning configuration structure
Return values:
None

Definition at line 2615 of file stm32f30x_hrtim.c.

void HRTIM_FaultModeCtl ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Fault,
uint32_t  Enable 
)

Enables or disables the HRTIMx Fault mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
Fault,:fault input to configure This parameter can be one of the following values:

  • HRTIM_FAULT_1: Fault input 1
  • HRTIM_FAULT_2: Fault input 2
  • HRTIM_FAULT_3: Fault input 3
  • HRTIM_FAULT_4: Fault input 4
  • HRTIM_FAULT_5: Fault input 5
Enable,:Fault mode controller enabling This parameter can be one of the following values:

  • HRTIM_FAULT_ENABLED: Fault mode enabled
  • HRTIM_FAULT_DISABLED: Fault mode disabled
Return values:
None

Definition at line 2733 of file stm32f30x_hrtim.c.

void HRTIM_FaultPrescalerConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Prescaler 
)

Configures the fault conditioning block prescaler.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
Prescaler,:Prescaler value This parameter can be one of the following values:

  • HRTIM_FAULTPRESCALER_DIV1: fFLTS=fHRTIMx
  • HRTIM_FAULTPRESCALER_DIV2: fFLTS=fHRTIMx / 2
  • HRTIM_FAULTPRESCALER_DIV4: fFLTS=fHRTIMx / 4
  • HRTIM_FAULTPRESCALER_DIV8: fFLTS=fHRTIMx / 8
Return values:
None

Definition at line 2700 of file stm32f30x_hrtim.c.

void HRTIM_MasterSetCompare ( HRTIM_TypeDef *  HRTIMx,
uint32_t  CompareUnit,
uint32_t  Compare 
)

Sets the HRTIMx Master Comparex Register value.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
CompareUnit,:Compare unit to configure This parameter can be one of the following values:

  • HRTIM_COMPAREUNIT_1: Compare unit 1
  • HRTIM_COMPAREUNIT_2: Compare unit 2
  • HRTIM_COMPAREUNIT_3: Compare unit 3
  • HRTIM_COMPAREUNIT_4: Compare unit 4
Compare,:specifies the Comparex register new value
Return values:
None

Definition at line 2011 of file stm32f30x_hrtim.c.

void HRTIM_SimpleCaptureChannelConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureChannel,
HRTIM_BasicCaptureChannelCfgTypeDef *  pBasicCaptureChannelCfg 
)

Configures a basic capture.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
CaptureChannel,:Capture unit This parameter can be one of the following values:

  • HRTIM_CAPTUREUNIT_1: Capture unit 1
  • HRTIM_CAPTUREUNIT_2: Capture unit 2
pBasicCaptureChannelCfg,:pointer to the basic capture configuration structure
Note:
When the timer operates in basic capture mode the capture is triggered by the designated external event and GPIO input is implicitly used as event source. The capture can be triggered by a rising edge, a falling edge or both edges on event channel.
Return values:
None

Definition at line 1664 of file stm32f30x_hrtim.c.

void HRTIM_SimpleOCChannelConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  OCChannel,
HRTIM_BasicOCChannelCfgTypeDef *  pBasicOCChannelCfg 
)

Configures an output in basic output compare mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
OCChannel,:Timer output This parameter can be one of the following values:

  • HRTIM_OUTPUT_TA1: Timer A - Output 1
  • HRTIM_OUTPUT_TA2: Timer A - Output 2
  • HRTIM_OUTPUT_TB1: Timer B - Output 1
  • HRTIM_OUTPUT_TB2: Timer B - Output 2
  • HRTIM_OUTPUT_TC1: Timer C - Output 1
  • HRTIM_OUTPUT_TC2: Timer C - Output 2
  • HRTIM_OUTPUT_TD1: Timer D - Output 1
  • HRTIM_OUTPUT_TD2: Timer D - Output 2
  • HRTIM_OUTPUT_TE1: Timer E - Output 1
  • HRTIM_OUTPUT_TE2: Timer E - Output 2
pBasicOCChannelCfg,:pointer to the basic output compare output configuration structure
Note:
When the timer operates in basic output compare mode: Output 1 is implicitly controlled by the compare unit 1 Output 2 is implicitly controlled by the compare unit 2 Output Set/Reset crossbar is set according to the selected output compare mode: Toggle: SETxyR = RSTxyR = CMPy Active: SETxyR = CMPy, RSTxyR = 0 Inactive: SETxy =0, RSTxy = CMPy
Return values:
None

Definition at line 1446 of file stm32f30x_hrtim.c.

void HRTIM_SimpleOnePulseChannelConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  OnePulseChannel,
HRTIM_BasicOnePulseChannelCfgTypeDef *  pBasicOnePulseChannelCfg 
)

Configures an output basic one pulse mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
OnePulseChannel,:Timer output This parameter can be one of the following values:

  • HRTIM_OUTPUT_TA1: Timer A - Output 1
  • HRTIM_OUTPUT_TA2: Timer A - Output 2
  • HRTIM_OUTPUT_TB1: Timer B - Output 1
  • HRTIM_OUTPUT_TB2: Timer B - Output 2
  • HRTIM_OUTPUT_TC1: Timer C - Output 1
  • HRTIM_OUTPUT_TC2: Timer C - Output 2
  • HRTIM_OUTPUT_TD1: Timer D - Output 1
  • HRTIM_OUTPUT_TD2: Timer D - Output 2
  • HRTIM_OUTPUT_TE1: Timer E - Output 1
  • HRTIM_OUTPUT_TE2: Timer E - Output 2
pBasicOnePulseChannelCfg,:pointer to the basic one pulse output configuration structure
Note:
When the timer operates in basic one pulse mode: the timer counter is implicitly started by the reset event, the reset of the timer counter is triggered by the designated external event GPIO input is implicitly used as event source, Output 1 is implicitly controlled by the compare unit 1, Output 2 is implicitly controlled by the compare unit 2. Output Set/Reset crossbar is set as follows: Output 1: SETx1R = CMP1, RSTx1R = PER Output 2: SETx2R = CMP2, RST2R = PER The counter mode should be HRTIM_MODE_SINGLESHOT_RETRIGGERABLE
Return values:
None

Definition at line 1728 of file stm32f30x_hrtim.c.

void HRTIM_SimplePWMChannelConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  PWMChannel,
HRTIM_BasicPWMChannelCfgTypeDef *  pBasicPWMChannelCfg 
)

Configures an output in basic PWM mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
PWMChannel,:Timer output This parameter can be one of the following values:

  • HRTIM_OUTPUT_TA1: Timer A - Output 1
  • HRTIM_OUTPUT_TA2: Timer A - Output 2
  • HRTIM_OUTPUT_TB1: Timer B - Output 1
  • HRTIM_OUTPUT_TB2: Timer B - Output 2
  • HRTIM_OUTPUT_TC1: Timer C - Output 1
  • HRTIM_OUTPUT_TC2: Timer C - Output 2
  • HRTIM_OUTPUT_TD1: Timer D - Output 1
  • HRTIM_OUTPUT_TD2: Timer D - Output 2
  • HRTIM_OUTPUT_TE1: Timer E - Output 1
  • HRTIM_OUTPUT_TE2: Timer E - Output 2
pBasicPWMChannelCfg,:pointer to the basic PWM output configuration structure
Note:
When the timer operates in basic PWM output mode: Output 1 is implicitly controlled by the compare unit 1 Output 2 is implicitly controlled by the compare unit 2 Output Set/Reset crossbar is set as follows: Output 1: SETx1R = CMP1, RSTx1R = PER Output 2: SETx2R = CMP2, RST2R = PER
Return values:
None

Definition at line 1578 of file stm32f30x_hrtim.c.

void HRTIM_SlaveSetCompare ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CompareUnit,
uint32_t  Compare 
)

Sets the HRTIMx Slave Comparex Register value.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
CompareUnit,:Compare unit to configure This parameter can be one of the following values:

  • HRTIM_COMPAREUNIT_1: Compare unit 1
  • HRTIM_COMPAREUNIT_2: Compare unit 2
  • HRTIM_COMPAREUNIT_3: Compare unit 3
  • HRTIM_COMPAREUNIT_4: Compare unit 4
Compare,:specifies the Comparex register new value
Return values:
None

Definition at line 2062 of file stm32f30x_hrtim.c.

void HRTIM_SoftwareCapture ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureUnit 
)

Triggers a software capture on the designed capture unit.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
CaptureUnit,:Capture unit to trig This parameter can be one of the following values:

  • HRTIM_CAPTUREUNIT_1: Capture unit 1
  • HRTIM_CAPTUREUNIT_2: Capture unit 2
Return values:
None
Note:
The 'software capture' bit in the capture configuration register is automatically reset by hardware

Definition at line 2898 of file stm32f30x_hrtim.c.

void HRTIM_SoftwareReset ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimersToReset 
)

Triggers the reset of one or several timers.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimersToUpdate,:timers concerned with the software counter reset This parameter can be any combination of the following values:

  • HRTIM_TIMER_MASTER
  • HRTIM_TIMER_A
  • HRTIM_TIMER_B
  • HRTIM_TIMER_C
  • HRTIM_TIMER_D
  • HRTIM_TIMER_E
Return values:
None
Note:
The 'software reset' bits in the HRTIMx control register 2 are automatically reset by hardware

Definition at line 2965 of file stm32f30x_hrtim.c.

void HRTIM_SoftwareUpdate ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimersToUpdate 
)

Triggers the update of the registers of one or several timers.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimersToUpdate,:timers concerned with the software register update This parameter can be any combination of the following values:

  • HRTIM_TIMERUPDATE_MASTER
  • HRTIM_TIMERUPDATE_A
  • HRTIM_TIMERUPDATE_B
  • HRTIM_TIMERUPDATE_C
  • HRTIM_TIMERUPDATE_D
  • HRTIM_TIMERUPDATE_E
Return values:
None
Note:
The 'software update' bits in the HRTIMx control register 2 register are automatically reset by hardware

Definition at line 2939 of file stm32f30x_hrtim.c.

void HRTIM_SynchronizationConfig ( HRTIM_TypeDef *  HRTIMx,
HRTIM_SynchroCfgTypeDef *  pSynchroCfg 
)

Configures the external input/output synchronization of the HRTIMx.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
pSynchroCfg,:pointer to the input/output synchronization configuration structure
Return values:
None

Definition at line 2465 of file stm32f30x_hrtim.c.

void HRTIM_TimerEventFilteringConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Event,
HRTIM_TimerEventFilteringCfgTypeDef *  pTimerEventFilteringCfg 
)

Configures the event filtering capabilities of a timer (blanking, windowing)

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
Event,:external event for which timer event filtering must be configured This parameter can be one of the following values:

  • HRTIM_EVENT_1: External event 1
  • HRTIM_EVENT_2: External event 2
  • HRTIM_EVENT_3: External event 3
  • HRTIM_EVENT_4: External event 4
  • HRTIM_EVENT_5: External event 5
  • HRTIM_EVENT_6: External event 6
  • HRTIM_EVENT_7: External event 7
  • HRTIM_EVENT_8: External event 8
  • HRTIM_EVENT_9: External event 9
  • HRTIM_EVENT_10: External event 10
pTimerEventFilteringCfg,:pointer to the timer event filtering configuration structure
Return values:
None

Definition at line 2197 of file stm32f30x_hrtim.c.

void HRTIM_WaveformCaptureConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureUnit,
HRTIM_CaptureCfgTypeDef *  pCaptureCfg 
)

Configures the capture unit of a timer operating in waveform mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
CaptureChannel,:Capture unit to configure This parameter can be one of the following values:

  • HRTIM_CAPTUREUNIT_1: Capture unit 1
  • HRTIM_CAPTUREUNIT_2: Capture unit 2
pCaptureCfg,:pointer to the compare unit configuration structure
Return values:
None

Definition at line 2114 of file stm32f30x_hrtim.c.

void HRTIM_WaveformCompareConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CompareUnit,
HRTIM_CompareCfgTypeDef *  pCompareCfg 
)

Configures the compare unit of a timer operating in waveform mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index 0xFF for master timer This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
CompareUnit,:Compare unit to configure This parameter can be one of the following values:

  • HRTIM_COMPAREUNIT_1: Compare unit 1
  • HRTIM_COMPAREUNIT_2: Compare unit 2
  • HRTIM_COMPAREUNIT_3: Compare unit 3
  • HRTIM_COMPAREUNIT_4: Compare unit 4
pCompareCfg,:pointer to the compare unit configuration structure
Note:
When auto delayed mode is required for compare unit 2 or compare unit 4, application has to configure separately the capture unit. Capture unit to configure in that case depends on the compare unit auto delayed mode is applied to (see below): Auto delayed on output compare 2: capture unit 1 must be configured Auto delayed on output compare 4: capture unit 2 must be configured
Return values:
None

Definition at line 1918 of file stm32f30x_hrtim.c.

void HRTIM_WaveformOutputConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Output,
HRTIM_OutputCfgTypeDef *  pOutputCfg 
)

Configures the output of a timer operating in waveform mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
Output,:Timer output This parameter can be one of the following values:

  • HRTIM_OUTPUT_TA1: Timer A - Output 1
  • HRTIM_OUTPUT_TA2: Timer A - Output 2
  • HRTIM_OUTPUT_TB1: Timer B - Output 1
  • HRTIM_OUTPUT_TB2: Timer B - Output 2
  • HRTIM_OUTPUT_TC1: Timer C - Output 1
  • HRTIM_OUTPUT_TC2: Timer C - Output 2
  • HRTIM_OUTPUT_TD1: Timer D - Output 1
  • HRTIM_OUTPUT_TD2: Timer D - Output 2
  • HRTIM_OUTPUT_TE1: Timer E - Output 1
  • HRTIM_OUTPUT_TE2: Timer E - Output 2
pOutputCfg,:pointer to the timer output configuration structure
Return values:
None

Definition at line 2158 of file stm32f30x_hrtim.c.

void HRTIM_WaveformSetOutputLevel ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Output,
uint32_t  OutputLevel 
)

Forces the timer output to its active or inactive state.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
Output,:Timer output This parameter can be one of the following values:

  • HRTIM_OUTPUT_TA1: Timer A - Output 1
  • HRTIM_OUTPUT_TA2: Timer A - Output 2
  • HRTIM_OUTPUT_TB1: Timer B - Output 1
  • HRTIM_OUTPUT_TB2: Timer B - Output 2
  • HRTIM_OUTPUT_TC1: Timer C - Output 1
  • HRTIM_OUTPUT_TC2: Timer C - Output 2
  • HRTIM_OUTPUT_TD1: Timer D - Output 1
  • HRTIM_OUTPUT_TD2: Timer D - Output 2
  • HRTIM_OUTPUT_TE1: Timer E - Output 1
  • HRTIM_OUTPUT_TE2: Timer E - Output 2
OutputLevel,:indicates whether the output is forced to its active or inactive state This parameter can be one of the following values:

  • HRTIM_OUTPUTLEVEL_ACTIVE: output is forced to its active state
  • HRTIM_OUTPUTLEVEL_INACTIVE: output is forced to its inactive state
Return values:
None
Note:
The 'software set/reset trigger' bit in the output set/reset registers is automatically reset by hardware

Definition at line 3002 of file stm32f30x_hrtim.c.

void HRTIM_WaveformTimerConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
HRTIM_TimerCfgTypeDef *  pTimerCfg 
)

Configures the general behavior of a timer operating in waveform mode.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimerIdx,:Timer index This parameter can be one of the following values:

  • 0x0 to 0x4 for timers A to E
pTimerCfg,:pointer to the timer configuration structure
Note:
When the timer operates in waveform mode, all the features supported by the HRTIMx are available without any limitation.
Return values:
None

Definition at line 1832 of file stm32f30x_hrtim.c.