func_speaker.h 633 B

1234567891011121314151617181920212223242526
  1. #ifndef _FUNC_SPEAKER_H
  2. #define _FUNC_SPEAKER_H
  3. typedef struct {
  4. u8 pause : 1,
  5. rec_en : 1;
  6. }func_speaker_t;
  7. extern func_speaker_t f_spk;
  8. void func_speaker_message(u16 msg);
  9. void func_speaker_stop(void);
  10. void func_speaker_start(void);
  11. void func_speaker_pause_play(void);
  12. void func_speaker_mp3_res_play(u32 addr, u32 len);
  13. #if (GUI_SELECT != GUI_NO)
  14. void func_speaker_display(void);
  15. void func_speaker_enter_display(void);
  16. void func_speaker_exit_display(void);
  17. #else
  18. #define func_speaker_display()
  19. #define func_speaker_enter_display()
  20. #define func_speaker_exit_display()
  21. #endif
  22. #endif // _FUNC_SPEAKER_H