Lines Matching refs:camera
49 digital camera. THIS IS EXTREMELY ALPHA CODE! USE AT YOUR OWN RISK!!
162 "Select Image Number to load from camera",
242 "camera-init",
244 "Re-establish communications with camera (in case of timeout, etc.)",
285 unsigned char r = 0xf0; /* prime the loop with a "camera busy" */
287 /* keep trying if camera says it's busy */
313 init_dc210 (DC210 * camera)
320 if (speeds[speed_index].baud == camera->baud)
337 if ((camera->fd = open (camera->tty_name, O_RDWR)) == -1)
340 camera->tty_name);
346 if (tcgetattr (camera->fd, &tty_orig) == -1)
389 if (tcsetattr (camera->fd, TCSANOW, &tty_new) == -1)
403 tcsendbreak (camera->fd, 0);
405 tcdrain (camera->fd);
408 ioctl (camera->fd, TCSBRKP, 0);
410 ioctl (camera->fd, TCSBRK, 0);
421 if (send_pck (camera->fd, init_pck) == -1)
424 * The camera always powers up at 9600, so we try
438 if (tcsetattr (camera->fd, TCSANOW, &tty_new) == -1)
444 if (send_pck (camera->fd, init_pck) != -1)
450 tcsetattr (camera->fd, TCSANOW, &tty_orig);
461 if (tcsetattr (camera->fd, TCSANOW, &tty_new) == -1)
467 return camera->fd;
474 * Put the camera back to 9600 baud
484 get_info (DC210 * camera)
490 if (send_pck (camera->fd, info_pck) == -1)
498 if (read_data (camera->fd, buf, 256) == -1)
504 if (end_of_data (camera->fd) == -1)
510 camera->model = buf[1];
511 camera->ver_major = buf[2];
512 camera->ver_minor = buf[3];
513 camera->pic_taken = buf[56] << 8 | buf[57];
514 camera->pic_left = buf[72] << 8 | buf[73];
515 camera->flags.low_res = buf[22];
516 camera->flags.low_batt = buf[8];
584 { /* loop until the camera isn't busy */
599 DBG (2, "end_of_data: error: bad EOD from camera (%02x)\n",
822 "still camera"},
1192 * camera.
1341 /* clean up comms with the camera */
1480 /* make sure camera is set to our settings state */