123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
-
-
- #ifndef __VOLCANO_H__
- #define __VOLCANO_H__
-
- #include <stdint.h>
- #include <stdbool.h>
-
- #include "models.h"
-
- #define VOLCANO_FW_LEN 12
-
- enum volcano_state {
- VOLCANO_STATE_NONE = 0,
- VOLCANO_STATE_HEATER = (1 << 0),
- VOLCANO_STATE_PUMP = (1 << 1),
- VOLCANO_STATE_INVALID = 0xFF,
- };
-
-
- int8_t volcano_discover_characteristics(bool wf, bool conf);
-
-
- 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);
- int8_t volcano_set_unit(enum unit unit);
- int8_t volcano_set_vibration(bool value);
- int8_t volcano_set_display_cooling(bool value);
-
- enum unit volcano_get_unit(void);
- enum volcano_state volcano_get_state(void);
-
-
- int8_t volcano_get_vibration(void);
- int8_t volcano_get_display_cooling(void);
-
-
- int16_t volcano_get_auto_shutoff(void);
-
-
- int8_t volcano_set_auto_shutoff(uint16_t v);
-
-
- int8_t volcano_get_brightness(void);
-
-
- int8_t volcano_set_brightness(uint8_t v);
-
-
- int8_t volcano_get_firmware(char *val);
-
-
- int32_t volcano_get_runtime(void);
-
- #endif
|