Difference between revisions of "Component: SPI (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 2.1 |- | width="20%" style="color:gray...") |
|||
| Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| − | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
Revision as of 14:13, 20 January 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 for the component source code: FC_Comp_Source_SPI.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
| Master_Enable_CS | |
| Outputs a low signal to the chip select pin to select the remote slave device. | |
| Return | |
| Slave_Uninit | |
| Uninitialise the Slave | |
| Return | |
| GetValue | |
| Reads Named property Value. | |
| Name | |
| Return | |
| Slave_Init | |
| Initialise the Slave | |
| Return | |
| Master_Disable_CS | |
| Outputs a high signal to the chip select pin to deselect the remote slave device. | |
| Return | |
| Master_Uninit | |
| Uninitialise the Master | |
| Return | |
| Master_Byte | |
| Sends and receives a data byte | |
| DataOut | |
| Return | |
| GetConsoleHandle | |
| Returns a handle to the console used by this component | |
| Return | |
| Slave_TxByte | |
| Sets the data to be transmitted to the SPI master. | |
| Data | |
| Return | |
| Slave_RxByte | |
| Returns the data received from the SPI Master | |
| Return | |
| SetValue | |
| Change Named property to new Value. | |
| Name | |
| Value | |
| Return | |
| SetPrescaler | |
| Sets the prescaler value for the clock divider chain | |
| Prescaler | |
| Return | |
| Master_Init | |
| Initialise the Master | |
| Return | |
| GetList | |
| returns Named property list | |
| Name | |
| Return | |