/users/dtb26/GITROOT/VetSim-Core/src/soundlib/soundConnection.h

00001 /*
00002 Direct Serial read/write/init taken from Arduino: A Quick-Start Guide
00003 
00004 sound setup, play, and stop sound added for specfic case
00005 use play and stop to build play lung sound
00006 Michael Oleske
00007 //on my linux machine port /dev/ttyACM0
00008 */
00009 
00010 
00011 #include <fcntl.h>
00012 #include <sys/ioctl.h>
00013 #include <termios.h>
00014 #include <stdint.h>
00015 #include <string.h>
00016 
00017 int serialport_init(const char* serialport, int baud);
00018 int serialport_write(int fd, const char* str);
00019 int serialport_read_until(int fd, char* buf, char until);
00020 int serialport_sound_setup(const char* serialport);
00021 int serialport_play_heartsound(int fd, char* str, char* dur);
00022 int serialport_stop_heartsound(int fd, char* str);

Generated on Thu Sep 27 11:11:48 2012 for VetSim by  doxygen 1.4.7