/// Free a circular buffer structure. /// Does not free data buffer; owner is responsible for that void circular_buf_free(cbuf_handle_t cbuf); /// Reset the circular buffer to empty, head == tail void circular_buf_reset(cbuf_handle_t cbuf); /// Put version 1 continues to add dat...
///Pass in a storage buffer and size///Returns a circular buffer handlecbuf_handle_t circular_buf_init(uint8_t*buffer, size_t size);///Free a circular buffer structure.///Does not free data buffer; owner is responsible for thatvoidcircular_buf_free(cbuf_handle_t cbuf);///Reset the ...
Blackfin DSP的C语言优化之Circular Buffer Blackfin提供了一组数据访问寄存器(DAG)用于提高对数据的访问效率,其中Circular Buffer是其一大特色。在汇编中,我们可以对它轻易地控制,但是在C语言下,并无法显式地使用它们。尽管如此,还是可以通过一些内建函数与编译选项提高数据的访问效率。 Circular Buffer,即循环缓存,也就...