monitor.h 558 B

12345678910111213141516171819202122
  1. /*
  2. * Squeezelite for esp32
  3. *
  4. * (c) Philippe G. 2019, philippe_44@outlook.com
  5. *
  6. * This software is released under the MIT License.
  7. * https://opensource.org/licenses/MIT
  8. *
  9. */
  10. #pragma once
  11. extern void (*pseudo_idle_svc)(uint32_t now);
  12. extern void (*jack_handler_svc)(bool inserted);
  13. extern bool jack_inserted_svc(void);
  14. extern void (*spkfault_handler_svc)(bool inserted);
  15. extern bool spkfault_svc(void);
  16. extern void (*battery_handler_svc)(float value, int cells);
  17. extern float battery_value_svc(void);
  18. extern uint16_t battery_level_svc(void);