X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fntc.h;h=8267d51fd5848461ec869747f80fe1666d893cab;hb=7af44c59736ad212ad0f7b0269493db8d5122dc5;hp=bf221369a1a116c9f1e14f67c5add7a55df7a3f5;hpb=0c2f7108e2f9b6fa567bc83dda9a313fffceb286;p=bertos.git diff --git a/drv/ntc.h b/drv/ntc.h old mode 100755 new mode 100644 index bf221369..8267d51f --- a/drv/ntc.h +++ b/drv/ntc.h @@ -1,6 +1,31 @@ -/*! +/** * \file * @@ -15,6 +40,9 @@ /*#* *#* $Log$ + *#* Revision 1.2 2006/07/19 12:56:26 bernie + *#* Convert to new Doxygen style. + *#* *#* Revision 1.1 2005/11/04 17:59:47 bernie *#* Import into DevLib. *#* @@ -38,40 +66,40 @@ #define NTC_OPEN_CIRCUIT -32768 #define NTC_SHORT_CIRCUIT 32767 -typedef int16_t deg_t; /*! type for celsius degrees deg_t = °C * 10 */ +typedef int16_t deg_t; /** type for celsius degrees deg_t = °C * 10 */ -/*! Macro for converting from deg to deg_t type */ +/** Macro for converting from deg to deg_t type */ #define DEG_TO_DEG_T(x) ((deg_t)((x) * 10)) -/*! Macro for converting from deg_t to celsius degrees (returns only the integer part) */ +/** Macro for converting from deg_t to celsius degrees (returns only the integer part) */ #define DEG_T_TO_INTDEG(x) ((x) / 10) -/*! Macro for converting from deg_t to celsius degrees (returns only the decimal part) */ +/** Macro for converting from deg_t to celsius degrees (returns only the decimal part) */ #define DEG_T_TO_DECIMALDEG(x) ((x) % 10) -/*! Macro for converting from deg_t to celsius degrees (returns type is float) */ +/** Macro for converting from deg_t to celsius degrees (returns type is float) */ #define DEG_T_TO_FLOATDEG(x) ((x) / 10.0) -typedef uint32_t res_t; /*! type for resistor res_t = Ohm * 100 */ -typedef float amp_t; /*! type for defining amplifications amp_t = A, where A is a pure number */ +typedef uint32_t res_t; /** type for resistor res_t = Ohm * 100 */ +typedef float amp_t; /** type for defining amplifications amp_t = A, where A is a pure number */ DB(extern bool ntc_initialized;) -/*! Describe a NTC chip */ +/** Describe a NTC chip */ typedef struct NtcHwInfo { - const res_t *resistances; //!< resistances of the NTC (ohms * 100) - size_t num_resistances; //!< number of resistances - deg_t degrees_min; //!< degrees corresponding to the first entry in the table (celsius * 10) - deg_t degrees_step; //!< difference in degrees between two consecutive elements in the table (celsius * 10) + const res_t *resistances; ///< resistances of the NTC (ohms * 100) + size_t num_resistances; ///< number of resistances + deg_t degrees_min; ///< degrees corresponding to the first entry in the table (celsius * 10) + deg_t degrees_step; ///< difference in degrees between two consecutive elements in the table (celsius * 10) } NtcHwInfo; -/*! Initialize the NTC module */ +/** Initialize the NTC module */ void ntc_init(void); -/*! Read a single temperature value from the NTC */ +/** Read a single temperature value from the NTC */ deg_t ntc_read(NtcDev dev); #endif /* DRV_NTC_H */