Welcome to the EyeBot  Version 7 - RPi1
A Controller For Various Hardware IO
audio.h
Go to the documentation of this file.
1 
7 #ifndef AUDIO_H_
8 #define AUDIO_H_
9 
10 #include <stdio.h>
11 #include <inttypes.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <math.h>
15 #include <time.h>
16 #include <errno.h>
17 #include <unistd.h>
18 #include <wiringPi.h>
19 
20 #include "types.h"
21 #include "timer.h"
22 #include "inout.h"
23 
24 void speaker_init(void);
25 int AUBeep(void); // Play beep sound
26 int AUTone(int freq, int time); // Play tone with FREQ for time/1000 sec
27 int AUCheckTone(void); // Non-blocking test if tone has finished
28 int AUPlay(BYTE* sample); // Play audio sample
29 int AUCheckPlay(void); // Non-blocking test if playing has finished
30 int AUMicrophone(void); // Return microphone A-to-D sample value
31 int AURecord(BYTE* buf, int time, long freq); // Record sound for time/1000sec using sample FREQ
32 int AUCheckRecord(void); // Non-blocking check whether recording has finished
33 
34 #endif /* AUDIO_H_ */
Defines types used for the EyeBot 7.
Header file for timer functionality.
Defines all the functions to connect to a serial USB/serial connection.