firmware/greatfet_usb/usb_streaming.c
void usb_streaming_start_streaming_to_host(uint32_t *volatile user_position_in_buffer,
	uint32_t *volatile user_data_in_buffer)
{
	usb_endpoint_init(&usb0_endpoint_bulk_in);

	// Store our references to the user variables to be updated.
	position_in_buffer = user_position_in_buffer;
	data_in_buffer     = user_data_in_buffer;

	phase = (*position_in_buffer > USB_STREAMING_BUFFER_SIZE) ? 0 : 1;

	// And enable USB streaming.
	// FIXME: support out streaming, too
	usb_streaming_enabled = true;
}
/**
 * Sets up a task thread that will rapidly stream data to/from a USB host.
 */
Sets up a task thread that will rapidly stream data to/from a USB host.
Sets up a task thread that will rapidly stream data to / from a USB host .
void usb_streaming_start_streaming_to_host(uint32_t *volatile user_position_in_buffer,
	uint32_t *volatile user_data_in_buffer)
{
	usb_endpoint_init(&usb0_endpoint_bulk_in);
	position_in_buffer = user_position_in_buffer;
	data_in_buffer     = user_data_in_buffer;
	phase = (*position_in_buffer > USB_STREAMING_BUFFER_SIZE) ? 0 : 1;
	usb_streaming_enabled = true;
}
void usb_streaming_start_streaming_to_host ( uint32_t * volatile user_position_in_buffer , uint32_t * volatile user_data_in_buffer ) { usb_endpoint_init ( & usb0_endpoint_bulk_in ) ; position_in_buffer = user_position_in_buffer ; data_in_buffer = user_data_in_buffer ; phase = ( * position_in_buffer > USB_STREAMING_BUFFER_SIZE ) ? 0 : 1 ; usb_streaming_enabled = true ; }
Sets up a task thread that will rapidly stream data to/from a USB host.
Sets up a task thread that will rapidly stream data to / from a USB host .
// Store our references to the user variables to be updated. // And enable USB streaming. // FIXME: support out streaming, too