![]() |
HT32SX Monarch Scan
Monarch Scan application for HT32SX
|
Macros | |
| #define | SdkEvalTimersTimConfig_ms(TIM_HANDLER_P, TIME) |
| Configures the specified TIMER to raise an interrupt every TIME ms. More... | |
| #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... | |
| #define | SdkEvalTimersSetCounter(TIM_HANDLER_P, VALUE) {__HAL_TIM_SET_COUNTER(TIM_HANDLER_P,VALUE);} |
| Set the counter of the specified TIMER. More... | |
| #define | SdkEvalTimersGetCounter(TIM_HANDLER_P) __HAL_TIM_GET_COUNTER(TIM_HANDLER_P) |
| Get the counter of the specified TIMER. More... | |
| #define | SdkEvalTimersResetCounter(TIM_HANDLER_P) {__HAL_TIM_SET_COUNTER(TIM_HANDLER_P,0);} |
| Resets the counter of a specific timer. More... | |
| #define SdkEvalTimersGetCounter | ( | TIM_HANDLER_P | ) | __HAL_TIM_GET_COUNTER(TIM_HANDLER_P) |
Get the counter of the specified TIMER.
| TIMER | timer to be set. This parameter can be a pointer to TIM_TypeDef |
| None |
| #define SdkEvalTimersResetCounter | ( | TIM_HANDLER_P | ) | {__HAL_TIM_SET_COUNTER(TIM_HANDLER_P,0);} |
Resets the counter of a specific timer.
| TIMER | timer to be reset. This parameter can be a pointer to TIM_TypeDef |
| None |
| #define SdkEvalTimersSetCounter | ( | TIM_HANDLER_P, | |
| VALUE | |||
| ) | {__HAL_TIM_SET_COUNTER(TIM_HANDLER_P,VALUE);} |
Set the counter of the specified TIMER.
| TIMER | timer to be set. This parameter can be a pointer to TIM_TypeDef |
| VALUE | value to set in the counter. This parameter is an uint32_t |
| None |
| #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 |
| #define SdkEvalTimersTimConfig_ms | ( | TIM_HANDLER_P, | |
| TIME | |||
| ) |
Configures the specified TIMER to raise an interrupt every TIME ms.
| TIMER | timer to be set. This parameter can be a pointer to TIM_TypeDef |
| TIME | timer duration in ms. This parameter is a float. |
| None |