Functions

Peripheral State functions. More...

Collaboration diagram for Peripheral State methods:

Functions

static void HRTIM_CaptureUnitConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureUnit, uint32_t Event)
 Configures a capture unit. More...
 
static void HRTIM_CompareUnitConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CompareUnit, HRTIM_CompareCfgTypeDef *pCompareCfg)
 Configures a compare unit. More...
 
static void HRTIM_ExternalEventConfig (HRTIM_TypeDef *HRTIMx, uint32_t Event, HRTIM_EventCfgTypeDef *pEventCfg)
 Configures an external event channel. More...
 
uint32_t HRTIM_GetBurstStatus (HRTIM_TypeDef *HRTIMx)
 Returns the actual status (active or inactive) of the burst mode controller. More...
 
uint32_t HRTIM_GetCapturedValue (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t CaptureUnit)
 Returns actual value of the capture register of the designated capture unit. More...
 
uint32_t HRTIM_GetCurrentPushPullStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx)
 Indicates on which output the signal is currently active (when the push pull mode is enabled) More...
 
uint32_t HRTIM_GetDelayedProtectionStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Output)
 Returns the level (active or inactive) of the designated output when the delayed protection was triggered. More...
 
uint32_t HRTIM_GetIdlePushPullStatus (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx)
 Indicates on which output the signal was applied, in push-pull mode balanced fault mode or delayed idle mode, when the protection was triggered. More...
 
static void HRTIM_MasterBase_Config (HRTIM_TypeDef *HRTIMx, HRTIM_BaseInitTypeDef *HRTIM_BaseInitStruct)
 Configures the master timer time base. More...
 
static void HRTIM_MasterWaveform_Config (HRTIM_TypeDef *HRTIMx, HRTIM_TimerInitTypeDef *pTimerInit)
 Configures the master timer in waveform mode. More...
 
static void HRTIM_OutputConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Output, HRTIM_OutputCfgTypeDef *pOutputCfg)
 Configures the output of a timing unit. More...
 
static void HRTIM_TIM_ResetConfig (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Event)
 Configures the timer counter reset. More...
 
static void HRTIM_TimingUnitBase_Config (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_BaseInitTypeDef *HRTIM_BaseInitStruct)
 Configures timing unit (timer A to timer E) time base. More...
 
static void HRTIM_TimingUnitWaveform_Config (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, HRTIM_TimerInitTypeDef *pTimerInit)
 Configures timing unit (timer A to timer E) in waveform mode. More...
 
uint32_t HRTIM_WaveformGetOutputLevel (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Output)
 Returns actual level (active or inactive) of the designated output. More...
 
uint32_t HRTIM_WaveformGetOutputState (HRTIM_TypeDef *HRTIMx, uint32_t TimerIdx, uint32_t Output)
 Returns actual state (RUN, IDLE, FAULT) of the designated output. More...
 

Detailed Description

Peripheral State functions.

 ===============================================================================
                      ##### Peripheral State methods #####
 ===============================================================================  
    [..]
    This subsection permit to get in run-time the status of the peripheral 
    and the data flow.

Function Documentation

void HRTIM_CaptureUnitConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureUnit,
uint32_t  Event 
)
static

Configures a capture unit.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
CaptureUnitCapture unit identifier
pCaptureCfgpointer to the compare unit configuration data structure
Return values
None

Definition at line 3726 of file stm32f30x_hrtim.c.

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

Configures a compare unit.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
CompareUnitCompare unit identifier
pCompareCfgpointer to the compare unit configuration data structure
Return values
None

Definition at line 3653 of file stm32f30x_hrtim.c.

static void HRTIM_ExternalEventConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  Event,
HRTIM_EventCfgTypeDef pEventCfg 
)
static

Configures an external event channel.

Parameters
HRTIMxpointer to HRTIMx peripheral
EventEvent channel identifier
pEventCfgpointer to the event channel configuration data structure
Return values
None

Definition at line 3893 of file stm32f30x_hrtim.c.

