![]() |
HT32SX Monarch Scan
Monarch Scan application for HT32SX
|
: This file provides code for the configuration of the TIM instances. More...
Go to the source code of this file.
Macros | |
| #define | SdkEvalTimersState(TIM_HANDLER_P, NEWSTATE) {((uint8_t)NEWSTATE)?(HAL_TIM_Base_Start_IT(TIM_HANDLER_P)):(HAL_TIM_Base_Stop_IT(TIM_HANDLER_P));} |
| Enables or Disables a specific Timer with its IRQ. More... | |
Functions | |
| void | MX_TIM6_Init (void) |
| void | SdkEvalTimersTimConfig (TIM_HandleTypeDef *TIM_TimeBaseStructure, uint16_t nPrescaler, uint16_t nPeriod) |
| Configures the specified timer to raise an interrupt every time the counter reaches the nPeriod value counting with a prescaler of nPrescaler. More... | |
| void | SdkEvalTimersFindFactors (uint32_t lCycles, uint16_t *pnPrescaler, uint16_t *pnCounter) |
| Computes two integer value prescaler and period such that Cycles = prescaler * period. More... | |
| void | setNotifyEndFlag (uint8_t notifyEnd) |
| Set notify end flag. More... | |
| void | setNIntermediateTimIrqFlag (uint8_t nIntermediateTimeIrq) |
| Set N intermediate TIM IRQ flag. More... | |
| uint8_t | getNotifyEndFlag (void) |
| Get notify end flag. More... | |
| uint32_t | getNIntermediateTimIrqFlag (void) |
| Get N intermediate TIM IRQ flag. More... | |
Variables | |
| TIM_HandleTypeDef | htim6 |
: This file provides code for the configuration of the TIM instances.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
| #define SdkEvalTimersState | ( | TIM_HANDLER_P, | |
| NEWSTATE | |||
| ) | {((uint8_t)NEWSTATE)?(HAL_TIM_Base_Start_IT(TIM_HANDLER_P)):(HAL_TIM_Base_Stop_IT(TIM_HANDLER_P));} |
Enables or Disables a specific Timer with its IRQ.
| TIMER | timer to be set. This parameter can be a pointer to TIM_TypeDef |
| NEWSTATE | specifies if a timer has to be enabled or disabled. This parameter is a float. |
| None |
| uint32_t getNIntermediateTimIrqFlag | ( | void | ) |
Get N intermediate TIM IRQ flag.
| [in] | none | |
| [out] | none |
| n_intermediate_tim_irq | 1 or 0 |
| uint8_t getNotifyEndFlag | ( | void | ) |
Get notify end flag.
| [in] | none | |
| [out] | none |
| notify_end | 1 or 0 |
| void setNIntermediateTimIrqFlag | ( | uint8_t | nIntermediateTimeIrq | ) |
Set N intermediate TIM IRQ flag.
| [in] | nIntermediateTimeIrq | 1 or 0 |
| [out] | none |
| none |
| void setNotifyEndFlag | ( | uint8_t | notifyEnd | ) |
Set notify end flag.
| [in] | notifyEnd | 1 or 0 |
| [out] | none |
| none |