Difference between revisions of "Component: SPI Master (EB013) (E-blocks 1)"
From Flowcode Help
Jump to navigationJump to searchLine 49: | Line 49: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 55: | Line 57: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===SendString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 73: | Line 76: | ||
+ | ===NVMSendChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 96: | Line 100: | ||
+ | ===GetString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 119: | Line 124: | ||
+ | ===DACSendChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 137: | Line 143: | ||
+ | ===SendChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 155: | Line 162: | ||
+ | ===NVMGetChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 173: | Line 181: | ||
+ | ===EnableFram=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 186: | Line 195: | ||
+ | ===FramOutput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 204: | Line 214: | ||
+ | ===DisableFram=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 217: | Line 228: | ||
+ | ===GetChar=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 230: | Line 242: | ||
+ | ===UnInitialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 243: | Line 256: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:52, 3 February 2023
Author | Matrix TSL |
Version | 2.0 |
Category | E-blocks 1 |
Contents
SPI Master component
Low level routines for controlling or interacting with an SPI interface. SPI or Serial Peripheral Interface is a bus used for board level communications between devices. A target microcontroller will usually have at least one hardware SPI peripheral built in. If the hardware SPI pins are in use or more SPI channels are required then there is also a software mode available. Has additional functions to work with the E-blocks EB013 SPI hardware.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_SPI_Legacy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_SPI_Legacy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
SendString
![]() |
SendString |
Sends a string of bytes to the SPI bus | |
![]() |
Str |
![]() |
Return |
NVMSendChar
GetString
![]() |
GetString |
Attempts to read a string of bytes from the SPI bus. | |
![]() |
NumBytes |
![]() |
Ch |
![]() |
Return |
DACSendChar
![]() |
DACSendChar |
Send a byte to the digital to analogue converter (DAC) on the EB013 SPI E-block. | |
![]() |
Data |
Data byte to output using the DAC | |
![]() |
Return |
SendChar
![]() |
SendChar |
General purpose SPI send byte macro | |
![]() |
Char |
![]() |
Return |
NVMGetChar
![]() |
NVMGetChar |
Reads a byte from the non-volatile memory device on the EB013 SPI E-block. | |
![]() |
Address |
NVM Address to read data from | |
![]() |
Return |
EnableFram
![]() |
EnableFram |
Enable the SPI RAM chip on the EB013 SPI E-block. | |
![]() |
Return |
FramOutput
![]() |
FramOutput |
Send a value to the RAM on the EB013 SPI E-block. | |
![]() |
Char |
![]() |
Return |
DisableFram
![]() |
DisableFram |
Disable the SPI RAM chip on the EB013 SPI E-block. | |
![]() |
Return |
GetChar
![]() |
GetChar |
General purpose SPI get byte macro | |
![]() |
Return |
UnInitialise
![]() |
UnInitialise |
Deactivates the SPI peripheral leaving the I/O pins in a state where they can be used for general purpose I/O. | |
![]() |
Return |
Initialise
![]() |
Initialise |
Activates the SPI peripheral and claims control over the I/O pins. | |
![]() |
Return |