sound.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #include <stdint.h>
  2. #ifndef SOUND_H
  3. #define SOUND_H
  4. #define MSG_SOUND_MODE_LOUD "Sound [loud]"
  5. #define MSG_SOUND_MODE_ONCE "Sound [once]"
  6. #define MSG_SOUND_MODE_SILENT "Sound [silent]"
  7. #define MSG_SOUND_MODE_BLIND "Sound [assist]"
  8. #define e_SOUND_MODE_NULL 0xFF
  9. typedef enum
  10. {e_SOUND_MODE_LOUD,e_SOUND_MODE_ONCE,e_SOUND_MODE_SILENT,e_SOUND_MODE_BLIND} eSOUND_MODE;
  11. #define e_SOUND_MODE_DEFAULT e_SOUND_MODE_LOUD
  12. typedef enum
  13. {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;
  14. typedef enum
  15. {e_SOUND_CLASS_Echo,e_SOUND_CLASS_Prompt,e_SOUND_CLASS_Confirm,e_SOUND_CLASS_Warning,e_SOUND_CLASS_Alert} eSOUND_CLASS;
  16. extern eSOUND_MODE eSoundMode;
  17. extern void Sound_Init(void);
  18. extern void Sound_Default(void);
  19. extern void Sound_Save(void);
  20. extern void Sound_CycleState(void);
  21. extern void Sound_MakeSound(eSOUND_TYPE eSoundType);
  22. extern void Sound_MakeCustom(uint16_t ms,uint16_t tone_ ,bool critical);
  23. //static void Sound_DoSound_Echo(void);
  24. //static void Sound_DoSound_Prompt(void);
  25. #endif // SOUND_H