-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuzzer.h
34 lines (28 loc) · 943 Bytes
/
buzzer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdbool.h>
#include <stdint.h>
#ifndef BUZZER_H_INCLUDED
#define BUZZER_H_INCLUDED
const char * const song;
void play( const char *song);
extern const char * stringSink;
extern const char * stringLift;
void BuzzerResetSound();
void BuzzerStart();
void BuzzerSetFrequency(unsigned int freq); // set pitch freq
void BuzzerSetCyclical(unsigned int cyclical); // set period in ms
//void BuzzerSetCadence();
void BuzzerPlay(unsigned int freq, unsigned int ms);
void BuzzerStartSound();
void BuzzerStopSound();
void BuzzerSetBlocking(unsigned int freq, unsigned int ms);
void BuzzerSetNow(unsigned int freq, unsigned int ms);
void BuzzerSetQueue(unsigned int freq, unsigned int ms);
void BuzzerTask();
void BuzzerStop();
void BuzzerDemoSound();
void BuzzerSetVolume(char button);
void BuzzerDemoSoundTacTacOn();
void BuzzerDemoSoundTacTacOff();
void CheckBuzzerStart(void);
void CheckBuzzer(bool mode);
#endif //BUZZER_H_INCLUDED