buzzer.h 629 B

12345678910111213141516171819202122232425
  1. /*
  2. * buzzer.h
  3. *
  4. * Created on: Jan 12, 2021
  5. * Author: David Original work by Jose (PTDreamer), 2017
  6. */
  7. #ifndef GENERALIO_BUZZER_H_
  8. #define GENERALIO_BUZZER_H_
  9. #define SHORT_BEEP (uint16_t) 10
  10. #define LONG_BEEP (uint16_t) 30
  11. #define FATAL_BEEP (uint16_t) 2000
  12. #define ALARM_PERIOD (uint16_t) 2000
  13. #define ALARM_HIGH (uint16_t) 10
  14. #define ALARM_LOW (uint16_t) (ALARM_PERIOD-ALARM_HIGH)
  15. void buzzer_short_beep();
  16. void buzzer_long_beep();
  17. void buzzer_fatal_beep();
  18. void buzzer_alarm_start();
  19. void buzzer_alarm_stop();
  20. void handle_buzzer();
  21. void buzzer_init();
  22. #endif /* GENERALIO_BUZZER_H_ */