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

int gp_port_send_break ( GPPort port,
int  duration 
)

Send a break over a serial port.

Parameters:
porta GPPort
durationduration of break in milliseconds

Sends a break with the specified duration in milliseconds.

Returns:
a gphoto2 error code

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

References gp_log(), GP_LOG_DEBUG, GP_OK, _GPPortPrivateCore::ops, and _GPPort::pc.

{
      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);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index