pce.c
changeset 17 021968512187
parent 15 06da811cdc27
child 18 f85465640dd4
equal deleted inserted replaced
16:62f8cead15df 17:021968512187
     1 /*
     1 /*
     2     PCE-HT71 programmer and data downloader for libusb
     2     PCE-HT71 programmer and data downloader for libusb
     3     Copyright (C) 2010  Lluís Batlle i Rossell
     3     Copyright (C) 2010-2011  Lluís Batlle i Rossell
     4 
     4 
     5     This program is free software: you can redistribute it and/or modify
     5     This program is free software: you can redistribute it and/or modify
     6     it under the terms of the GNU General Public License as published by
     6     it under the terms of the GNU General Public License as published by
     7     the Free Software Foundation, either version 3 of the License, or
     7     the Free Software Foundation, either version 3 of the License, or
     8     (at your option) any later version.
     8     (at your option) any later version.
   247 }
   247 }
   248 
   248 
   249 void
   249 void
   250 usage()
   250 usage()
   251 {
   251 {
   252     fprintf(stderr, "pce v0.2 - PCE-HT71 programmer and data downloader\n");
   252     fprintf(stderr, "pce v0.3 - PCE-HT71 programmer and data downloader\n");
   253     fprintf(stderr, "Copyright (C) 2010  Lluis Batlle i Rossell\n");
   253     fprintf(stderr, "usage: pce [-n maxsamples] [-t timepersample] [-i] <-d downloadfile | -s>\n");
       
   254     fprintf(stderr, "Options:\n");
       
   255     fprintf(stderr, "  -i       Start measuring now, instead of waiting the manual button.\n");
       
   256     fprintf(stderr, "  -s       Program the capture according to '-n' and '-t'\n");
       
   257     fprintf(stderr, "  -d file  Download the data captured until now and stop it\n");
       
   258     fprintf(stderr, "  -n maxs  Set the maximum number of samples to capture (default 16000)\n");
       
   259     fprintf(stderr, "  -t time  Set the number of seconds between samples (default 2)\n");
       
   260     fprintf(stderr, "\nCopyright (C) 2010-2011  Lluis Batlle i Rossell\n");
   254     fprintf(stderr, "This program comes with ABSOLUTELY NO WARRANTY.\n");
   261     fprintf(stderr, "This program comes with ABSOLUTELY NO WARRANTY.\n");
   255     fprintf(stderr, "This is free software, and you are welcome to redistribute it\n");
   262     fprintf(stderr, "This is free software, and you are welcome to redistribute it\n");
   256     fprintf(stderr, "under certain conditions; type `show c' for details.\n");
   263     fprintf(stderr, "under certain conditions; read the COPYING file for details.");
   257     fprintf(stderr, "\nusage: pce [-n maxsamples] [-t timepersample] [-i] <-d downloadfile | -s>\n");
       
   258 }
   264 }
   259 
   265 
   260 int main(int argc, char **argv)
   266 int main(int argc, char **argv)
   261 {
   267 {
   262     int res;
   268     int res;