Difference between revisions of "Component: LoRa (LAMBDA SX1272) (LAMBDA SX1272) (Wireless)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/LoRa_Lambda.fcfx FC_Comp_Source_temp/LoRa_Lambda.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/LoRa_Lambda.fcfx FC_Comp_Source_temp/LoRa_Lambda.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 81: | Line 81: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 88: | Line 90: | ||
==Macro reference== | ==Macro reference== | ||
+ | |||
+ | ===Initialise=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
+ | |- | ||
+ | | colspan="2" | Starts the SPI and configures the LoRa module frequency | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
===ReadReg=== | ===ReadReg=== | ||
Line 137: | Line 153: | ||
− | === | + | ===SetFrequency=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetFrequency''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Sets the module frequency |
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG |
− | | width="90%" | | + | | width="90%" | Frequency |
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
Line 185: | Line 196: | ||
− | === | + | ===WriteReg=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteReg''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | |
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE |
− | | width="90%" | | + | | width="90%" | Address |
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
− | | width="10%" align="center | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE |
− | | width="90% | + | | width="90%" | Value |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
+ | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID |
Revision as of 12:02, 3 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | Wireless |
Contents
LoRa (LAMBDA SX1272) component
Component to drive the LAMBDA LoRa Transciever module from RF Solutions. Uses an SPI bus connection to the microcontroller. Uses the Semtech SX1272 Transciever IC. Compatible with the LoRaWan network when used with an additional protocol layer.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/LoRa_Lambda.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/LoRa_Lambda.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Initialise
![]() |
Initialise |
Starts the SPI and configures the LoRa module frequency | |
![]() |
Return |
ReadReg
![]() |
ReadReg |
Reads a register on the device and returns the value read | |
![]() |
Address |
![]() |
Return |
ReceiveBuffer
![]() |
ReceiveBuffer |
Attempt to read a number of incoming bytes. Returns the number of bytes received | |
![]() |
Data |
![]() |
Count |
![]() |
Timeout |
Time to wait in milliseconds | |
![]() |
Return |
SetFrequency
![]() |
SetFrequency |
Sets the module frequency | |
![]() |
Frequency |
![]() |
Return |
TransmitBuffer
![]() |
TransmitBuffer |
Attempt to send a number of bytes to be transmitted. | |
![]() |
Data |
Data buffer to transmit | |
![]() |
Count |
Number of bytes to send | |
![]() |
Return |
WriteReg
![]() |
WriteReg |
![]() |
Address |
![]() |
Value |
![]() |
Return |