Difference between revisions of "Component: LoRa (LAMBDA, SX1272) (Wireless)"
(XML import) |
(No difference)
|
Latest revision as of 15:31, 6 August 2019
Author | Matrix TSL |
Version | 1.0 (Release) |
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.
Examples
No additional examples
Downloadable macro reference
ReadReg
Reads a register on the device and returns the value read
Parameters
- BYTE Address
Return value
ReceiveBuffer
Attampt to read a number of bytes from the LoRa network.
Returns the number of bytes received
Parameters
- BYTE Data
- BYTE Count
- UINT Timeout
- Time to wait in milliseconds
Return value
WriteReg
No additional information
Parameters
- BYTE Address
- BYTE Value
Return value
- This call does not return a value
TransmitBuffer
Attampt to send a number of bytes to the LoRa network.
Parameters
- BYTE Data
- Data buffer to transmit
- BYTE Count
- Number of bytes to send
Return value
- This call does not return a value
SetFrequency
Sets the module frequency
Parameters
- ULONG Frequency
Return value
- This call does not return a value
Initialise
Starts the SPI and configures the LoRa module frequency
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Frequency
This property is of type Unsigned integer and can be referenced with the variable name Frequency.
No additional information
Channel
This property is of type Fixed list of ints and can be referenced with the variable name cal_spi1::CHANNEL.
SPI Channel selector
Prescale
This property is of type Fixed list of ints and can be referenced with the variable name cal_spi1::PR_SCALE.
Prescale option selector
MOSI
This property is of type Single digital pin and can be referenced with the variable name cal_spi1::MOSI.
SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode.
MISO
This property is of type Single digital pin and can be referenced with the variable name cal_spi1::MISO.
SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode.
CLK
This property is of type Single digital pin and can be referenced with the variable name cal_spi1::CLK.
SPI Clock Pin CLK - The Clock signal is driven by the SPI master.
CS / SS
This property is of type Single digital pin and can be referenced with the variable name cal_spi1::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.
RX Switch
This property is of type Single digital pin and can be referenced with the variable name RXSwitch.
No additional information
TX Switch
This property is of type Single digital pin and can be referenced with the variable name TXSwitch.
No additional information
Console Data
This property is of type True or false and can be referenced with the variable name cal_spi1::ConsoleData.
Selects if the console data is automatically generated or not
Scope Traces
This property is of type True or false and can be referenced with the variable name cal_spi1::ScopeTraces.
Selects if the scope traces are automatically generated or not
Injector
This property is of type Fixed list of ints and can be referenced with the variable name cal_spi1::Injector.
No additional information