Functions

Data transfers functions. More...

Collaboration diagram for I/O operation methods:

Functions

void HRTIM_ClearCommonFlag (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonFLAG)
 Clears the common interrupt flags. More...
 
void HRTIM_ClearCommonITPendingBit (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonIT)
 Clears the common interrupt pending bits. More...
 
void HRTIM_ClearFlag (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_FLAG)
 Clears the Master and slaves interrupt flags. More...
 
void HRTIM_ClearITPendingBit (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_IT)
 Clears the Master and slaves interrupt request pending bits. More...
 
void HRTIM_DLLCalibrationStart (HRTIM_TypeDef *HRTIMx, uint32_t CalibrationRate)
 Starts the DLL calibration. More...
 
void HRTIM_DMACmd (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_DMA, FunctionalState NewState)
 Enables or disables the HRTIMx's DMA Requests. More...
 
FlagStatus HRTIM_GetCommonFlagStatus (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonFLAG)
 Checks whether the specified HRTIM common flag is set or not. More...
 
ITStatus HRTIM_GetCommonITStatus (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonIT)
 Checks whether the specified HRTIM common interrupt has occurred or not. More...
 
FlagStatus HRTIM_GetFlagStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_FLAG)
 Checks whether the specified HRTIM flag is set or not. More...
 
ITStatus HRTIM_GetITStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_IT)
 Checks whether the specified HRTIM interrupt has occurred or not. More...
 
void HRTIM_ITCommonConfig (HRTIM_TypeDef *HRTIMx, uint32_t HRTIM_CommonIT, FunctionalState NewState)
 Enables or disables the common interrupt request. More...
 
void HRTIM_ITConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t HRTIM_IT, FunctionalState NewState)
 Enables or disables the Master and slaves interrupt request. More...
 
void HRTIM_SimpleBaseStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx)
 Starts the counter of a timer operating in basic time base mode. More...
 
void HRTIM_SimpleBaseStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx)
 Stops the counter of a timer operating in basic time base mode. More...
 
void HRTIM_SimpleCaptureStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureChannel)
 Enables a basic capture on the designed capture unit. More...
 
void HRTIM_SimpleCaptureStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureChannel)
 Disables a basic capture on the designed capture unit. More...
 
void HRTIM_SimpleOCStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OCChannel)
 Starts the output compare signal generation on the designed timer output. More...
 
void HRTIM_SimpleOCStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OCChannel)
 Stops the output compare signal generation on the designed timer output. More...
 
void HRTIM_SimpleOnePulseStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OnePulseChannel)
 Enables the basic one pulse signal generation on the designed output. More...
 
void HRTIM_SimpleOnePulseStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OnePulseChannel)
 Disables the basic one pulse signal generation on the designed output. More...
 
void HRTIM_SimplePWMStart (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t PWMChannel)
 Starts the PWM output signal generation on the designed timer output. More...
 
void HRTIM_SimplePWMStop (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t PWMChannel)
 Stops the PWM output signal generation on the designed timer output. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

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
HRTIMxpointer to HRTIMx peripheral
HRTIM_FLAGspecifies 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 1035 of file stm32f30x_hrtim.c.

void HRTIM_ClearCommonITPendingBit ( HRTIM_TypeDef *  HRTIMx,
uint32_t  HRTIM_CommonIT 
)

Clears the common interrupt pending bits.

Parameters
HRTIMxpointer to HRTIMx peripheral
HRTIM_ITspecifies 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 1112 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
HRTIM_FLAGspecifies 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 994 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
HRTIM_ITspecifies 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 1071 of file stm32f30x_hrtim.c.

void HRTIM_DLLCalibrationStart ( HRTIM_TypeDef *  HRTIMx,
uint32_t  CalibrationRate 
)

Starts the DLL calibration.

Parameters
HRTIMxpointer to HRTIMx peripheral
CalibrationRateDLL 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 424 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
HRTIM_DMAspecifies 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
NewStatenew state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1373 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
HRTIMxpointer to HRTIMx peripheral
HRTIM_FLAGspecifies 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 1208 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
HRTIMxpointer to HRTIMx peripheral
HRTIM_ITspecifies 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 1320 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
HRTIM_FLAGspecifies 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 1149 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
HRTIM_ITspecifies 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 1254 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
HRTIMxpointer to HRTIMx peripheral
HRTIM_ITspecifies 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
NewStatenew state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 951 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
HRTIM_ITspecifies 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
NewStatenew state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 894 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer 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 460 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer 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 478 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
CaptureChannelTimer 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 643 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
CaptureChannelTimer 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 667 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
OCChannelTimer 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 507 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
OCChannelTimer 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 542 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
OnePulseChannelTimer 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 721 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
OnePulseChannelTimer 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 755 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
PWMChannelTimer 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 576 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
HRTIMxpointer to HRTIM peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
PWMChannelTimer 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 610 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
HRTIMxpointer to HRTIMx peripheral
TimersToStartTimer 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 783 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
HRTIMxpointer to HRTIMx peripheral
TimersToStopTimer 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 804 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
HRTIMxpointer to HRTIMx peripheral
OutputsToStartTimer 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 829 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
HRTIMxpointer to HRTIMx peripheral
OutputsToStopTimer 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 854 of file stm32f30x_hrtim.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:30