Tezzeret  1
Tezzeret
GmPiezoTweeter.hpp
1 /*
2  * GmPiezoTweeter.hpp
3  *
4  * Created on: Jan 22, 2021
5  * Author: rh_cr
6  */
7 
8 #ifndef PIEZOTWEETER_HPP_
9 #define PIEZOTWEETER_HPP_
10 
11 #if LOKI_TWEETER == GEO_TRUE
12 
13 #include <ti/drivers/I2C.h>
14 
15 #define TWEETER_TASKSTACKSIZE 512
16 
17 #define BASE_FREQUENCY (1000)
18 #define BASE_MAG_VALUE (40000.0f)
19 
20 namespace Geometrics
21 {
22 
24  {
25  public:
26 
27  enum Tunes { PowerOn = 0, Mark, StartAcquisition, StopAcquisition, WifiConnected, WifiDisconnected, SomethingsWrong, Quit };
28 
29  static int Initialize (I2C_Handle offboardI2cHandle,
30  int tweeterPwmIndex);
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 ();
39  static void Awake ();
40  static void SetVolume (int newVolume);
41  private:
42  static uint8_t tskLokiTweeterStack[TWEETER_TASKSTACKSIZE];
43  static int sTweeterPwmIndex;
44 
45  };
46 }
47 }
48 
49 #endif /* LOKI_TWEETER == GEO_TRUE */
50 #endif /* PIEZOTWEETER_HPP_ */
Definition: GmPiezoTweeter.hpp:24
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47