15 */ |
15 */ |
16 #define DS18B20_ERR_NONE 0 ///< No errors |
16 #define DS18B20_ERR_NONE 0 ///< No errors |
17 #define DS18B20_ERR_CRC 1 ///< CRC read error |
17 #define DS18B20_ERR_CRC 1 ///< CRC read error |
18 #define DS18B20_ERR_READ 2 ///< Generic read error |
18 #define DS18B20_ERR_READ 2 ///< Generic read error |
19 |
19 |
20 #define DS18B20_MAX 4 |
20 #define DS18B20_MAX 4 ///< Maximum number of DS18B20 sensors. |
21 |
21 |
22 /** |
22 /** |
23 * @brief Structure for a temperature sensor. |
23 * @brief Structure for a temperature sensor. |
24 */ |
24 */ |
25 typedef struct strTempsensor { |
25 typedef struct strTempsensor { |