Header file for module <speed.c> More...
Go to the source code of this file.
Defines | |
#define | EXTERN extern |
#define | SPEED_TIMEOUT 2000U |
This value defines how many milliseconds the tacho interrupt missing before setting current wheel RPM to 0. | |
#define | SPEED_GET() (speed_GetRpm() * WHEEL_SIZE * 6U / 10000U) |
This macro returns the current driving speed based on the wheel RPM and the setting for wheel circumference in 10th of km/h. | |
Functions | |
void | speed_Init (void) |
Init function for this module. | |
UINT32 | speed_GetRpm (void) |
Get method for mg_u32Rpm. | |
UINT32 | speed_GetDistance (void) |
Get method for mg_u32Distance. | |
void | speed_CheckTimeout (UINT32 u32SystemTime) |
Check and get method for tacho timeout. |
Definition in file speed.h.