Component: LoRa (LAMBDA SX1272) (LAMBDA SX1272) (Wireless)

From Flowcode Help
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Wireless


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_LoRa_Lambda.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_LoRa_Lambda.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

Initialise

Fc9-comp-macro.png Initialise
Starts the SPI and configures the LoRa module frequency 
Fc9-void-icon.png - VOID Return


ReadReg

Fc9-comp-macro.png ReadReg
Reads a register on the device and returns the value read 
Fc9-u8-icon.png - BYTE Address
 
Fc9-u8-icon.png - BYTE Return


ReceiveBuffer

Fc9-comp-macro.png ReceiveBuffer
Attempt to read a number of incoming bytes. Returns the number of bytes received 
Fc9-u8-icon.png - BYTE Data
 
Fc9-u8-icon.png - BYTE Count
 
Fc9-u16-icon.png - UINT Timeout
Time to wait in milliseconds 
Fc9-u8-icon.png - BYTE Return


SetFrequency

Fc9-comp-macro.png SetFrequency
Sets the module frequency 
Fc9-u32-icon.png - ULONG Frequency
 
Fc9-void-icon.png - VOID Return


TransmitBuffer

Fc9-comp-macro.png TransmitBuffer
Attempt to send a number of bytes to be transmitted. 
Fc9-u8-icon.png - BYTE Data
Data buffer to transmit 
Fc9-u8-icon.png - BYTE Count
Number of bytes to send 
Fc9-void-icon.png - VOID Return


WriteReg

Fc9-comp-macro.png WriteReg
 
Fc9-u8-icon.png - BYTE Address
 
Fc9-u8-icon.png - BYTE Value
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png LoRa Properties
Fc9-type-21-icon.png Frequency
 
Fc9-conn-icon.png Connections
Fc9-type-16-icon.png Channel
SPI Channel selector 
Fc9-type-16-icon.png Prescale
Prescale option selector 
Fc9-type-5-icon.png MOSI
SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode. 
Fc9-type-5-icon.png MISO
SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode. 
Fc9-type-5-icon.png CLK
SPI Clock Pin CLK - The Clock signal is driven by the SPI master. 
Fc9-type-5-icon.png CS / SS
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.  
Fc9-type-5-icon.png RX Switch
 
Fc9-type-5-icon.png TX Switch
 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Simulate comms