#ifdef HAVE_LIBSERIALPORT
-/*
+/**
* Standard serial driver dev_open() helper.
*
* This function can be used to implement the dev_open() driver API
return SR_OK;
}
-/*
+/**
* Standard serial driver dev_close() helper.
*
* This function can be used to implement the dev_close() driver API
return SR_OK;
}
-/*
+/**
* Standard sr_session_stop() API helper.
*
* This function can be used to simplify most (serial port based) driver's
* Must not be NULL.
* @param serial The serial device instance (struct serial_dev_inst *).
* Must not be NULL.
- * @param prefix A driver-specific prefix string used for log messages.
+ * @param[in] prefix A driver-specific prefix string used for log messages.
* Must not be NULL. An empty string is allowed.
*
* @retval SR_OK Success.
* @retval SR_ERR Other errors.
*/
SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi,
- void *cb_data, dev_close_t dev_close_fn,
+ void *cb_data, dev_close_callback dev_close_fn,
struct sr_serial_dev_inst *serial, const char *prefix)
{
int ret;
#endif
-/*
+/**
* Standard driver dev_clear() helper.
*
+ * Clear driver, this means, close all instances.
+ *
* This function can be used to implement the dev_clear() driver API
* callback. dev_close() is called before every sr_dev_inst is cleared.
*
* @return SR_OK on success.
*/
SR_PRIV int std_dev_clear(const struct sr_dev_driver *driver,
- std_dev_clear_t clear_private)
+ std_dev_clear_callback clear_private)
{
struct drv_context *drvc;
struct sr_dev_inst *sdi;
return ret;
}
-