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_reset

Function Documentation

int rc_ringbuf_reset(rc_ringbuf_t *buf)

Sets all values in the buffer to 0.0f and sets the buffer index back to 0.

Parameters

buf – Pointer to user’s buffer

Returns

Returns 0 on success or -1 on failure.