8 #ifndef PIEZOTWEETER_HPP_
9 #define PIEZOTWEETER_HPP_
11 #if LOKI_TWEETER == GEO_TRUE
13 #include <ti/drivers/I2C.h>
15 #define TWEETER_TASKSTACKSIZE 512
17 #define BASE_FREQUENCY (1000)
18 #define BASE_MAG_VALUE (40000.0f)
27 enum Tunes { PowerOn = 0, Mark, StartAcquisition, StopAcquisition, WifiConnected, WifiDisconnected, SomethingsWrong, Quit };
29 static int Initialize (I2C_Handle offboardI2cHandle,
31 static void TweeterFunction(uint32_t uarg0, uint32_t arg1);
32 static void Player (uint32_t uarg0, uint32_t arg1);
33 static void PlayTune (
enum Tunes tune);
34 static void PlayStartSound ();
35 static void PlayStopSound ();
36 static void PlayHoldSound ();
37 static void NextValue (
float nextValue);
38 static void Silent ();
40 static void SetVolume (
int newVolume);
42 static uint8_t tskLokiTweeterStack[TWEETER_TASKSTACKSIZE];
43 static int sTweeterPwmIndex;
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47