7 char ipaddress[20] =
"192.168.200.32";
8 uint16_t ffc_state = 0;
14 strcpy(ipaddress, argv[2]);
32 printf(
"Usage: a35_ffc {off|auto|once} [ip_address]\n");
37 if ((handle=
gige_open(ipaddress,0x02,40000,5000,10000000)) == NULL)
39 printf(
"Couldn't open camera\n");
56 printf(
"Set To: %d\n", ffc_state);
int gige_writereg(gige_handle *handle, uint32_t address, uint32_t data)
Write Register.
Definition: gige_lib.cpp:192
uint32_t gige_readreg(gige_handle *handle, uint32_t address)
Read GIGE Register.
Definition: gige_lib.cpp:237
#define A35_FFCMODE_MANUAL
Definition: gige_lib.h:449
#define A35_COMMAND_DOFFC
Definition: gige_lib.h:428
gige_handle * handle
Definition: kpc9612p_recv.cpp:33
#define A35_FFCMODE
Definition: gige_lib.h:429
gige_handle * gige_open(char address[18], uint8_t privilege, uint32_t heartbeat_msec, uint32_t socket_usec, uint32_t streambps)
Connect to camera.
Definition: gige_lib.cpp:64
Definition: gige_lib.h:336
void gige_close(gige_handle *handle)
Close GigE Camera.
Definition: gige_lib.cpp:177