X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2Fserial.c;h=32a6d23c087f61ca046f607811a38465ce21ce1e;hb=831d7c70eb901788d6fa7551807644b1130cce32;hp=d08f22bdcd981c0a91f111fb777911d5ba3616c3;hpb=9a47421157a3881265daef50ffd11df9f444d1d9;p=libsigrok.git diff --git a/hardware/common/serial.c b/hardware/common/serial.c index d08f22bd..32a6d23c 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "libsigrok.h" #include "libsigrok-internal.h" @@ -374,21 +375,30 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, } /** - * Set serial parameters for the specified serial port. + * Set serial parameters for the specified serial port from parameter string. * * @param serial Previously initialized serial port structure. - * @param[in] paramstr A serial communication parameters string, in the form - * of \/\\\\, for example - * "9600/8n1" or "600/7o2" or "460800/8n1/flow=2" where flow is 0 for none, - * 1 for rts/cts and 2 for xon/xoff. - * + * @param[in] paramstr A serial communication parameters string of the form + * "/{/