Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_port_send_break ( GPPort port,
int  duration 

Send a break over a serial port.

port a GPPort
duration duration of break in milliseconds
Sends a break with the specified duration in milliseconds.

a gphoto2 error code

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

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

      gp_log (GP_LOG_DEBUG, "gphoto2-port", _("Sending break (%i "
            "milliseconds)..."), duration);

      CHECK_NULL (port);
      CHECK_INIT (port);

        CHECK_SUPP (port, "send_break", port->pc->ops->send_break);
        CHECK_RESULT (port->pc->ops->send_break (port, duration));

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index