Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

I/O operation methods

I/O operation methods
[HRTIM_Private_Functions]

Data transfers functions. More...

Functions

void HRTIM_DLLCalibrationStart (HRTIM_TypeDef *HRTIMx, uint32_t CalibrationRate)
 Starts the DLL calibration.
void HRTIM_SimpleBaseStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx)
 Starts the counter of a timer operating in basic time base mode.
void HRTIM_SimpleBaseStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx)
 Stops the counter of a timer operating in basic time base mode.
void HRTIM_SimpleOCStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OCChannel)
 Starts the output compare signal generation on the designed timer output.
void HRTIM_SimpleOCStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OCChannel)
 Stops the output compare signal generation on the designed timer output.
void HRTIM_SimplePWMStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t PWMChannel)
 Starts the PWM output signal generation on the designed timer output.
void HRTIM_SimplePWMStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t PWMChannel)
 Stops the PWM output signal generation on the designed timer output.
void HRTIM_SimpleCaptureStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureChannel)
 Enables a basic capture on the designed capture unit.
void HRTIM_SimpleCaptureStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureChannel)
 Disables a basic capture on the designed capture unit.
void HRTIM_SimpleOnePulseStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OnePulseChannel)
 Enables the basic one pulse signal generation on the designed output.
void HRTIM_SimpleOnePulseStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OnePulseChannel)
 Disables the basic one pulse signal generation on the designed output.
void HRTIM_WaveformCounterStart (HRTIM_TypeDef *HRTIMx, uint32_t TimersToStart)
 Starts the counter of the designated timer(s) operating in waveform mode Timers can be combined (ORed) to allow for simultaneous counter start.
void HRTIM_WaveformCounterStop (HRTIM_TypeDef *HRTIMx, uint32_t TimersToStop)
 Stops the counter of the designated timer(s) operating in waveform mode Timers can be combined (ORed) to allow for simultaneous counter stop.
void HRTIM_WaveformOutputStart (HRTIM_TypeDef *HRTIMx, uint32_t OutputsToStart)
 Enables the generation of the waveform signal on the designated output(s) Outputs can be combined (ORed) to allow for simultaneous output enabling.
void HRTIM_WaveformOutputStop (HRTIM_TypeDef *HRTIMx, uint32_t OutputsToStop)
 Disables the generation of the waveform signal on the designated output(s) Outputs can be combined (ORed) to allow for simultaneous output disabling.
void HRTIM_ITConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_IT, FunctionalState NewState)
 Enables or disables the Master and slaves interrupt request.
void HRTIM_ITCommonConfig (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonIT, FunctionalState NewState)
 Enables or disables the common interrupt request.
void HRTIM_ClearFlag (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_FLAG)
 Clears the Master and slaves interrupt flags.
void HRTIM_ClearCommonFlag (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonFLAG)
 Clears the common interrupt flags.
void HRTIM_ClearITPendingBit (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_IT)
 Clears the Master and slaves interrupt request pending bits.
void HRTIM_ClearCommonITPendingBit (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonIT)
 Clears the common interrupt pending bits.
FlagStatus HRTIM_GetFlagStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_FLAG)
 Checks whether the specified HRTIM flag is set or not.
FlagStatus HRTIM_GetCommonFlagStatus (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonFLAG)
 Checks whether the specified HRTIM common flag is set or not.
ITStatus HRTIM_GetITStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_IT)
 Checks whether the specified HRTIM interrupt has occurred or not.
ITStatus HRTIM_GetCommonITStatus (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonIT)
 Checks whether the specified HRTIM common interrupt has occurred or not.
void HRTIM_DMACmd (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_DMA, FunctionalState NewState)
 Enables or disables the HRTIMx's DMA Requests.

Detailed Description

