Functions

management functions More...

Collaboration diagram for Peripheral Control methods:

Functions

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. More...
 
void HRTIM_BurstDMAConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t RegistersToUpdate)
 Configures the burst DMA controller for a timer. More...
 
void HRTIM_BurstModeConfig (HRTIM_TypeDef *HRTIMx, HRTIM_BurstModeCfgTypeDef *pBurstModeCfg)
 Configures the burst mode feature of the HRTIMx. More...
 
void HRTIM_BurstModeCtl (HRTIM_TypeDef *HRTIMx, uint32_t Enable)
 Enables or disables the HRTIMx burst mode controller. More...
 
void HRTIM_ChopperModeConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_ChopperModeCfgTypeDef *pChopperModeCfg)
 Configures the chopper mode feature for a timer. More...
 
void HRTIM_DeadTimeConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_DeadTimeCfgTypeDef *pDeadTimeCfg)
 Configures the dead time insertion feature for a timer. More...
 
void HRTIM_EventConfig (HRTIM_TypeDef *HRTIMx, uint32_t Event, HRTIM_EventCfgTypeDef *pEventCfg)
 Configures the conditioning of an external event. More...
 
void HRTIM_EventPrescalerConfig (HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
 Configures the external event conditioning block prescaler. More...
 
void HRTIM_FaultConfig (HRTIM_TypeDef *HRTIMx, HRTIM_FaultCfgTypeDef *pFaultCfg, uint32_t Fault)
 Configures the conditioning of fault input. More...
 
void HRTIM_FaultModeCtl (HRTIM_TypeDef *HRTIMx, uint32_t Fault, uint32_t Enable)
 Enables or disables the HRTIMx Fault mode. More...
 
void HRTIM_FaultPrescalerConfig (HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
 Configures the fault conditioning block prescaler. More...
 
void HRTIM_MasterSetCompare (HRTIM_TypeDef *HRTIMx, uint32_t CompareUnit, uint32_t Compare)
 Sets the HRTIMx Master Comparex Register value. More...
 
void HRTIM_SimpleCaptureChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureChannel, HRTIM_BasicCaptureChannelCfgTypeDef *pBasicCaptureChannelCfg)
 Configures a basic capture. More...
 
void HRTIM_SimpleOCChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OCChannel, HRTIM_BasicOCChannelCfgTypeDef *pBasicOCChannelCfg)
 Configures an output in basic output compare mode. More...
 
void HRTIM_SimpleOnePulseChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t OnePulseChannel, HRTIM_BasicOnePulseChannelCfgTypeDef *pBasicOnePulseChannelCfg)
 Configures an output basic one pulse mode. More...
 
void HRTIM_SimplePWMChannelConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t PWMChannel, HRTIM_BasicPWMChannelCfgTypeDef *pBasicPWMChannelCfg)
 Configures an output in basic PWM mode. More...
 
void HRTIM_SlaveSetCompare (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CompareUnit, uint32_t Compare)
 Sets the HRTIMx Slave Comparex Register value. More...
 
void HRTIM_SoftwareCapture (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureUnit)
 Triggers a software capture on the designed capture unit. More...
 
void HRTIM_SoftwareReset (HRTIM_TypeDef *HRTIMx, uint32_t TimersToReset)
 Triggers the reset of one or several timers. More...
 
void HRTIM_SoftwareUpdate (HRTIM_TypeDef *HRTIMx, uint32_t TimersToUpdate)
 Triggers the update of the registers of one or several timers. More...
 
void HRTIM_SynchronizationConfig (HRTIM_TypeDef *HRTIMx, HRTIM_SynchroCfgTypeDef *pSynchroCfg)
 Configures the external input/output synchronization of the HRTIMx. More...
 
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) More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
void HRTIM_WaveformTimerConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_TimerCfgTypeDef *pTimerCfg)
 Configures the general behavior of a timer operating in waveform mode. More...
 

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
HRTIMxpointer 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
pADCTriggerCfgpointer to the ADC trigger configuration structure
Return values
None

Definition at line 2814 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x5 for master timer
  • 0x0 to 0x4 for timers A to E
RegistersToUpdateregisters 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 2428 of file stm32f30x_hrtim.c.

void HRTIM_BurstModeConfig ( HRTIM_TypeDef *  HRTIMx,
HRTIM_BurstModeCfgTypeDef pBurstModeCfg 
)

Configures the burst mode feature of the HRTIMx.

Parameters
HRTIMxpointer to HRTIMx peripheral
pBurstModeCfgpointer to the burst mode configuration structure
Return values
None

