Jump to content

Component: Linear Feedback Shift Register (Calculation)

From Flowcode Help
Revision as of 14:17, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"")
Author PC
Version 1.0
Category Calculation


Linear Feedback Shift Register component

Implements a linear feedback shift register to produce a pseudo-random bit sequence.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

Generate

Generate
Generate the next itteration 
- BOOL Return


Seed

Seed
Write a seed value into the shift register. Any 16-bit value is allowed except zero. 
- UINT Seed
 
- VOID Return


Set_Mask

Set_Mask
Set the 16-bit mask to describe the feedback polynomial. 1=bit is fed back 0=bit is not fed back The number of taps must be even and setwise co-prime (no common divisor except 1) 
- UINT Mask
16-bit polynomial 
- VOID Return


Property reference

Properties

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Linear_Feedback_Shift_Register.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Linear_Feedback_Shift_Register.fcfx