L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
timer.h File Reference

Wrapper to timer server. More...

#include "stm32_timer.h"
Include dependency graph for timer.h:

Go to the source code of this file.

Macros

#define TIMERTIME_T_MAX   ( ( uint32_t )~0 )
 Max timer mask.
#define TimerTime_t   UTIL_TIMER_Time_t
 Timer value on 32 bits.
#define TimerEvent_t   UTIL_TIMER_Object_t
 Timer object description.
#define TimerInit(HANDLE, CB)
 Create the timer object.
#define TimerSetValue(HANDLE, TIMEOUT)
 update the period and start the timer
#define TimerStart(HANDLE)
 Start and adds the timer object to the list of timer events.
#define TimerStop(HANDLE)
 Stop and removes the timer object from the list of timer events.
#define TimerGetCurrentTime   UTIL_TIMER_GetCurrentTime
 return the current time
#define TimerGetElapsedTime   UTIL_TIMER_GetElapsedTime
 return the elapsed time

Detailed Description

Wrapper to timer server.

Author
MCD Application Team
Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file timer.h.

Macro Definition Documentation

◆ TimerEvent_t

#define TimerEvent_t   UTIL_TIMER_Object_t

Timer object description.

Definition at line 64 of file timer.h.

◆ TimerGetCurrentTime

#define TimerGetCurrentTime   UTIL_TIMER_GetCurrentTime

return the current time

Definition at line 97 of file timer.h.

◆ TimerGetElapsedTime

#define TimerGetElapsedTime   UTIL_TIMER_GetElapsedTime

return the elapsed time

Definition at line 102 of file timer.h.

◆ TimerInit

#define TimerInit ( HANDLE,
CB )
Value:
do {\
UTIL_TIMER_Create( HANDLE, TIMERTIME_T_MAX, UTIL_TIMER_ONESHOT, CB, NULL);\
} while(0)
#define TIMERTIME_T_MAX
Max timer mask.
Definition timer.h:44

Create the timer object.

Definition at line 69 of file timer.h.

◆ TimerSetValue

#define TimerSetValue ( HANDLE,
TIMEOUT )
Value:
do{ \
UTIL_TIMER_SetPeriod(HANDLE, TIMEOUT);\
} while(0)

update the period and start the timer

Definition at line 76 of file timer.h.

◆ TimerStart

#define TimerStart ( HANDLE)
Value:
do {\
UTIL_TIMER_Start(HANDLE);\
} while(0)

Start and adds the timer object to the list of timer events.

Definition at line 83 of file timer.h.

◆ TimerStop

#define TimerStop ( HANDLE)
Value:
do {\
UTIL_TIMER_Stop(HANDLE);\
} while(0)

Stop and removes the timer object from the list of timer events.

Definition at line 90 of file timer.h.

◆ TimerTime_t

#define TimerTime_t   UTIL_TIMER_Time_t

Timer value on 32 bits.

Definition at line 59 of file timer.h.

◆ TIMERTIME_T_MAX

#define TIMERTIME_T_MAX   ( ( uint32_t )~0 )

Max timer mask.

Definition at line 44 of file timer.h.