monitor.h 622 B

12345678910111213141516171819202122232425262728
  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. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. extern void (*pseudo_idle_svc)(uint32_t now);
  15. extern void (*jack_handler_svc)(bool inserted);
  16. extern bool jack_inserted_svc(void);
  17. extern void (*spkfault_handler_svc)(bool inserted);
  18. extern bool spkfault_svc(void);
  19. extern void (*battery_handler_svc)(float value, int cells);
  20. extern float battery_value_svc(void);
  21. extern uint16_t battery_level_svc(void);
  22. #ifdef __cplusplus
  23. }
  24. #endif