X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2Fserial.c;fp=hardware%2Fcommon%2Fserial.c;h=a267d6fb88367fa246c3c739a697b218e110a0dc;hb=48d3238e66bac0958fbec316db837aa3a8a1075a;hp=d08f22bdcd981c0a91f111fb777911d5ba3616c3;hpb=8ae157d976d9825f77c46b1cfa9ecaeacad25436;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 + * "/{/