Difference between revisions of "Component: SPI (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 48: | Line 48: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 53: | Line 55: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===Master_Enable_CS=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 66: | Line 69: | ||
+ | ===Slave_Uninit=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 79: | Line 83: | ||
+ | ===Prv_TextConsole=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 107: | Line 112: | ||
+ | ===Master_Transaction=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 130: | Line 136: | ||
+ | ===GetValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 148: | Line 155: | ||
+ | ===Slave_Init=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 161: | Line 169: | ||
+ | ===Master_Disable_CS=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 174: | Line 183: | ||
+ | ===Master_Uninit=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 187: | Line 197: | ||
+ | ===Master_Byte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 205: | Line 216: | ||
+ | ===GetConsoleHandle=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 218: | Line 230: | ||
+ | ===Slave_TxByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 236: | Line 249: | ||
+ | ===Slave_RxByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 249: | Line 263: | ||
+ | ===SetValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 272: | Line 287: | ||
+ | ===SetPrescaler=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 290: | Line 306: | ||
+ | ===Master_Init=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 303: | Line 320: | ||
+ | ===GetList=== | ||
{| 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.1 |
Category | Misc |
Contents
SPI component
CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. A low level implementation giving direct access to the Serial Peripheral Interface peripheral.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_SPI.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_SPI.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Master_Enable_CS
![]() |
Master_Enable_CS |
Outputs a low signal to the chip select pin to select the remote slave device. | |
![]() |
Return |
Slave_Uninit
![]() |
Slave_Uninit |
Uninitialise the Slave | |
![]() |
Return |
Prv_TextConsole
Master_Transaction
GetValue
![]() |
GetValue |
Reads Named property Value. | |
![]() |
Name |
![]() |
Return |
Slave_Init
![]() |
Slave_Init |
Initialise the Slave | |
![]() |
Return |
Master_Disable_CS
![]() |
Master_Disable_CS |
Outputs a high signal to the chip select pin to deselect the remote slave device. | |
![]() |
Return |
Master_Uninit
![]() |
Master_Uninit |
Uninitialise the Master | |
![]() |
Return |
Master_Byte
![]() |
Master_Byte |
Sends and receives a data byte | |
![]() |
DataOut |
![]() |
Return |
GetConsoleHandle
![]() |
GetConsoleHandle |
Returns a handle to the console used by this component | |
![]() |
Return |
Slave_TxByte
![]() |
Slave_TxByte |
Sets the data to be transmitted to the SPI master. | |
![]() |
Data |
![]() |
Return |
Slave_RxByte
![]() |
Slave_RxByte |
Returns the data received from the SPI Master | |
![]() |
Return |
SetValue
![]() |
SetValue |
Change Named property to new Value. | |
![]() |
Name |
![]() |
Value |
![]() |
Return |
SetPrescaler
![]() |
SetPrescaler |
Sets the prescaler value for the clock divider chain | |
![]() |
Prescaler |
![]() |
Return |
Master_Init
![]() |
Master_Init |
Initialise the Master | |
![]() |
Return |
GetList
![]() |
GetList |
returns Named property list | |
![]() |
Name |
![]() |
Return |