• Main Page
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

speed.h

Go to the documentation of this file.
00001 /*@{*//*@}*/
00009 
00010 #ifndef SPEED_H
00011 #define SPEED_H
00012 
00013 #ifdef EXPORT
00014   #define EXTERN
00015 #else
00016   #define EXTERN extern
00017 #endif
00018 
00019 /******************************************************************************/
00020 /* Constants (#define)                *//*@{*/
00021 
00024 #define SPEED_TIMEOUT 2000U
00025 
00026 /* End: define Constants                                                *//*@}*/
00027 /******************************************************************************/
00028 
00029 /******************************************************************************/
00030 /* Macro definitions (#define)           *//*@{*/
00031 
00034 #define SPEED_GET() (speed_GetRpm() * WHEEL_SIZE * 6U / 10000U) // 10th of km/h
00035 
00036 /* End: Macro definitions (#define)                                     *//*@}*/
00037 /******************************************************************************/
00038 
00039 /******************************************************************************/
00040 /* Basic types (typedef)                 *//*@{*/
00041 /* End: Basic types (typedef)                                           *//*@}*/
00042 /******************************************************************************/
00043 
00044 /******************************************************************************/
00045 /* Global variables/constan.  *//*@{*/
00046 /* End: Global variables                                                *//*@}*/
00047 /******************************************************************************/
00048 
00049 /******************************************************************************/
00050 /* Prototype declarations                                                     */
00051 
00052 EXTERN void   speed_Init          (void);
00053 EXTERN UINT32 speed_GetRpm        (void);
00054 EXTERN UINT32 speed_GetDistance   (void);
00055 EXTERN void   speed_CheckTimeout  (UINT32 u32SystemTime);
00056 
00057 /* End: Prototype declarations                                                */
00058 /******************************************************************************/
00059 
00060 #undef EXTERN
00061 #endif /* SPEED_H */
00062 
00063 /**** Last line of code                                                    ****/

Generated on Sun Jan 23 2011 14:05:40 for ULA replacement firmware by  doxygen 1.7.2