Difference between revisions of "Component: Circular Buffer Free Sim (Buffer)"
From Flowcode Help
Jump to navigationJump to searchLine 56: | Line 56: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 239: | Line 241: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Revision as of 12:18, 3 February 2023
Author | Matrix Ltd |
Version | 1.5 |
Category | Buffer |
Contents
Circular Buffer Free Sim component
Circular buffer component allowing easy and efficient first in first out (FIFO) style data byte storage. Useful when used with a comms component to capture data as it comes in ready for processing when we have time. Also features macros to allow you to check for specific incoming responses such as "OK" or "ERROR".
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/CircularBuffer_FreeSim.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/CircularBuffer_FreeSim.fcfx
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 |
GetByte
![]() |
GetByte |
Reads the next available byte from the circular buffer, Returns 255/512 if the buffer is empty. | |
![]() |
Return |
GetConsoleHandle
![]() |
GetConsoleHandle |
Gets the handle to the console allowing data displaying on the panel etc. | |
![]() |
Return |
GetIndexedByte
![]() |
GetIndexedByte |
Gets the value of a single byte at a known location in the buffer. Leaves the buffer contents and pointers untouched. | |
![]() |
address |
![]() |
Return |
GetNumberBytes
![]() |
GetNumberBytes |
Returns the number of valid data bytes currently inside the buffer. | |
![]() |
Return |
LookForValue
PeekByte
![]() |
PeekByte |
Reads the next available byte from the circular buffer without advancing the current index, Returns 255/512 if the buffer is empty. | |
![]() |
Return |
PutByte
WaitForValue