Data transfers functions.

 ===============================================================================
                      ##### IO operation methods #####
 ===============================================================================  
    [..]
    This subsection provides a set of functions allowing to manage the HRTIMx data 
    transfers.
    (+) Starts the DLL calibration.
    (+) Starts / stops the counter of a timer operating in basic time base mode
    (+) Starts / stops the output compare signal generation on the designed timer output
    (+) Starts / stops the PWM output signal generation on the designed timer output
    (+) Enables / disables a basic capture on the designed capture unit


Function Documentation

void HRTIM_ClearCommonFlag ( HRTIM_TypeDef *  HRTIMx,
uint32_t  HRTIM_CommonFLAG 
)

Clears the common interrupt flags.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
HRTIM_FLAG,:specifies the HRTIM flags to be cleared. This parameter can be any combination of the following values:

  • HRTIM_FLAG_FLT1: Fault 1 interrupt flag
  • HRTIM_FLAG_FLT2: Fault 2 interrupt flag
  • HRTIM_FLAG_FLT3: Fault 3 interrupt Interrupt flag
  • HRTIM_FLAG_FLT4: Fault 4 Interrupt flag
  • HRTIM_FLAG_FLT5: Fault 5 Interrupt flag
  • HRTIM_FLAG_SYSFLT: System Fault Interrupt flag
  • HRTIM_FLAG_DLLRDY: DLL ready Interrupt flag
  • HRTIM_FLAG_BMPER: Burst mode period Interrupt flag
Return values:
None

Definition at line 1021 of file stm32f30x_hrtim.c.

void HRTIM_ClearCommonITPendingBit ( HRTIM_TypeDef *  HRTIMx,
uint32_t  HRTIM_CommonIT 
)

Clears the common interrupt pending bits.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
HRTIM_IT,:specifies the HRTIM interrupts sources to be cleared. This parameter can be any combination of the following values:

  • HRTIM_IT_FLT1: Fault 1 interrupt source
  • HRTIM_IT_FLT2: Fault 2 interrupt source
  • HRTIM_IT_FLT3: Fault 3 interrupt Interrupt source
  • HRTIM_IT_FLT4: Fault 4 Interrupt source
  • HRTIM_IT_FLT5: Fault 5 Interrupt source
  • HRTIM_IT_SYSFLT: System Fault Interrupt source
  • HRTIM_IT_DLLRDY: DLL ready Interrupt source
  • HRTIM_IT_BMPER: Burst mode period Interrupt source
Return values:
None

Definition at line 1098 of file stm32f30x_hrtim.c.

void HRTIM_ClearFlag ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  HRTIM_FLAG 
)

Clears the Master and slaves interrupt flags.

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
HRTIM_FLAG,:specifies the HRTIM flags sources to be cleared. This parameter can be any combination of the following values:

  • HRTIM_MASTER_FLAG_MCMP1: Master compare 1 interrupt flag
  • HRTIM_MASTER_FLAG_MCMP2: Master compare 2 interrupt flag
  • HRTIM_MASTER_FLAG_MCMP3: Master compare 3 interrupt Interrupt flag
  • HRTIM_MASTER_FLAG_MCMP4: Master compare 4 Interrupt flag
  • HRTIM_MASTER_FLAG_MREP: Master Repetition Interrupt flag
  • HRTIM_MASTER_FLAG_SYNC: Synchronization input Interrupt flag
  • HRTIM_MASTER_FLAG_MUPD: Master update Interrupt flag
  • HRTIM_TIM_FLAG_CMP1: Timer compare 1 Interrupt flag
  • HRTIM_TIM_FLAG_CMP2: Timer compare 2 Interrupt flag
  • HRTIM_TIM_FLAG_CMP3: Timer compare 3 Interrupt flag
  • HRTIM_TIM_FLAG_CMP4: Timer compare 4 Interrupt flag
  • HRTIM_TIM_FLAG_REP: Timer repetition Interrupt flag
  • HRTIM_TIM_FLAG_UPD: Timer update Interrupt flag
  • HRTIM_TIM_FLAG_CPT1: Timer capture 1 Interrupt flag
  • HRTIM_TIM_FLAG_CPT2: Timer capture 2 Interrupt flag
  • HRTIM_TIM_FLAG_SET1: Timer output 1 set Interrupt flag
  • HRTIM_TIM_FLAG_RST1: Timer output 1 reset Interrupt flag
  • HRTIM_TIM_FLAG_SET2: Timer output 2 set Interrupt flag
  • HRTIM_TIM_FLAG_RST2: Timer output 2 reset Interrupt flag
  • HRTIM_TIM_FLAG_RST: Timer reset Interrupt flag
  • HRTIM_TIM_FLAG_DLYPRT1: Timer delay protection Interrupt flag
