esp-idf/docs/_static/diagrams/ring-buffer/ring_buffer_wrap_no_split.diag

36 wiersze
995 B
Plaintext

#Diagram demonstrating wrap around in a No-Split ring buffer
#Buffer of 128 bytes, with 56 bytes free, and 28 bytes sent
packetdiag ring_buffer_wrap_no_split {
node_width = 6
node_height = 24
default_fontsize = 12
colwidth = 128
#Initial state
0-39: 40 Free
40-47: 8 [color = lightblue];
48-63: 16 [color = lightyellow];
64-71: 8 [color = lightblue];
72-111: 40 [color = lightyellow];
112-127: 16 Free
#Set dummy data
128-167: 40 Free
168-175: 8 [color = lightblue];
176-191: 16 [color = lightyellow];
192-199: 8 [color = lightblue];
200-239: 40 [color = lightyellow];
240-255: Dummy [color = lightgrey];
#Send wrap around item
256-263: 8 [color = lightblue];
264-291: 28 [color = lightyellow];
292-295: 4 Free
296-303: 8 [color = lightblue];
304-319: 16 [color = lightyellow];
320-327: 8 [color = lightblue];
328-367: 40 [color = lightyellow];
368-383: Dummy [color = lightgrey];
}