Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_port_get_pin ( GPPort port,
GPPin  pin,
GPLevel level 
)

Get setting of specific serial PIN.

Parameters:
port a GPPort
pin the serial pin to be retrieved
level the setting of the pin
Returns:
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..."),
            pin);

      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