Return values:
None

Definition at line 980 of file stm32f30x_hrtim.c.

void HRTIM_ClearITPendingBit ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  HRTIM_IT 
)

Clears the Master and slaves interrupt request pending bits.

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
HRTIM_IT,:specifies the HRTIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:

  • HRTIM_MASTER_IT_MCMP1: Master compare 1 interrupt source
  • HRTIM_MASTER_IT_MCMP2: Master compare 2 interrupt source
  • HRTIM_MASTER_IT_MCMP3: Master compare 3 interrupt Interrupt source
  • HRTIM_MASTER_IT_MCMP4: Master compare 4 Interrupt source
  • HRTIM_MASTER_IT_MREP: Master Repetition Interrupt source
  • HRTIM_MASTER_IT_SYNC: Synchronization input Interrupt source
  • HRTIM_MASTER_IT_MUPD: Master update Interrupt source
  • HRTIM_TIM_IT_CMP1: Timer compare 1 Interrupt source
  • HRTIM_TIM_IT_CMP2: Timer compare 2 Interrupt source
  • HRTIM_TIM_IT_CMP3: Timer compare 3 Interrupt source
  • HRTIM_TIM_IT_CMP4: Timer compare 4 Interrupt source
  • HRTIM_TIM_IT_REP: Timer repetition Interrupt source
  • HRTIM_TIM_IT_UPD: Timer update Interrupt source
  • HRTIM_TIM_IT_CPT1: Timer capture 1 Interrupt source
  • HRTIM_TIM_IT_CPT2: Timer capture 2 Interrupt source
  • HRTIM_TIM_IT_SET1: Timer output 1 set Interrupt source
  • HRTIM_TIM_IT_RST1: Timer output 1 reset Interrupt source
  • HRTIM_TIM_IT_SET2: Timer output 2 set Interrupt source
  • HRTIM_TIM_IT_RST2: Timer output 2 reset Interrupt source
  • HRTIM_TIM_IT_RST: Timer reset Interrupt source
  • HRTIM_TIM_IT_DLYPRT: Timer delay protection Interrupt source
Return values:
None

Definition at line 1057 of file stm32f30x_hrtim.c.

void HRTIM_DLLCalibrationStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  CalibrationRate 
)

Starts the DLL calibration.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
CalibrationRate,:DLL calibration period This parameter can be one of the following values:

  • HRTIM_SINGLE_CALIBRATION: One shot DLL calibration
  • HRTIM_CALIBRATIONRATE_7300: 7.3 ms
  • HRTIM_CALIBRATIONRATE_910: 910 us
  • HRTIM_CALIBRATIONRATE_114: 114 us
  • HRTIM_CALIBRATIONRATE_14: 14 us
Return values:
None

Definition at line 417 of file stm32f30x_hrtim.c.

void HRTIM_DMACmd ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  HRTIM_DMA,
FunctionalState  NewState 
)

