|
|||||||||||
Technical Support Support Resources
Product Information |
µVISION DEBUGGER: Script to Output Circular BufferInformation in this article applies to:
QUESTIONI have a circular buffer in my program that I access using next_in and next_out indexes. Is there a way I can create a debugger script to output the contents of the buffer in order? ANSWERYes. The following script print_circ_buf accepts the address of the buffer, the length, and the next out and next in indexes. It outputs the address along with its contents. func void print_circ_buf ( unsigned long array, unsigned length, unsigned n_out, unsigned n_in) { unsigned i; if (n_in >= n_out) length = n_in; for (i=n_out; i SEE ALSOLast Reviewed: Thursday, January 14, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.