read_memory.cpp
Go to the documentation of this file.
00001 #include "prosilica/prosilica.h"
00002 #include <cstdio>
00003 #include <cassert>
00004 
00005 int main(int argc, char** argv)
00006 {
00007   if (argc < 2) {
00008     printf("Usage: %s <IP address>\n", argv[0]);
00009     return 0;
00010   }
00011 
00012   prosilica::init();
00013   char buffer[prosilica::Camera::USER_MEMORY_SIZE] = {0};
00014   {
00015     prosilica::Camera cam(argv[1]);
00016     cam.readUserMemory(buffer, sizeof(buffer));
00017   }
00018   prosilica::fini();
00019 
00020   fwrite(buffer, 1, sizeof(buffer), stdout);
00021 
00022   return 0;
00023 }


prosilica_camera
Author(s): Patrick Mihelich
autogenerated on Thu Jan 2 2014 11:46:39