sound.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. #include <stdint.h>
  2. #ifndef SOUND_H
  3. #define SOUND_H
  4. #define e_SOUND_MODE_NULL 0xFF
  5. typedef enum : uint8_t
  6. {e_SOUND_MODE_LOUD,e_SOUND_MODE_ONCE,e_SOUND_MODE_SILENT,e_SOUND_MODE_BLIND} eSOUND_MODE;
  7. #define e_SOUND_MODE_DEFAULT e_SOUND_MODE_LOUD
  8. typedef enum : uint8_t
  9. {e_SOUND_TYPE_ButtonEcho,e_SOUND_TYPE_EncoderEcho,e_SOUND_TYPE_StandardPrompt,e_SOUND_TYPE_StandardConfirm,e_SOUND_TYPE_StandardWarning,e_SOUND_TYPE_StandardAlert,e_SOUND_TYPE_EncoderMove,e_SOUND_TYPE_BlindAlert} eSOUND_TYPE;
  10. typedef enum : uint8_t
  11. {e_SOUND_CLASS_Echo,e_SOUND_CLASS_Prompt,e_SOUND_CLASS_Confirm,e_SOUND_CLASS_Warning,e_SOUND_CLASS_Alert} eSOUND_CLASS;
  12. extern eSOUND_MODE eSoundMode;
  13. extern void Sound_Init(void);
  14. extern void Sound_Default(void);
  15. extern void Sound_Save(void);
  16. extern void Sound_CycleState(void);
  17. extern void Sound_MakeSound(eSOUND_TYPE eSoundType);
  18. extern void Sound_MakeCustom(uint16_t ms,uint16_t tone_ ,bool critical);
  19. //static void Sound_DoSound_Echo(void);
  20. //static void Sound_DoSound_Prompt(void);
  21. #endif // SOUND_H