Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_port_get_pin ( GPPort port,
GPPin  pin,
GPLevel level 

Get setting of specific serial PIN.

port a GPPort
pin the serial pin to be retrieved
level the setting of the pin
a gphoto2 error code

Definition at line 626 of file gphoto2-port.c.

References CHECK_NULL, CHECK_RESULT, _GPPortOperations::get_pin, gp_log(), GP_LOG_DEBUG, GP_OK, _GPPortPrivateCore::ops, and _GPPort::pc.

      gp_log (GP_LOG_DEBUG, "gphoto2-port", _("Getting level of pin %i..."),

      CHECK_NULL (port && level);
      CHECK_INIT (port);

      CHECK_SUPP (port, "get_pin", port->pc->ops->get_pin);
        CHECK_RESULT (port->pc->ops->get_pin (port, pin, level));

      gp_log (GP_LOG_DEBUG, "gphoto2-port", _("Level of pin %i: %i"),
            pin, *level);

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index