X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmanson-hcs-3xxx%2Fprotocol.c;h=7a3778327ffc1de995cecb029e65ce4aaf29f307;hb=459324acb8769240513e0bb3ef3c04ad295e8b19;hp=04e18a5fee96297f706f0af7ff8fec428db78479;hpb=1af428d018b10439071c7e3d948f4099603fa63b;p=libsigrok.git diff --git a/src/hardware/manson-hcs-3xxx/protocol.c b/src/hardware/manson-hcs-3xxx/protocol.c index 04e18a5f..7a377832 100644 --- a/src/hardware/manson-hcs-3xxx/protocol.c +++ b/src/hardware/manson-hcs-3xxx/protocol.c @@ -19,10 +19,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -/** @file - * Manson HCS-3xxx Series power supply driver - * @internal - */ +/** + * @file + * + * Manson HCS-3xxx Series power supply driver + * + * @internal + */ #include #include "protocol.h" @@ -56,10 +59,12 @@ SR_PRIV int hcs_send_cmd(struct sr_serial_dev_inst *serial, const char *cmd, ... /** * Read data from interface into buffer blocking until @a lines number of \\r chars * received. + * * @param serial Previously initialized serial port structure. * @param[in] lines Number of \\r-terminated lines to read (1-n). - * @param buf Buffer for result. Contents is NUL-terminated on success. + * @param buf Buffer for result. Contents is NUL-terminated on success. * @param[in] buflen Buffer length (>0). + * * @retval SR_OK Lines received and ending with "OK\r" (success). * @retval SR_ERR Error. * @retval SR_ERR_ARG Invalid argument.