presets.h 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef PRESETS_H_
  2. #define PRESETS_H_
  3. #include "fixpt.h"
  4. #if CONF_PRESETS
  5. /* Presets feature ENABLED */
  6. /* The global number of presets available. */
  7. #define NR_PRESETS 6
  8. /* Preset default values. */
  9. #define PRESET_DEFAULT0 CELSIUS(305)
  10. #define PRESET_DEFAULT1 CELSIUS(320)
  11. #define PRESET_DEFAULT2 CELSIUS(335)
  12. #define PRESET_DEFAULT3 CELSIUS(350)
  13. #define PRESET_DEFAULT4 CELSIUS(365)
  14. #define PRESET_DEFAULT5 CELSIUS(380)
  15. #define PRESET_DEFAULT_INDEX 3
  16. #else /* CONF_PRESETS */
  17. /* Presets feature DISABLED */
  18. #define NR_PRESETS 1
  19. #define PRESET_DEFAULT0 CELSIUS(350)
  20. #define PRESET_DEFAULT_INDEX 0
  21. #endif /* CONF_PRESETS */
  22. void presets_next(void);
  23. void presets_prev(void);
  24. uint8_t presets_get_active_index(void);
  25. fixpt_t presets_get_active_value(void);
  26. void presets_set_active_value(fixpt_t value);
  27. void presets_init(void);
  28. #endif /* PRESETS_H_ */