Ejemplo n.º 1
0
static uint32_t
fifo_stream_read(struct vsf_stream_t *stream, struct vsf_buffer_t *buffer)
{
	struct vsf_fifostream_t *fifostream = (struct vsf_fifostream_t *)stream;
	return vsf_fifo_pop(&fifostream->mem, buffer->size, buffer->buffer);
}
Ejemplo n.º 2
0
uint32_t stream_rx(struct vsf_stream_t *stream, struct vsf_buffer_t *buffer)
{
	return vsf_fifo_pop(&stream->fifo, buffer->size, buffer->buffer);
}