2019-06-10 13:03:52 +00:00
|
|
|
#include <stdint.h>
|
2018-07-23 18:04:47 +00:00
|
|
|
#ifndef SOUND_H
|
|
|
|
#define SOUND_H
|
|
|
|
|
|
|
|
|
|
|
|
#define e_SOUND_MODE_NULL 0xFF
|
|
|
|
typedef enum
|
2019-06-10 13:03:52 +00:00
|
|
|
{e_SOUND_MODE_LOUD,e_SOUND_MODE_ONCE,e_SOUND_MODE_SILENT,e_SOUND_MODE_BLIND} eSOUND_MODE;
|
2018-07-23 18:04:47 +00:00
|
|
|
#define e_SOUND_MODE_DEFAULT e_SOUND_MODE_LOUD
|
|
|
|
|
|
|
|
typedef enum
|
2019-06-10 13:03:52 +00:00
|
|
|
{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;
|
2018-07-23 18:04:47 +00:00
|
|
|
typedef enum
|
|
|
|
{e_SOUND_CLASS_Echo,e_SOUND_CLASS_Prompt,e_SOUND_CLASS_Confirm,e_SOUND_CLASS_Warning,e_SOUND_CLASS_Alert} eSOUND_CLASS;
|
|
|
|
|
|
|
|
|
|
|
|
extern eSOUND_MODE eSoundMode;
|
|
|
|
|
|
|
|
|
|
|
|
extern void Sound_Init(void);
|
|
|
|
extern void Sound_Default(void);
|
|
|
|
extern void Sound_CycleState(void);
|
2018-08-07 13:05:18 +00:00
|
|
|
extern void Sound_MakeSound(eSOUND_TYPE eSoundType);
|
2019-06-10 13:03:52 +00:00
|
|
|
extern void Sound_MakeCustom(uint16_t ms,uint16_t tone_ ,bool critical);
|
2018-07-23 18:04:47 +00:00
|
|
|
|
|
|
|
//static void Sound_DoSound_Echo(void);
|
|
|
|
//static void Sound_DoSound_Prompt(void);
|
|
|
|
|
|
|
|
#endif // SOUND_H
|