libgphoto2 photo camera library (libgphoto2) Internals
2.5.23
|
The port operations. More...
#include <gphoto2-port-library.h>
Data Fields | |
int(* | init )(GPPort *) |
int(* | exit )(GPPort *) |
int(* | open )(GPPort *) |
int(* | close )(GPPort *) |
int(* | read )(GPPort *, char *, int) |
int(* | check_int )(GPPort *, char *, int, int) |
int(* | write )(GPPort *, const char *, int) |
int(* | update )(GPPort *) |
int(* | get_pin )(GPPort *, GPPin, GPLevel *) |
int(* | set_pin )(GPPort *, GPPin, GPLevel) |
int(* | send_break )(GPPort *, int) |
int(* | flush )(GPPort *, int) |
int(* | find_device )(GPPort *dev, int idvendor, int idproduct) |
int(* | find_device_by_class )(GPPort *dev, int class, int subclass, int protocol) |
int(* | clear_halt )(GPPort *dev, int ep) |
int(* | msg_write )(GPPort *dev, int request, int value, int index, char *bytes, int size) |
int(* | msg_read )(GPPort *dev, int request, int value, int index, char *bytes, int size) |
int(* | msg_interface_write )(GPPort *dev, int request, int value, int index, char *bytes, int size) |
int(* | msg_interface_read )(GPPort *dev, int request, int value, int index, char *bytes, int size) |
int(* | msg_class_write )(GPPort *dev, int request, int value, int index, char *bytes, int size) |
int(* | msg_class_read )(GPPort *dev, int request, int value, int index, char *bytes, int size) |
int(* | seek )(GPPort *dev, int offset, int whence) |
int(* | send_scsi_cmd )(GPPort *port, int to_dev, char *cmd, int cmd_size, char *sense, int sense_size, char *data, int data_size) |
int(* | reset )(GPPort *) |
The port operations.
These operations are to be implemented and set by the port library, which drives the lowlevel protocol (serial, usb, etc.).
They are acessed using the accessor functions, like gp_port_open(), gp_port_read() and gp_port_write().
Definition at line 39 of file gphoto2-port-library.h.
int(* _GPPortOperations::check_int) (GPPort *, char *, int, int) |
Definition at line 45 of file gphoto2-port-library.h.
Referenced by gp_port_check_int(), and gp_port_check_int_fast().
int(* _GPPortOperations::clear_halt) (GPPort *dev, int ep) |
Definition at line 61 of file gphoto2-port-library.h.
Referenced by gp_port_usb_clear_halt().
int(* _GPPortOperations::close) (GPPort *) |
Definition at line 43 of file gphoto2-port-library.h.
Referenced by gp_port_close().
int(* _GPPortOperations::exit) (GPPort *) |
Definition at line 41 of file gphoto2-port-library.h.
Referenced by gp_port_exit().
int(* _GPPortOperations::find_device) (GPPort *dev, int idvendor, int idproduct) |
Definition at line 59 of file gphoto2-port-library.h.
Referenced by gp_port_usb_find_device().
int(* _GPPortOperations::find_device_by_class) (GPPort *dev, int class, int subclass, int protocol) |
Definition at line 60 of file gphoto2-port-library.h.
Referenced by gp_port_usb_find_device_by_class().
int(* _GPPortOperations::flush) (GPPort *, int) |
Definition at line 56 of file gphoto2-port-library.h.
Referenced by gp_port_flush().
Definition at line 53 of file gphoto2-port-library.h.
Referenced by gp_port_get_pin().
int(* _GPPortOperations::init) (GPPort *) |
Definition at line 40 of file gphoto2-port-library.h.
Referenced by gp_port_init().
int(* _GPPortOperations::msg_class_read) (GPPort *dev, int request, int value, int index, char *bytes, int size) |
Definition at line 72 of file gphoto2-port-library.h.
Referenced by gp_port_usb_msg_class_read().
int(* _GPPortOperations::msg_class_write) (GPPort *dev, int request, int value, int index, char *bytes, int size) |
Definition at line 70 of file gphoto2-port-library.h.
Referenced by gp_port_usb_msg_class_write().
int(* _GPPortOperations::msg_interface_read) (GPPort *dev, int request, int value, int index, char *bytes, int size) |
Definition at line 68 of file gphoto2-port-library.h.
Referenced by gp_port_usb_msg_interface_read().
int(* _GPPortOperations::msg_interface_write) (GPPort *dev, int request, int value, int index, char *bytes, int size) |
Definition at line 66 of file gphoto2-port-library.h.
Referenced by gp_port_usb_msg_interface_write().
int(* _GPPortOperations::msg_read) (GPPort *dev, int request, int value, int index, char *bytes, int size) |
Definition at line 64 of file gphoto2-port-library.h.
Referenced by gp_port_usb_msg_read().
int(* _GPPortOperations::msg_write) (GPPort *dev, int request, int value, int index, char *bytes, int size) |
Definition at line 62 of file gphoto2-port-library.h.
Referenced by gp_port_usb_msg_write().
int(* _GPPortOperations::open) (GPPort *) |
Definition at line 42 of file gphoto2-port-library.h.
Referenced by gp_port_open().
int(* _GPPortOperations::read) (GPPort *, char *, int) |
Definition at line 44 of file gphoto2-port-library.h.
Referenced by gp_port_read().
int(* _GPPortOperations::reset) (GPPort *) |
Definition at line 84 of file gphoto2-port-library.h.
Referenced by gp_port_reset().
int(* _GPPortOperations::seek) (GPPort *dev, int offset, int whence) |
Definition at line 76 of file gphoto2-port-library.h.
Referenced by gp_port_seek().
int(* _GPPortOperations::send_break) (GPPort *, int) |
Definition at line 55 of file gphoto2-port-library.h.
Referenced by gp_port_send_break().
int(* _GPPortOperations::send_scsi_cmd) (GPPort *port, int to_dev, char *cmd, int cmd_size, char *sense, int sense_size, char *data, int data_size) |
Definition at line 79 of file gphoto2-port-library.h.
Referenced by gp_port_send_scsi_cmd().
Definition at line 54 of file gphoto2-port-library.h.
Referenced by gp_port_set_pin().
int(* _GPPortOperations::update) (GPPort *) |
Definition at line 47 of file gphoto2-port-library.h.
Referenced by gp_port_set_settings().
int(* _GPPortOperations::write) (GPPort *, const char *, int) |
Definition at line 46 of file gphoto2-port-library.h.
Referenced by gp_port_write().