Component: Circular Buffer (16-bit) (Buffer): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 96: | Line 96: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FlushBuffer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FlushBuffer''' | ||
|- | |- | ||
| Line 110: | Line 110: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetData''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetData''' | ||
|- | |- | ||
| Line 124: | Line 124: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIndexedValue''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIndexedValue''' | ||
|- | |- | ||
| Line 143: | Line 143: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumberValues''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumberValues''' | ||
|- | |- | ||
| Line 157: | Line 157: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSize''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSize''' | ||
|- | |- | ||
| Line 176: | Line 176: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LookForValues''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LookForValues''' | ||
|- | |- | ||
| Line 210: | Line 210: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PeekData''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PeekData''' | ||
|- | |- | ||
| Line 224: | Line 224: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PutData''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PutData''' | ||
|- | |- | ||
| Line 243: | Line 243: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WaitForValues''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WaitForValues''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.5 |
| Category | Buffer |
Circular Buffer (16-bit) component
Circular buffer component allowing easy and efficient first in first out (FIFO) style data storage. Also features macros to allow you to check for specific 16-bit values.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
FlushBuffer
| FlushBuffer | |
| Clears the contents of the buffer and re-initialises the index locations. | |
| Return | |
GetData
| GetData | |
| Reads the next available 16-bit value from the circular buffer, Returns the default value if the buffer is empty. | |
| Return | |
GetIndexedValue
| GetIndexedValue | |
| Gets the value of a single 16-bit value at a known location in the buffer. Leaves the buffer contents and pointers untouched. | |
| address | |
| Return | |
GetNumberValues
| GetNumberValues | |
| Returns the number of valid 16-bit data values currently stored inside the buffer. | |
| Return | |
GetSize
LookForValues
PeekData
| PeekData | |
| Reads the next available 16-bit data value from the circular buffer without advancing the current index, Returns the default value if the buffer is empty. | |
| Return | |
PutData
WaitForValues
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_CircularBuffer16.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_CircularBuffer16.fcfx