Enables or disables the HRTIMx's DMA Requests.

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
HRTIM_DMA,:specifies the DMA Request sources. This parameter can be any combination of the following values:

  • HRTIM_MASTER_DMA_MCMP1: Master compare 1 DMA request source
  • HRTIM_MASTER_DMA_MCMP2: Master compare 2 DMA request source
  • HRTIM_MASTER_DMA_MCMP3: Master compare 3 DMA request source
  • HRTIM_MASTER_DMA_MCMP4: Master compare 4 DMA request source
  • HRTIM_MASTER_DMA_MREP: Master Repetition DMA request source
  • HRTIM_MASTER_DMA_SYNC: Synchronization input DMA request source
  • HRTIM_MASTER_DMA_MUPD:Master update DMA request source
  • HRTIM_TIM_DMA_CMP1: Timer compare 1 DMA request source
  • HRTIM_TIM_DMA_CMP2: Timer compare 2 DMA request source
  • HRTIM_TIM_DMA_CMP3: Timer compare 3 DMA request source
  • HRTIM_TIM_DMA_CMP4: Timer compare 4 DMA request source
  • HRTIM_TIM_DMA_REP: Timer repetition DMA request source
  • HRTIM_TIM_DMA_UPD: Timer update DMA request source
  • HRTIM_TIM_DMA_CPT1: Timer capture 1 DMA request source
  • HRTIM_TIM_DMA_CPT2: Timer capture 2 DMA request source
  • HRTIM_TIM_DMA_SET1: Timer output 1 set DMA request source
  • HRTIM_TIM_DMA_RST1: Timer output 1 reset DMA request source
  • HRTIM_TIM_DMA_SET2: Timer output 2 set DMA request source
  • HRTIM_TIM_DMA_RST2: Timer output 2 reset DMA request source
  • HRTIM_TIM_DMA_RST: Timer reset DMA request source
  • HRTIM_TIM_DMA_DLYPRT: Timer delay protection DMA request source
NewState,:new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 1359 of file stm32f30x_hrtim.c.

FlagStatus HRTIM_GetCommonFlagStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  HRTIM_CommonFLAG 
)

Checks whether the specified HRTIM common flag is set or not.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
HRTIM_FLAG,:specifies the HRTIM flags to check. This parameter can be any combination of the following values:

  • HRTIM_FLAG_FLT1: Fault 1 interrupt flag
  • HRTIM_FLAG_FLT2: Fault 2 interrupt flag
  • HRTIM_FLAG_FLT3: Fault 3 interrupt Interrupt flag
  • HRTIM_FLAG_FLT4: Fault 4 Interrupt flag
  • HRTIM_FLAG_FLT5: Fault 5 Interrupt flag
  • HRTIM_FLAG_SYSFLT: System Fault Interrupt flag
  • HRTIM_FLAG_DLLRDY: DLL ready Interrupt flag
  • HRTIM_FLAG_BMPER: Burst mode period Interrupt flag
Return values:
Thenew state of HRTIM_FLAG (SET or RESET).

Definition at line 1194 of file stm32f30x_hrtim.c.

ITStatus HRTIM_GetCommonITStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  HRTIM_CommonIT 
)

Checks whether the specified HRTIM common interrupt has occurred or not.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
HRTIM_IT,:specifies the HRTIM interrupt source to check. This parameter can be any combination of the following values:

  • HRTIM_IT_FLT1: Fault 1 interrupt
  • HRTIM_IT_FLT2: Fault 2 interrupt
  • HRTIM_IT_FLT3: Fault 3 interrupt Interrupt
  • HRTIM_IT_FLT4: Fault 4 Interrupt
  • HRTIM_IT_FLT5: Fault 5 Interrupt
  • HRTIM_IT_SYSFLT: System Fault Interrupt
  • HRTIM_IT_DLLRDY: DLL ready Interrupt flag
  • HRTIM_IT_BMPER: Burst mode period Interrupt
Return values:
Thenew state of HRTIM_FLAG (SET or RESET).

Definition at line 1306 of file stm32f30x_hrtim.c.

FlagStatus HRTIM_GetFlagStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  HRTIM_FLAG 
)

