comedi_command

Name

comedi_command -- start streaming input/output

Synopsis

#include <comedilib.h>

int comedi_command(comedi_t * device, comedi_cmd * command);

Description

The function comedi_command() starts streaming input or output. The command structure pointed to by the parameter command specifies the acquisition. For input subdevices, sample values are read using the function read(). For output subdevices, sample vlaues are written using the function write().

If sucessful, 0 is returned, otherwise -1.