23#define LIB_TIMER UINT8_C(0x02)
28#define IFX_TIMER_SET UINT8_C(0x01)
33#define IFX_TIMER_JOIN UINT8_C(0x02)
42#define IFX_TIMER_NOT_SET 0x01u
Infineon specific error code creation and parsing.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Generic struct for joinable timers.
ifx_status_t ifx_timer_join(const ifx_timer_t *timer)
Waits for Timer to finish.
uint64_t _duration
Private member for duration of timer in [us].
void * _start
Private member for start of timer as void* to be as generic as possible.
void ifx_timer_destroy(ifx_timer_t *timer)
Frees memory associated with Timer object (but not object itself).
ifx_status_t ifx_timer_set(ifx_timer_t *timer, uint64_t time_us)
Sets Timer for given amount of [us].
bool ifx_timer_has_elapsed(const ifx_timer_t *timer)
Checks if Timer has elapsed.