#ifndef _DOWNLOAD_H_
#define _DOWNLOAD_H_

int openSerialPort();
void usage();
void alarmCB(int foo);
float timevalDifference(struct timeval *startTime,
			struct timeval *endTime);
int readDataFromPort(int fd, unsigned char **buf, int *len,
		     int interactive = 0, char *filename = NULL);
int writeDataToFile(const char *filename,
		    unsigned char *buf, int len);
int writeRGBPNM(const char *filename,
		unsigned char *buf, int h);

#endif