Difference between revisions of "Component: Lookup tables (Storage)"

From Flowcode Help
Jump to navigationJump to search
(XML import of component help)
(XML import of component help)
Line 233: Line 233:
 
This property is of type ''Multiple lines of text'' and can be referenced with the variable name ''intfixed''.
 
This property is of type ''Multiple lines of text'' and can be referenced with the variable name ''intfixed''.
  
''<span style="color:red;">No additional information</span>''
+
Comma seperated integer data which is used to create the C code which is inserted into the ROM.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>Floats</u></span>
 
<span style="font-weight: normal;"><u>Floats</u></span>
Line 241: Line 239:
 
This property is of type ''Multiple lines of text'' and can be referenced with the variable name ''floatfixed''.
 
This property is of type ''Multiple lines of text'' and can be referenced with the variable name ''floatfixed''.
  
''<span style="color:red;">No additional information</span>''
+
Comma seperated float data which is used to create the C code which is inserted into the ROM.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>Embed Into C</u></span>
 
<span style="font-weight: normal;"><u>Embed Into C</u></span>

Revision as of 17:22, 11 November 2013


Author Matrix Multimedia
Version 1.4
Category Storage


Image Lookup tables component

A lookup-table component allowing an easy way to place arrays of static data into ROM memory. The LUT data is accessed directly allowing very low overhead when collecting the data.


Examples

No additional examples


Downloadable macro reference

GetFloat

Gets a float from the LUT

Parameters

UINT Index


Return value

FLOAT


GetInt

Gets an integer from the LUT

Parameters

UINT Index


Return value

ULONG


Simulation macro reference

GetFloats

Gets the float LUT

Parameters

FLOAT Dest


Return value

This call does not return a value


GenerateCache

Generates the C code for the arrays so it does not need to be done at compile time

Parameters

This macro has no parameters


Return value

This call does not return a value


GetIntCount

Gets the number of int LUT entries

Parameters

This macro has no parameters


Return value

UINT


ClearInts

Clear all int LUT values

Parameters

This macro has no parameters


Return value

This call does not return a value


GetFloatCount

Gets the number of float LUT entries

Parameters

This macro has no parameters


Return value

UINT


GetIntBits

Gets the number of bits-per-int in the LUT

Parameters

This macro has no parameters


Return value

BYTE


SetIntBits

Sets the size of an int LUT entry

Parameters

BYTE Bits


Return value

This call does not return a value


GetFloatBits

Gets the number of bits-per-float in the LUT

Parameters

This macro has no parameters


Return value

BYTE


ClearFloats

Clear all float LUT values

Parameters

This macro has no parameters


Return value

This call does not return a value


GetInts

Gets the int LUT

Parameters

ULONG Dest


Return value

This call does not return a value


SetFloatBits

Sets the size of a float LUT entry

Parameters

BYTE Bits


Return value

This call does not return a value


AddInt

Int to add to the int array

Parameters

ULONG Value
Int to add to the int array


Return value

This call does not return a value


AddFloat

Add a float to the floating point LUT

Parameters

FLOAT Value
Floating point values


Return value

This call does not return a value



Property reference

Integers

This property is of type Multiple lines of text and can be referenced with the variable name intfixed.

Comma seperated integer data which is used to create the C code which is inserted into the ROM.

Floats

This property is of type Multiple lines of text and can be referenced with the variable name floatfixed.

Comma seperated float data which is used to create the C code which is inserted into the ROM.

Embed Into C

This property is of type True or false and can be referenced with the variable name EmbedIntoC.

Flag to decide if code should be generated to C or not

If this is false then the LUT is simulation only