Stabilus 322699 wDoublePID

Dependencies:   mbed QEI PID DmTftLibraryEx

Committer:
lex9296
Date:
Mon Apr 11 13:48:34 2022 +0000
Revision:
36:cab8aa44ef91
Parent:
20:626b92b70bf7
Double PID

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mverdy 20:626b92b70bf7 1 /*
mverdy 20:626b92b70bf7 2 ______ _
mverdy 20:626b92b70bf7 3 / _____) _ | |
mverdy 20:626b92b70bf7 4 ( (____ _____ ____ _| |_ _____ ____| |__
mverdy 20:626b92b70bf7 5 \____ \| ___ | (_ _) ___ |/ ___) _ \
mverdy 20:626b92b70bf7 6 _____) ) ____| | | || |_| ____( (___| | | |
mverdy 20:626b92b70bf7 7 (______/|_____)_|_|_| \__)_____)\____)_| |_|
mverdy 20:626b92b70bf7 8 (C)2016 Semtech
mverdy 20:626b92b70bf7 9
mverdy 20:626b92b70bf7 10 Description: Timers header
mverdy 20:626b92b70bf7 11
mverdy 20:626b92b70bf7 12 Maintainer: Gregory Cristian & Gilbert Menth
mverdy 20:626b92b70bf7 13 */
mverdy 20:626b92b70bf7 14
mverdy 20:626b92b70bf7 15 #ifndef TIMERS_H
mverdy 20:626b92b70bf7 16 #define TIMERS_H
mverdy 20:626b92b70bf7 17
mverdy 20:626b92b70bf7 18
mverdy 20:626b92b70bf7 19 #define TIM_MSEC ( uint32_t )1
mverdy 20:626b92b70bf7 20 #define TIM_SEC ( uint32_t )1000
mverdy 20:626b92b70bf7 21 #define TIM_MIN ( uint32_t )60000
mverdy 20:626b92b70bf7 22 #define TIM_HOUR ( uint32_t )3600000
mverdy 20:626b92b70bf7 23 #define MAX_TIMER_VALUE ( TIM_MIN * 150 ) // maximum time for timer
mverdy 20:626b92b70bf7 24
mverdy 20:626b92b70bf7 25
mverdy 20:626b92b70bf7 26 /*!
mverdy 20:626b92b70bf7 27 * \brief Initialses the hardware and variables associated with the timers.
mverdy 20:626b92b70bf7 28 */
mverdy 20:626b92b70bf7 29 void TimersInit( void );
mverdy 20:626b92b70bf7 30
mverdy 20:626b92b70bf7 31 /*!
mverdy 20:626b92b70bf7 32 * \brief Sets a timer to a specific value
mverdy 20:626b92b70bf7 33 *
mverdy 20:626b92b70bf7 34 * \param [in] *STimer Pointer to the timer value to be set.
mverdy 20:626b92b70bf7 35 * \param [in] TimeLength Value to set the timer to in milliseconds.
mverdy 20:626b92b70bf7 36 */
mverdy 20:626b92b70bf7 37 void TimersSetTimer( uint32_t *sTimer, uint32_t timeLength );
mverdy 20:626b92b70bf7 38
mverdy 20:626b92b70bf7 39 /*!
mverdy 20:626b92b70bf7 40 * \brief Checks if a timer has expired.
mverdy 20:626b92b70bf7 41 *
mverdy 20:626b92b70bf7 42 * \param [in] *STimer Pointer to the timer value to be read.
mverdy 20:626b92b70bf7 43 *
mverdy 20:626b92b70bf7 44 * \retval Status Non zero if the timer has not expired and is still
mverdy 20:626b92b70bf7 45 * running.
mverdy 20:626b92b70bf7 46 */
mverdy 20:626b92b70bf7 47 uint32_t TimersTimerHasExpired ( const uint32_t * sTimer );
mverdy 20:626b92b70bf7 48
mverdy 20:626b92b70bf7 49 /*!
mverdy 20:626b92b70bf7 50 * \brief Returns the value of the current time in milliseconds
mverdy 20:626b92b70bf7 51 *
mverdy 20:626b92b70bf7 52 * \param [in] refresh Flag indicates refresh display required (touch)
mverdy 20:626b92b70bf7 53 *
mverdy 20:626b92b70bf7 54 * \retval Value value of current time in milliseconds
mverdy 20:626b92b70bf7 55 */
mverdy 20:626b92b70bf7 56 uint32_t TimersTimerValue ( void );
mverdy 20:626b92b70bf7 57
mverdy 20:626b92b70bf7 58 #endif //TIMERS_H
mverdy 20:626b92b70bf7 59