TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle
_TM_DELAY_Timer_t Struct Reference

Custom timer structure. More...

#include <tm_stm32_delay.h>

Data Fields

union {
   struct {
      uint8_t   AREN:1
      uint8_t   CNTEN:1
   }   F
   uint8_t   FlagsVal
uint32_t ARR
uint32_t CNT
void(* Callback )(struct _TM_DELAY_Timer_t *, void *)
void * UserParameters

Detailed Description

Custom timer structure.

Field Documentation

uint8_t AREN

Auto-reload enabled

uint32_t ARR

Auto reload value

void(* Callback) (struct _TM_DELAY_Timer_t *, void *)

Callback which will be called when timer reaches zero

uint32_t CNT

Counter value, counter counts down

uint8_t CNTEN

Count enabled

void* UserParameters

Pointer to user parameters used for callback function