Esempio n. 1
0
/* this stops acquisition on ALL devices, ignoring device_index */
void hw_stop_acquisition(int device_index, gpointer session_device_id)
{
	struct datafeed_packet packet;

	packet.type = DF_END;
	session_bus(session_device_id, &packet);

	receive_transfer(NULL);

	/* TODO: need to cancel and free any queued up transfers */

}
Esempio n. 2
0
/* This stops acquisition on ALL devices, ignoring device_index. */
static void hw_stop_acquisition(int device_index, gpointer session_data)
{
	struct sr_datafeed_packet packet;

	/* Avoid compiler warnings. */
	(void)device_index;

	packet.type = SR_DF_END;
	sr_session_bus(session_data, &packet);

	receive_transfer(NULL);

	/* TODO: Need to cancel and free any queued up transfers. */
}