Introduction

The FLI CCD device driver provides a way to control certain operational characteristics through the ioctl(2) system call. The valid ioctl request codes are defined in fli_ioctl.h. The device driver ioctl implementation assumes pass by reference, meaning its third argument should be a pointer from/to which values are passed. For example:
      #include <stdio.h>
      #include <sys/types.h>
      #include <sys/stat.h>
      #include <fcntl.h>
      #include <sys/ioctl.h>
      #include "fli_ioctl.h"

      #define CCD_CHAR_FILE "/dev/ccd0"

      int main(int argc, char *argv[])
      {
        int fd, dto = 20;

        if ((fd = open(CCD_CHAR_FILE)) == -1)
        {
          perror("open");
          exit(1);
        }

        if (ioctl(fd, FLI_SET_DTO, &dto))
        {
          perror("ioctl");
          exit(1);
        }

        close(fd);
        exit(0);
      }
      

The ioctl request codes are described in the following section.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.