12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
-
-
- #ifndef __VOLCANO_H__
- #define __VOLCANO_H__
-
- #include <stdint.h>
- #include <stdbool.h>
-
- #include "models.h"
-
- enum volcano_state {
- VOLCANO_STATE_HEATER = (1 << 0),
- VOLCANO_STATE_PUMP = (1 << 1),
- };
-
-
- int8_t volcano_discover_characteristics(void);
-
-
- int16_t volcano_get_current_temp(void);
- int16_t volcano_get_target_temp(void);
-
-
- int8_t volcano_set_target_temp(uint16_t v);
-
-
- int8_t volcano_set_heater_state(bool value);
- int8_t volcano_set_pump_state(bool value);
-
- enum unit volcano_get_unit(void);
- enum volcano_state volcano_get_state(void);
-
- #endif
|