Main Page | File List | Globals

robotsound.h

Go to the documentation of this file.
00001 //
00002 // C++ Interface: robotsound
00003 //
00004 // Description: sound routines for robot
00005 //
00006 //
00007 // Author: Leonhard Klein <leoklein@gmx.net>, (C) 2004
00008 //
00009 
00010 #ifndef __ROBOTSOUND_H__
00011 #define __ROBOTSOUND_H__
00012 
00013 #include <avr/io.h>
00014 #include <avr/signal.h>
00015 #include <avr/pgmspace.h>
00016 #include "basic.h"
00017 
00018 
00019 extern u08 __ATTR_PROGMEM__ start_up[];
00020 extern u08 __ATTR_PROGMEM__ go_sleep[];
00021 extern u08 __ATTR_PROGMEM__ wake_up[];
00022 extern u08 __ATTR_PROGMEM__ go_hungry[];
00023 extern u08 __ATTR_PROGMEM__ go_empty[];
00024 extern u08 __ATTR_PROGMEM__ snore[];
00025 extern u08 __ATTR_PROGMEM__ beeps[];
00026 extern u08 __ATTR_PROGMEM__ get_connected[];
00027 
00028 
00029 u08 soundplaying;
00030 
00031 
00032 extern void play(u16 Hz);
00033 extern void playt(u08 tone);
00034 extern int playi();
00035 extern int start_sound(u08 *soundtostart, u08 override);
00036 #define START_BEEP(nbeeps) start_sound(beeps+40-4*nbeeps,0)
00037 
00038 #endif

Generated on Wed Feb 2 20:03:50 2005 for Robot by doxygen 1.3.6