Difference between revisions of "Component: SPI (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 14: | Line 14: | ||
==SPI component== | ==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. | 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 Pack== | ||
+ | |||
+ | FREE | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 26: | Line 32: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 200: | Line 208: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-h32-icon.png]] - HANDLE |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 381: | Line 389: | ||
|- | |- | ||
| colspan="2" | Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device. | | colspan="2" | Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
+ | | width="90%" | CS Polarity | ||
+ | |- | ||
+ | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] |
Revision as of 16:16, 7 January 2022
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 Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
Example showing how to build a component using a CAL component Using CAL Components.
Downloadable 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 |