Checks whether the specified HRTIM flag is set or not.

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
HRTIM_FLAG,:specifies the HRTIM flags to check. This parameter can be any combination of the following values:

  • HRTIM_MASTER_FLAG_MCMP1: Master compare 1 interrupt flag
  • HRTIM_MASTER_FLAG_MCMP2: Master compare 2 interrupt flag
  • HRTIM_MASTER_FLAG_MCMP3: Master compare 3 interrupt Interrupt flag
  • HRTIM_MASTER_FLAG_MCMP4: Master compare 4 Interrupt flag
  • HRTIM_MASTER_FLAG_MREP: Master Repetition Interrupt flag
  • HRTIM_MASTER_FLAG_SYNC: Synchronization input Interrupt flag
  • HRTIM_MASTER_FLAG_MUPD: Master update Interrupt flag
  • HRTIM_TIM_FLAG_CMP1: Timer compare 1 Interrupt flag
  • HRTIM_TIM_FLAG_CMP2: Timer compare 2 Interrupt flag
  • HRTIM_TIM_FLAG_CMP3: Timer compare 3 Interrupt flag
  • HRTIM_TIM_FLAG_CMP4: Timer compare 4 Interrupt flag
  • HRTIM_TIM_FLAG_REP: Timer repetition Interrupt flag
  • HRTIM_TIM_FLAG_UPD: Timer update Interrupt flag
  • HRTIM_TIM_FLAG_CPT1: Timer capture 1 Interrupt flag
  • HRTIM_TIM_FLAG_CPT2: Timer capture 2 Interrupt flag
  • HRTIM_TIM_FLAG_SET1: Timer output 1 set Interrupt flag
  • HRTIM_TIM_FLAG_RST1: Timer output 1 reset Interrupt flag
  • HRTIM_TIM_FLAG_SET2: Timer output 2 set Interrupt flag
  • HRTIM_TIM_FLAG_RST2: Timer output 2 reset Interrupt flag
  • HRTIM_TIM_FLAG_RST: Timer reset Interrupt flag
  • HRTIM_TIM_FLAG_DLYPRT: Timer delay protection Interrupt flag
Return values:
Thenew state of HRTIM_FLAG (SET or RESET).

Definition at line 1135 of file stm32f30x_hrtim.c.

ITStatus HRTIM_GetITStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  HRTIM_IT 
)

Checks whether the specified HRTIM interrupt has occurred or not.

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
HRTIM_IT,:specifies the HRTIM flags sources to be cleared. This parameter can be any combination of the following values:

  • HRTIM_MASTER_IT_MCMP1: Master compare 1 interrupt
  • HRTIM_MASTER_IT_MCMP2: Master compare 2 interrupt
  • HRTIM_MASTER_IT_MCMP3: Master compare 3 interrupt Interrupt
  • HRTIM_MASTER_IT_MCMP4: Master compare 4 Interrupt
  • HRTIM_MASTER_IT_MREP: Master Repetition Interrupt
  • HRTIM_MASTER_IT_SYNC: Synchronization input Interrupt
  • HRTIM_MASTER_IT_MUPD: Master update Interrupt
  • HRTIM_TIM_IT_CMP1: Timer compare 1 Interrupt
  • HRTIM_TIM_IT_CMP2: Timer compare 2 Interrupt
  • HRTIM_TIM_IT_CMP3: Timer compare 3 Interrupt
  • HRTIM_TIM_IT_CMP4: Timer compare 4 Interrupt
  • HRTIM_TIM_IT_REP: Timer repetition Interrupt
  • HRTIM_TIM_IT_UPD: Timer update Interrupt
  • HRTIM_TIM_IT_CPT1: Timer capture 1 Interrupt
  • HRTIM_TIM_IT_CPT2: Timer capture 2 Interrupt
  • HRTIM_TIM_IT_SET1: Timer output 1 set Interrupt
  • HRTIM_TIM_IT_RST1: Timer output 1 reset Interrupt
  • HRTIM_TIM_IT_SET2: Timer output 2 set Interrupt
  • HRTIM_TIM_IT_RST2: Timer output 2 reset Interrupt
  • HRTIM_TIM_IT_RST: Timer reset Interrupt
  • HRTIM_TIM_IT_DLYPRT: Timer delay protection Interrupt
Return values:
Thenew state of the HRTIM_IT(SET or RESET).

