Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utilities
read_memory.cpp
Go to the documentation of this file.
1
#include "
prosilica/prosilica.h
"
2
#include <cstdio>
3
#include <cassert>
4
5
int
main
(
int
argc,
char
** argv)
6
{
7
if
(argc < 2) {
8
printf(
"Usage: %s <IP address>\n"
, argv[0]);
9
return
0;
10
}
11
12
prosilica::init
();
13
char
buffer[
prosilica::Camera::USER_MEMORY_SIZE
] = {0};
14
{
15
prosilica::Camera
cam(argv[1]);
16
cam.
readUserMemory
(buffer,
sizeof
(buffer));
17
}
18
prosilica::fini
();
19
20
fwrite(buffer, 1,
sizeof
(buffer), stdout);
21
22
return
0;
23
}
prosilica::Camera::readUserMemory
void readUserMemory(char *data, size_t size)
Definition:
prosilica.cpp:550
prosilica::init
void init()
Definition:
prosilica.cpp:88
prosilica.h
prosilica::Camera::USER_MEMORY_SIZE
static const size_t USER_MEMORY_SIZE
Data must have size <= USER_MEMORY_SIZE bytes.
Definition:
prosilica.h:171
prosilica::fini
void fini()
Definition:
prosilica.cpp:93
prosilica::Camera
Definition:
prosilica.h:114
main
int main(int argc, char **argv)
Definition:
read_memory.cpp:5
prosilica_camera
Author(s): Maintained by William Woodall - wwoodall@willowgarage.com, Contributions by Allison Thackston - allison.thackston@nasa.gov
autogenerated on Mon Jun 10 2019 14:20:19