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

int gp_port_usb_clear_halt ( GPPort port,
int  ep 
)

Clear USB endpoint HALT condition.

Parameters:
port a GPPort
ep endpoint to clear HALT
Clears the HALT (stall?) endpoint condition of the specified endpoint.

Returns:
a gphoto2 error code

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

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

{
      gp_log (GP_LOG_DEBUG, "gphoto2-port", _("Clear halt..."));

      CHECK_NULL (port);
      CHECK_INIT (port);

      CHECK_SUPP (port, "clear_halt", port->pc->ops->clear_halt);
        CHECK_RESULT (port->pc->ops->clear_halt (port, ep));

        return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index