Difference between revisions of "Component: FLASH (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 57: | Line 57: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 63: | Line 65: | ||
| ==Macro reference== | ==Macro reference== | ||
| + | ===WriteInstructionRow=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 86: | Line 89: | ||
| + | ===ErasePage=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 104: | Line 108: | ||
| + | ===ReadInstruction=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 127: | Line 132: | ||
| + | ===WriteInstruction=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 150: | Line 156: | ||
| + | ===EraseAll=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
Revision as of 11:49, 3 February 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Misc | 
Contents
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 to download the component source project: FC_Comp_Source_FLASH.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_FLASH.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
WriteInstructionRow
|   | 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
|   | ErasePage | 
| Erase the minimum amount of flash (usually a page) at the selected address. | |
|  - ULONG | Address | 
| Start address of page | |
|  - VOID | Return | 
ReadInstruction
|   | 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
|   | 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
|   | EraseAll | 
| Erase all flash memory locations on the device. | |
|  - BOOL | Aux | 
| 0=Primary Flash, 1=Aux Flash if available | |
|  - VOID | Return | 




