Jump to content

Component: FLASH (CAL) (Misc): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 20: Line 20:


==Detailed description==
==Detailed description==




Line 28: Line 30:


==Examples==
==Examples==




Line 37: Line 41:




==Downloadable macro reference==
==Macro reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"

Revision as of 14:11, 20 January 2023

Author Matrix TSL
Version 1.0
Category Misc


FLASH (CAL) component

CAL - Code Abstraction Layer A low level implementation giving direct access to Flash read and write routines.

Component Source Code

Please click here for the component source code: FC_Comp_Source_FLASH.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Macro reference

WriteInstructionRow
Writes a complete row of instructions to the device memory. Takes the values from the data array. 
- ULONG Address
 
- ULONG Data
 
- VOID Return


ErasePage
Erase the minimum amount of flash (usually a page) at the selected address. 
- ULONG Address
Start address of page 
- VOID Return


ReadInstruction
Reads a single instruction from the device memory. Loads the result into the Data array. 
- ULONG Address
Start address of page 
- ULONG Data
 
- VOID Return


WriteInstruction
Writes a the minimum number of instructions to the device memory. Takes the values from the data array. 
- ULONG Address
 
- ULONG Data
 
- VOID Return


EraseAll
Erase all flash memory locations on the device. 
- BOOL Aux
0=Primary Flash, 1=Aux Flash if available 
- VOID Return



Property reference

Properties
Enabled
 
Type
 
StartAddress
 
Bits Per Instruction
Number of bits that can be stored or retreived using a single flash address 
Bits Per Value
Number of bits available when initialising the Flash memory. 
Min Write Count
 
Row Instruction Count
 
Page Instruction Count
 
Program Counter Increment
 
Family