Definition at line 1240 of file stm32f30x_hrtim.c.

void HRTIM_ITCommonConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  HRTIM_CommonIT,
FunctionalState  NewState 
)

Enables or disables the common interrupt request.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
HRTIM_IT,:specifies the HRTIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:

  • HRTIM_IT_FLT1: Fault 1 interrupt source
  • HRTIM_IT_FLT2: Fault 2 interrupt source
  • HRTIM_IT_FLT3: Fault 3 interrupt Interrupt source
  • HRTIM_IT_FLT4: Fault 4 Interrupt source
  • HRTIM_IT_FLT5: Fault 5 Interrupt source
  • HRTIM_IT_SYSFLT: System Fault Interrupt source
  • HRTIM_IT_DLLRDY: DLL ready Interrupt source
  • HRTIM_IT_BMPER: Burst mode period Interrupt source
NewState,:new state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 937 of file stm32f30x_hrtim.c.

void HRTIM_ITConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  HRTIM_IT,
FunctionalState  NewState 
)

Enables or disables the Master and slaves interrupt request.

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
HRTIM_IT,:specifies the HRTIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:

  • HRTIM_MASTER_IT_MCMP1: Master compare 1 interrupt source
  • HRTIM_MASTER_IT_MCMP2: Master compare 2 interrupt source
  • HRTIM_MASTER_IT_MCMP3: Master compare 3 interrupt Interrupt source
  • HRTIM_MASTER_IT_MCMP4: Master compare 4 Interrupt source
  • HRTIM_MASTER_IT_MREP: Master Repetition Interrupt source
  • HRTIM_MASTER_IT_SYNC: Synchronization input Interrupt source
  • HRTIM_MASTER_IT_MUPD: Master update Interrupt source
  • HRTIM_TIM_IT_CMP1: Timer compare 1 Interrupt source
  • HRTIM_TIM_IT_CMP2: Timer compare 2 Interrupt source
  • HRTIM_TIM_IT_CMP3: Timer compare 3 Interrupt source
  • HRTIM_TIM_IT_CMP4: Timer compare 4 Interrupt source
  • HRTIM_TIM_IT_REP: Timer repetition Interrupt source
  • HRTIM_TIM_IT_UPD: Timer update Interrupt source
  • HRTIM_TIM_IT_CPT1: Timer capture 1 Interrupt source
  • HRTIM_TIM_IT_CPT2: Timer capture 2 Interrupt source
  • HRTIM_TIM_IT_SET1: Timer output 1 set Interrupt source
  • HRTIM_TIM_IT_RST1: Timer output 1 reset Interrupt source
  • HRTIM_TIM_IT_SET2: Timer output 2 set Interrupt source
  • HRTIM_TIM_IT_RST2: Timer output 2 reset Interrupt source
  • HRTIM_TIM_IT_RST: Timer reset Interrupt source
  • HRTIM_TIM_IT_DLYPRT1: Timer delay protection Interrupt source
NewState,:new state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 880 of file stm32f30x_hrtim.c.

void HRTIM_SimpleBaseStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx 
)

Starts the counter of a timer operating in basic time base mode.

Parameters:
HRTIMx,:pointer to HRTIM 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
Return values:
None

Definition at line 453 of file stm32f30x_hrtim.c.

void HRTIM_SimpleBaseStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx 
)

Stops the counter of a timer operating in basic time base mode.

Parameters:
HRTIMx,:pointer to HRTIM 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
Return values:
None

Definition at line 471 of file stm32f30x_hrtim.c.

void HRTIM_SimpleCaptureStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureChannel 
)

Enables a basic capture on the designed capture unit.

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

  • 0x0 to 0x4 for timers A to E
CaptureChannel,:Timer output 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 external event triggering the capture is available for all timing units. It can be used directly and is active as soon as the timing unit counter is enabled.

Definition at line 632 of file stm32f30x_hrtim.c.

void HRTIM_SimpleCaptureStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureChannel 
)

