std_session_send_df_header(sdi);
if (devc->limit_frames > 0)
- std_session_send_frame_begin(sdi);
+ std_session_send_df_frame_begin(sdi);
/* We use this timestamp to decide how many more samples to send. */
devc->start_us = g_get_monotonic_time();
devc = sdi->priv;
if (devc->limit_frames > 0)
- std_session_send_frame_end(sdi);
+ std_session_send_df_frame_end(sdi);
std_session_send_df_end(sdi);
devc->spent_us += todo_us;
if (devc->limit_frames && devc->sent_frame_samples >= SAMPLES_PER_FRAME) {
- std_session_send_frame_end(sdi);
+ std_session_send_df_frame_end(sdi);
devc->sent_frame_samples = 0;
devc->limit_frames--;
if (!devc->limit_frames) {
sr_dev_acquisition_stop(sdi);
} else if (devc->limit_frames) {
if (devc->sent_frame_samples == 0)
- std_session_send_frame_begin(sdi);
+ std_session_send_df_frame_begin(sdi);
}
return G_SOURCE_CONTINUE;
g_slist_free(analog.meaning->channels);
}
if (frame) {
- std_session_send_frame_end(sdi);
+ std_session_send_df_frame_end(sdi);
sr_sw_limits_update_frames_read(&devc->limits, 1);
}
SR_PRIV int std_session_send_df_header(const struct sr_dev_inst *sdi);
SR_PRIV int std_session_send_df_end(const struct sr_dev_inst *sdi);
SR_PRIV int std_session_send_df_trigger(const struct sr_dev_inst *sdi);
-SR_PRIV int std_session_send_frame_begin(const struct sr_dev_inst *sdi);
-SR_PRIV int std_session_send_frame_end(const struct sr_dev_inst *sdi);
+SR_PRIV int std_session_send_df_frame_begin(const struct sr_dev_inst *sdi);
+SR_PRIV int std_session_send_df_frame_end(const struct sr_dev_inst *sdi);
SR_PRIV int std_dev_clear_with_callback(const struct sr_dev_driver *driver,
std_dev_clear_callback clear_private);
SR_PRIV int std_dev_clear(const struct sr_dev_driver *driver);
* @retval SR_ERR_ARG Invalid argument.
* @retval other Other error.
*/
-SR_PRIV int std_session_send_frame_begin(const struct sr_dev_inst *sdi)
+SR_PRIV int std_session_send_df_frame_begin(const struct sr_dev_inst *sdi)
{
return send_df_without_payload(sdi, SR_DF_FRAME_BEGIN);
}
* @retval SR_ERR_ARG Invalid argument.
* @retval other Other error.
*/
-SR_PRIV int std_session_send_frame_end(const struct sr_dev_inst *sdi)
+SR_PRIV int std_session_send_df_frame_end(const struct sr_dev_inst *sdi)
{
return send_df_without_payload(sdi, SR_DF_FRAME_END);
}