Definition at line 2512 of file stm32f30x_hrtim.c.

void HRTIM_BurstModeCtl ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Enable 
)

Enables or disables the HRTIMx burst mode controller.

Parameters
HRTIMxpointer to HRTIMx peripheral
EnableBurst 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 2882 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
pChopperModeCfgpointer to the chopper mode configuration structure
Return values
None

Definition at line 2373 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
pDeadTimeCfgpointer to the dead time insertion configuration structure
Return values
None

Definition at line 2327 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
HRTIMxpointer to HRTIMx peripheral
Eventexternal 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
pEventCfgpointer to the event conditioning configuration structure
Return values
None

Definition at line 2572 of file stm32f30x_hrtim.c.

void HRTIM_EventPrescalerConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Prescaler 
)

Configures the external event conditioning block prescaler.

Parameters
HRTIMxpointer to HRTIMx peripheral
PrescalerPrescaler 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 2599 of file stm32f30x_hrtim.c.

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

Configures the conditioning of fault input.

Parameters
HRTIMxpointer to HRTIMx peripheral
Faultfault 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
pFaultCfgpointer to the fault conditioning configuration structure
Return values
None

Definition at line 2629 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
HRTIMxpointer to HRTIMx peripheral
Faultfault 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
EnableFault 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 2747 of file stm32f30x_hrtim.c.

void HRTIM_FaultPrescalerConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Prescaler 
)

Configures the fault conditioning block prescaler.

Parameters
HRTIMxpointer to HRTIMx peripheral
PrescalerPrescaler 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 2714 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
HRTIMxpointer to HRTIMx peripheral
CompareUnitCompare 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
Comparespecifies the Comparex register new value
Return values
None

Definition at line 2025 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
CaptureChannelCapture unit This parameter can be one of the following values:
  • HRTIM_CAPTUREUNIT_1: Capture unit 1
  • HRTIM_CAPTUREUNIT_2: Capture unit 2
pBasicCaptureChannelCfgpointer 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 cature can be triggered by a rising edge, a falling edge or both edges on event channel.
Return values
None

Definition at line 1678 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
HRTIMxpointer to HRTIMx 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
pBasicOCChannelCfgpointer to the basic output compare output configuration structure
Note
When the timer operates in basic output compare mode: Output 1 is implicitely controled by the compare unit 1 Output 2 is implicitely controled 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 1460 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
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
pBasicOnePulseChannelCfgpointer 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 controled by the compare unit 1, Output 2 is implicitly controled 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 1742 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
HRTIMxpointer to HRTIMx 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
pBasicPWMChannelCfgpointer to the basic PWM output configuration structure
Note
When the timer operates in basic PWM output mode: Output 1 is implicitly controled by the compare unit 1 Output 2 is implicitly controled 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 1592 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
HRTIMxpointer to HRTIMx peripheral
CompareUnitCompare 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
Comparespecifies the Comparex register new value
Return values
None

Definition at line 2076 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
CaptureUnitCapture 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 capure configuration register is automatically reset by hardware

Definition at line 2912 of file stm32f30x_hrtim.c.

void HRTIM_SoftwareReset ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimersToReset 
)

Triggers the reset of one or several timers.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimersToUpdatetimers 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 2979 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
HRTIMxpointer to HRTIMx peripheral
TimersToUpdatetimers 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 2953 of file stm32f30x_hrtim.c.

void HRTIM_SynchronizationConfig ( HRTIM_TypeDef *  HRTIMx,
HRTIM_SynchroCfgTypeDef pSynchroCfg 
)

Configures the external input/output synchronization of the HRTIMx.

Parameters
HRTIMxpointer to HRTIMx peripheral
pSynchroCfgpointer to the input/output synchronization configuration structure
Return values
None

Definition at line 2479 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
Eventexternal 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
pTimerEventFilteringCfgpointer to the timer event filtering configuration structure
Return values
None

Definition at line 2211 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
CaptureChannelCapture unit to configure This parameter can be one of the following values:
  • HRTIM_CAPTUREUNIT_1: Capture unit 1
  • HRTIM_CAPTUREUNIT_2: Capture unit 2
pCaptureCfgpointer to the compare unit configuration structure
Return values
None

Definition at line 2128 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index 0xFF for master timer This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
CompareUnitCompare 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
pCompareCfgpointer 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 1932 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
OutputTimer 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
pOutputCfgpointer to the timer output configuration structure
Return values
None

Definition at line 2172 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
OutputTimer 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
OutputLevelindicates 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 3016 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
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
pTimerCfgpointer 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 1846 of file stm32f30x_hrtim.c.



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