main/task_sound.h

Sun, 24 Nov 2019 16:44:00 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 24 Nov 2019 16:44:00 +0100
changeset 70
d6838a268020
parent 4
6d1f512cd074
permissions
-rw-r--r--

Version 0.3.7. The WiFi task uses the new event handlers. Cooling temperature top is now 45 instead of 30 degreees for pitching Kveik. One extra cosmetic message during OTA update.

#ifndef	_TASK_SOUND_H
#define	_TASK_SOUND_H

/**
 * @file task_sound.h
 * @brief BrewBoard Sound driver. Uses a simple piezo buzzer.
 */

/**
 * @brief Sound prompt types
 */
typedef enum {
    SOUND_StartUp = 0,			///< Startup sound.
    SOUND_Prompt,                   	///< Prompt sound
    SOUND_TempReached,                  ///< Temperature Reached
    SOUND_TimeOut,                      ///< Time out.
    SOUND_AddHop,                       ///< Add hop sound
    SOUND_End,                          ///< End sound
    SOUND_Warn,                         ///< Warning sound
} SOUND_TYPE;

/**
 * @brief Play sound
 * @param id Sound ID
 */
void SoundPlay(int id);

/**
 * @brief FreeRTOS sound task.
 */
void task_sound(void *);


#endif

mercurial