X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2Fserial.c;h=a267d6fb88367fa246c3c739a697b218e110a0dc;hb=e22aa87808624c86ec52ea8d57d0a6f35c9e018e;hp=d08f22bdcd981c0a91f111fb777911d5ba3616c3;hpb=9a47421157a3881265daef50ffd11df9f444d1d9;p=libsigrok.git diff --git a/hardware/common/serial.c b/hardware/common/serial.c index d08f22bd..a267d6fb 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -374,21 +374,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 + * "/{/