Disables a basic 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
CaptureChannel,:Timer output This parameter can be one of the following values:

  • HRTIM_CAPTUREUNIT_1: Capture unit 1
  • HRTIM_CAPTUREUNIT_2: Capture unit 2
Return values:
None

Definition at line 653 of file stm32f30x_hrtim.c.

void HRTIM_SimpleOCStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  OCChannel 
)

Starts the output compare signal generation on the designed timer output.

Parameters:
HRTIMx,:pointer to HRTIM 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
Return values:
None

Definition at line 500 of file stm32f30x_hrtim.c.

void HRTIM_SimpleOCStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  OCChannel 
)

Stops the output compare signal generation on the designed timer output.

Parameters:
HRTIMx,:pointer to HRTIM 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
Return values:
None

Definition at line 535 of file stm32f30x_hrtim.c.

void HRTIM_SimpleOnePulseStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  OnePulseChannel 
)

Enables the basic one pulse signal generation on the designed output.

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
Return values:
None

Definition at line 707 of file stm32f30x_hrtim.c.

void HRTIM_SimpleOnePulseStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  OnePulseChannel 
)

Disables the basic one pulse signal generation on the designed output.

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
Return values:
None

Definition at line 741 of file stm32f30x_hrtim.c.

void HRTIM_SimplePWMStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  PWMChannel 
)

Starts the PWM output signal generation on the designed timer output.

Parameters:
HRTIMx,:pointer to HRTIM 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
Return values:
None

Definition at line 569 of file stm32f30x_hrtim.c.

void HRTIM_SimplePWMStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  PWMChannel 
)

Stops the PWM output signal generation on the designed timer output.

Parameters:
HRTIMx,:pointer to HRTIM 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
Return values:
None

Definition at line 603 of file stm32f30x_hrtim.c.

void HRTIM_WaveformCounterStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimersToStart 
)

Starts the counter of the designated timer(s) operating in waveform mode Timers can be combined (ORed) to allow for simultaneous counter start.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimersToStart,:Timer counter(s) to start This parameter can be any combination of the following values:

  • HRTIM_TIMERID_MASTER
  • HRTIM_TIMERID_TIMER_A
  • HRTIM_TIMERID_TIMER_B
  • HRTIM_TIMERID_TIMER_C
  • HRTIM_TIMERID_TIMER_D
  • HRTIM_TIMERID_TIMER_E
Return values:
None

Definition at line 769 of file stm32f30x_hrtim.c.

void HRTIM_WaveformCounterStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimersToStop 
)

Stops the counter of the designated timer(s) operating in waveform mode Timers can be combined (ORed) to allow for simultaneous counter stop.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
TimersToStop,:Timer counter(s) to stop This parameter can be any combination of the following values:

  • HRTIM_TIMERID_MASTER
  • HRTIM_TIMERID_TIMER_A
  • HRTIM_TIMERID_TIMER_B
  • HRTIM_TIMERID_TIMER_C
  • HRTIM_TIMERID_TIMER_D
  • HRTIM_TIMERID_TIMER_E
Return values:
None

Definition at line 790 of file stm32f30x_hrtim.c.

void HRTIM_WaveformOutputStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  OutputsToStart 
)

Enables the generation of the waveform signal on the designated output(s) Outputs can be combined (ORed) to allow for simultaneous output enabling.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
OutputsToStart,:Timer output(s) to enable This parameter can be any combination 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
Return values:
None

Definition at line 815 of file stm32f30x_hrtim.c.

void HRTIM_WaveformOutputStop ( HRTIM_TypeDef *  HRTIMx,
uint32_t  OutputsToStop 
)

Disables the generation of the waveform signal on the designated output(s) Outputs can be combined (ORed) to allow for simultaneous output disabling.

Parameters:
HRTIMx,:pointer to HRTIMx peripheral
OutputsToStop,:Timer output(s) to disable This parameter can be any combination 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
Return values:
None

Definition at line 840 of file stm32f30x_hrtim.c.