This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_ringbuf_get_value

Function Documentation

double rc_ringbuf_get_value(rc_ringbuf_t *buf, int position)

Fetches the float which is ‘position’ steps behind the last value added to the buffer.

If ‘position’ is given as 0 then the most recent value is returned. The position obviously can’t be larger than (buffer size - 1).

Parameters
  • buf – Pointer to user’s buffer

  • position[in] steps back in the buffer to fetch the value from

Returns

Returns the requested float. Prints an error message and returns -1.0f on error.