uint32_t HRTIM_GetBurstStatus ( HRTIM_TypeDef *  HRTIMx)

Returns the actual status (active or inactive) of the burst mode controller.

Parameters
HRTIMxpointer to HRTIMx peripheral
Return values
Burstmode controller status

Definition at line 3401 of file stm32f30x_hrtim.c.

uint32_t HRTIM_GetCapturedValue ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  CaptureUnit 
)

Returns actual value of the capture register of the designated 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
Capturedvalue

Definition at line 3101 of file stm32f30x_hrtim.c.

uint32_t HRTIM_GetCurrentPushPullStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx 
)

Indicates on which output the signal is currently active (when the push pull mode is enabled)

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
Return values
Burstmode controller status

Definition at line 3420 of file stm32f30x_hrtim.c.

uint32_t HRTIM_GetDelayedProtectionStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Output 
)

Returns the level (active or inactive) of the designated output when the delayed protection was triggered.

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_TD1: Timer E - Output 1
  • HRTIM_OUTPUT_TD2: Timer E - Output 2
Return values
Delayedprotection status

Definition at line 3341 of file stm32f30x_hrtim.c.

uint32_t HRTIM_GetIdlePushPullStatus ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx 
)

Indicates on which output the signal was applied, in push-pull mode balanced fault mode or delayed idle mode, when the protection was triggered.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index This parameter can be one of the following values:
  • 0x0 to 0x4 for timers A to E
Return values
IdlePush Pull Status

Definition at line 3444 of file stm32f30x_hrtim.c.

void HRTIM_MasterBase_Config ( HRTIM_TypeDef *  HRTIMx,
HRTIM_BaseInitTypeDef HRTIM_BaseInitStruct 
)
static

Configures the master timer time base.

Parameters
HRTIMxpointer to HRTIMx peripheral
Return values
None

Definition at line 3463 of file stm32f30x_hrtim.c.

void HRTIM_MasterWaveform_Config ( HRTIM_TypeDef *  HRTIMx,
HRTIM_TimerInitTypeDef pTimerInit 
)
static

Configures the master timer in waveform mode.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
pTimerInitpointer to the timer initialization data structure
Return values
None

Definition at line 3506 of file stm32f30x_hrtim.c.

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

Configures the output of a timing unit.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
Outputtiming unit output identifier
pOutputCfgpointer to the output configuration data structure
Return values
None

Definition at line 3814 of file stm32f30x_hrtim.c.

void HRTIM_TIM_ResetConfig ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Event 
)
static

Configures the timer counter reset.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
EventEvent channel identifier
Return values
None

Definition at line 4050 of file stm32f30x_hrtim.c.

void HRTIM_TimingUnitBase_Config ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
HRTIM_BaseInitTypeDef HRTIM_BaseInitStruct 
)
static

Configures timing unit (timer A to timer E) time base.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
Return values
None

Definition at line 3484 of file stm32f30x_hrtim.c.

void HRTIM_TimingUnitWaveform_Config ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
HRTIM_TimerInitTypeDef pTimerInit 
)
static

Configures timing unit (timer A to timer E) in waveform mode.

Parameters
HRTIMxpointer to HRTIMx peripheral
TimerIdxTimer index
pTimerInitpointer to the timer initialization data structure
Return values
None

Definition at line 3561 of file stm32f30x_hrtim.c.

uint32_t HRTIM_WaveformGetOutputLevel ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Output 
)

Returns actual level (active or inactive) of the designated 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
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
Return values
Outputlevel
Note
Returned output level is taken before the output stage (chopper, polarity).

Definition at line 3153 of file stm32f30x_hrtim.c.

uint32_t HRTIM_WaveformGetOutputState ( HRTIM_TypeDef *  HRTIMx,
uint32_t  TimerIdx,
uint32_t  Output 
)

Returns actual state (RUN, IDLE, FAULT) of the designated 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
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
Return values
Outputstate

Definition at line 3228 of file stm32f30x_hrtim.c.



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