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

xtypes.h

Go to the documentation of this file.
00001 /*@{*//*@}*/
00009 
00010 #ifndef  _XTYPES_H
00011 #define  _XTYPES_H
00012 
00013 #ifdef EXPORT
00014   #define EXTERN
00015 #else
00016   #define EXTERN extern
00017 #endif
00018 
00019 /******************************************************************************/
00020 /* Constants (#define)                *//*@{*/
00021 /* End: define Constants                                                *//*@}*/
00022 /******************************************************************************/
00023 
00024 /******************************************************************************/
00025 /* Macro definitions (#define)           *//*@{*/
00026 /* End: Macro definitions (#define)                                     *//*@}*/
00027 /******************************************************************************/
00028 
00029 /******************************************************************************/
00030 /* Basic types (typedef)                 *//*@{*/
00031 
00032 typedef           char        CHAR;
00033 typedef           char        INT8;
00034 typedef unsigned  char        UINT8;
00035 typedef           int         INT16;
00036 typedef unsigned  int         UINT16;
00037 typedef           long        INT32;
00038 typedef unsigned  long        UINT32;
00039 typedef           long long   INT64;
00040 typedef unsigned  long long   UINT64;
00041 typedef           float       FLOAT;
00042 typedef           double      DOUBLE;
00043 
00044 
00045 typedef enum 
00046 {
00047   FALSE = 0U, 
00048   TRUE  = 1U
00049 } E_BOOL;
00050 
00051 
00052 typedef enum 
00053 {
00054   OFF = 0U, 
00055   ON  = 1U
00056 } E_SWITCH;
00057 
00058 
00059 typedef enum
00060 {
00061   COND_OK           = 0U,
00062   COND_VOLT_WARN    = 1U,
00063   COND_CURR_WARN    = 2U,
00064   COND_TEMP_WARN    = 4U,
00065   COND_VOLT_ERR     = 8U,
00066   COND_CURR_ERR     = 16U,
00067   COND_TEMP_ERR     = 32U
00068 } E_SAFETY_CONDITION;
00069 
00070 
00071 typedef struct
00072 {
00073   E_BOOL    bIsPedelec;         // pedelec mode?
00074   UINT16    u16WheelSize;       // wheel circumflex in mm
00075   UINT16    u16SpeedLimitMax;   // 10th parts of km/h (i.e. 123 equals 12.3km/h)
00076   UINT16    u16SpeedLimitMin;   // 10th parts of km/h (i.e. 123 equals 12.3km/h)
00077   UINT16    u16TempFan;         // fan activation temperature (in °C)
00078   UINT8     u8NumMagnetsTacho;  // Number of magnets for tacho reed switch
00079   UINT8     u8NumMagnetsPedal;  // Number of magnets for pedal reed switch
00080 } S_MEM_STRUCTRUE;
00081 
00082 /* End: Basic types (typedef)                                           *//*@}*/
00083 /******************************************************************************/
00084 
00085 /******************************************************************************/
00086 /* Global variables/constan.  *//*@{*/
00087 /* End: Global variables                                                *//*@}*/
00088 /******************************************************************************/
00089 
00090 /******************************************************************************/
00091 /* Prototype declarations                                                     */
00092 /* End: Prototype declarations                                                */
00093 /******************************************************************************/
00094 #undef EXTERN
00095 #endif /* _XTYPES_H */
00096 
00097 /**** Last line of code                                                    ****/

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